I have kubernetes cluster on bare-metal, and I want to have logical separation of nodes where DEV environment will be on less power machines while the production environment will be on most powerful machines. I implemented PodNodeSelector of Admission controller. It works well on newly created namespace but on existing namespace, edited and added annotation to it all existing pods on Statefulset are not going to the specified powerful machines, just keep running. How can I apply the new annotation and have effect on Statefulset without recreating or deleting the pods/Statefulsets, cant afford downtime on Elassandra
Namespace PodNodeSelector no effect on existing running pods/statefulsets
227 Views Asked by Jagi Sarcilla At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in KUBERNETES-NAMESPACE
- Sharing CrunchyData Postgres Operator Secrets Between Namespaces
- Access kubernetes 'namespaces' object from the kubelet
- Kubernetes - Create a separate namespace for each customer
- Kubernetes: Having same host name but different paths in ingresses in different namespaces in Kubernetes
- Why is my externalName type service configuration not working in Kubernetes?
- How to assign cluster, namespace and pod name in kubernetes yaml file's environment variable
- How to create Kubernetes Namespace if it does not Exist?
- kubectl run command with --dry-run=client -o yaml does not pull up namespace in the yaml files
- Is there a way to cancel namespace termination in kubernetes?
- maximum number of namespaces supported by a Kubernetes cluster via k3s?
- In Minkube mulitple namespaces why NetworkPolicy is not working
- What are the differences between those two types of cluster api endpoint here?
- Priorities in Pods in Kubernetes
- Azure AKS: how to avoid resource creation in "default" namespace during cluster creation
- Namespace PodNodeSelector no effect on existing running pods/statefulsets
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You cannot. This is how it works at the moment. Once a pod is scheduled on a node it stays on a node.
Same applies to affinity/antiaffinity.
But in k8s docs you can read:
And this is what you are looking for, but it is not implemented yet. It looks like deleting pods to force then to reschedule is the only option available at the moment.