Comments (2)
Hi @ljanatka,
the label selector logic is the same as in Kubernetes. That means if you provide multiple label conditions all of them must match.
In general, whatever Kubernetes label selectors can do you can do with chaoskube
.
In order to achieve what you describe you can use the in
operator:
# includes everything where the `app` label is either `xxx` or `yyy`
$ chaoskube --labels='app in (xxx,yyy)'
Another approach is to label or annotate the pods (via Deployment) that should be terminated (or should be excluded from termination) via a separate label/annotation, such as chaos=true
and then select on this one:
# excludes everything without the `chaos` label
$ chaoskube --labels=chaos=true
from chaoskube.
Hi @linki,
thanks, that works like a charm!
Have a great day!
from chaoskube.
Related Issues (20)
- chaoskube is restarting with status as Running and crashLoopBackoff HOT 16
- Install in my namespace HOT 8
- Dashboard/Metrics info documentation HOT 5
- Using curl command HOT 5
- Node termination support?
- Add support for terminating multiple pods within a topology
- kinds argument available? HOT 1
- Add flag to stop chaoskube after a given time HOT 1
- Helm chart on Kubeapps is not available HOT 18
- Action Required: Fix Renovate Configuration
- Context deadline exceeded while using slack notifier HOT 9
- maxKill functionality not working using helm chart HOT 1
- Makefile fails HOT 1
- Pod termination timestamp HOT 1
- Dependency Dashboard
- Bug with gracePeriod conversion HOT 3
- [FEATURE] Kill only pods which do have more then 1 sibling replica HOT 2
- Cannot disable dry run HOT 4
- Envar support HOT 3
- Switch to multi-arch docker image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaoskube.