Questions tagged [kubernetes-deployment]
260 questions
4
votes
3 answers
Updating a deployment that uses a ReadWriteOnce volume will fail on mount
My deployment is using a couple of volumes, all defined as ReadWriteOnce.
When applying the deployment to a clean cluster, pod is created successfuly.
However, if I update my deployment (i.e update container image), when a new pod is created for my…

Mugen
- 8,301
- 10
- 62
- 140
3
votes
0 answers
How to make the kubernetes dashboard accessible through normal http?
I am struggling with this since basically WEEKS now... There is literally not one single example how to do this on the whole internet. Its actually quiet hilarious.
My dashboard deployment:
spec:
progressDeadlineSeconds: 600
replicas: 1
…

MajesticOl
- 311
- 1
- 20
3
votes
2 answers
Okteto ignore certain yaml file
In my GitHub repo I have 2 yaml files:
k8s/deploy-all-secrets.yaml
k8s/deploy-edge.yaml
I make use of cloud.okteto.com to deploy this deployment-file. But I don't want Okteto to deploy the deploy-all-secrets.yaml file. Is there any way I can…

Peetha
- 75
- 5
3
votes
2 answers
Difference between kubernetes recreate update strategy vs simply uninstall, install
When deciding on update strategy for a kubernetes application, there is an option to use Recreate strategy.
How would this be different from just uninstalling and installing the app?

as.tek
- 937
- 3
- 14
- 20
3
votes
2 answers
Moving Pod to another node automatically
Is it possible for a pod/deployment/statefulset to be moved to another node or be recreated on another node automatically if the first node fails? The pod in question is set to 1 replica. So is it possible to configure some sort of failover for…

Nyquillus
- 179
- 1
- 5
- 23
3
votes
1 answer
How to override helm environment variables through CLI?
I am using helm environment variables to override some of my spring boot application.yaml config and its working perfectly fine.
helm install deploy-name-1 mychartname --values=.helm/deployment/values.yaml
values.yaml
env:
- name: WORD
value:…

Bravo
- 79
- 2
- 10
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
3
votes
1 answer
kubectl apply -f error invalid type for io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector.matchLabels: got "map", expected "string"
I hope you are doing well
Please, I can't create this Deployment
I don't either know why or what can be the error.
It seems like some people have already had this error but I don't understand from the comment how they solve it.
I check into the…

Mael Fosso
- 360
- 6
- 14
3
votes
1 answer
Deployment cannot find PVC on minikube
I am practicing making PV and PVC with Minikube. But I encountered an error that my InfluxDB deployment couldn't find influxdb-pvc and I can't solve it.
I check the message at the top of the event, I can see that my PVC cannot be found. Therefore, I…

seheon
- 67
- 6
3
votes
1 answer
Failure in creating service when using "topologySpreadConstraints" in Deployment definition
We are running an application inside a cluster we created in GKE. We have created required yamls (consisting of Service and Deployment definition). We recently have decided to use Pod Topology for that I have added following piece in my Deployment…

Vinay Verma
- 533
- 1
- 6
- 28
3
votes
2 answers
K8s deployment error: `selector` does not match template `labels`
I'm trying to migrate from docker-compose to kubernetes. I had some issues with volume, so what I did is:
kompose convert --volumes hostPath
Then I had another issue
no matches for kind "Deployment" in version "extensions/v1beta1"
So I've changed…

Incybro Shostak
- 35
- 1
- 7
3
votes
3 answers
Kubernetes ignoring PVC RWO ACCESS MODE and deploying pods on different nodes
I have a Kubernetes v1.17.0 cluster with multiple nodes. I've created PVC with access mode set to RWO. From the Kubernetes docs:
ReadWriteOnce -- the volume can be mounted as read-write by a single node
I'm using a Cinder volume plugin which…

Lukas
- 1,246
- 8
- 15
3
votes
1 answer
Kubernetes deployment with Recreate strategy and maxSurge?
Summary
Can I give a deployment the rollout strategy Recreate and also set a fixed maxSurge for the deployment?
More details
I am developing an application that runs in Kubernetes. The backend will have multiple replicas, and runs EF Core with…

MW.
- 12,550
- 9
- 36
- 65
3
votes
1 answer
How can I allow a (sidecar) container to terminate within a Kubernetes deployment without it restarting?
My deployment consists of:
an init container
a long-running service
a sidecar that needs to configure a related service.
The sidecar's job is done once it configures the separate service. However, it cannot terminate because Kubernetes will just…

Nan Lin
- 113
- 1
- 2
- 7
3
votes
1 answer
Deployment in version "v1" cannot be handled as a Deployment:
helm install failing with the below error
command
helm install --name helloworld helm
Below is the error once I ran above command
Error: release usagemetrics failed: Deployment in version "v1" cannot be handled as a Deployment:…

Pandit Biradar
- 1,777
- 3
- 20
- 35