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
230 views Asked by Jagi Sarcilla At
1
There are 1 answers
Related Questions in KUBERNETES
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- I can't create a pod in minikube on windows
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- In rke kube-proxy pod is not present
- problem with edge server registration in Eureka
- Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
- Kubernetes cluster on GCE connection refused error
- Based on my experience, I've outlined the Kubernetes request flow. Could someone please add or highlight any points I might have overlooked?
- how to define StackGres helm chart "restapi" values to use internal LoadBalancer - AWS EKS
- Python3.11 can't open file [Errno 2] No such file or directory
- Cannot find remote pod service - SERVICE_UNAVAILABLE
Related Questions in KUBERNETES-NAMESPACE
- Can I know the namespace of my k8s Pod only by looking at its IP?
- Access kubernetes 'namespaces' object from the kubelet
- Sharing CrunchyData Postgres Operator Secrets Between Namespaces
- CKA Network Policy question for ingress traffic
- Setting resource quota on Kubernetes object
- How can I get the names of all namespaces containing the word "nginx" and store those names in an array
- In Minkube mulitple namespaces why NetworkPolicy is not working
- maximum number of namespaces supported by a Kubernetes cluster via k3s?
- Is there a way to cancel namespace termination in kubernetes?
- Restricting access to namespaces based on labels
- Azure AKS: how to avoid resource creation in "default" namespace during cluster creation
- Unable to delete Kubernetes namespace - removing finalizers fails
- Kubernetes Egress call restrict with namespace
- pod getting terminated because of ownerReferences pointing to resource in different namespace in kubernetes
- Namespace PodNodeSelector no effect on existing running pods/statefulsets
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?
Popular Tags
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)
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.