Questions tagged [kubernetes-label]
5 questions
4
votes
1 answer
EKS nodeSelector results in pending pod
I am encountering problems when using nodeSelector in my Kubernetes manifest. I have a nodegroup in EKS with the label eks.amazonaws.com/nodegroup=dev-nodegroup. This node has a name with the corresponding ip, as usual in AWS. If I set the nodeName…

Gonzalo Donoso
- 657
- 1
- 6
- 17
3
votes
1 answer
How to remove a label selector from a Kubernetes deployment?
I'm trying to remove a key/value pair from an existing deployment's spec.selector.matchLabels config. For example, I'm trying to remove the some.old.label: blah label from spec.selector.matchLabels and spec.template.metadata.labels. So this is an…

modulitos
- 14,737
- 16
- 67
- 110
1
vote
1 answer
Using affinity to keep two kubernetes pods apart with unknown label values
Imagine I have some pods I need on separate k8s nodes, I could use something like this if I know both pods have a label my/label=somevalue
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 2
…

Jon Bates
- 3,055
- 2
- 30
- 48
0
votes
1 answer
is it possible to add lables for services when deploying helm charts?
I am trying to deploy mysql server with the help of bitnami helm chart.
The chart seems to create two services (mysql & mysql-headless) and I want to add a unique lable to the mysql-headless
with kubectl it is straight forward as following:
kubectl…

Kingindanord
- 1,754
- 2
- 19
- 48
0
votes
0 answers
Restricting access to namespaces based on labels
I've got a cluster with a number of already existing namespaces, and an automatization process that creates (and manages) new namespaces using Terraform.
The service account used for TF got the roles with permission to all namespaces - as I believe…

jarobar435
- 85
- 1
- 8