Questions tagged [kubernetes-deployment]

260 questions
3
votes
1 answer

How to reference a custom value file for sub-charts in helm?

I have been implementing helm sub-chart by referring helm sub chart documentation. According to the documentation it worked for me. This works fine with default value files. But when I try to refer my own value file, the values are not there in the…
3
votes
1 answer

How to create a dependency between Kubernetes Deployments or StatefulSets

I have a couple of Stateful Sets, one is dependent on another one, I need the pods in the first Stateful Set to be in Ready state before the 2nd Stateful Set is started to be scaled. I'm looking to see if there is a way to link the two Stateful Sets…
3
votes
1 answer

Kubernetes Deployment Error from server (Forbidden): error when retrieving current configuration

I'm trying to deploy my web service to Google Container Engine: Here's my deployment.yaml: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: handfree labels: app: handfree spec: replicas: 3 template: metadata: …
3
votes
3 answers

Kubernetes deployment status in Jenkins

I am writing a Jenkins Global pipeline library where I have a stage to deploy my docker image to K8s cluster. So after building my docker image during CI process I am promoting(deploying) the image to multiple environments(sequentially lower to…
2
votes
1 answer

Kubernetes Deployment with StorageClass

I have a StorageClass with provisioner: kubernetes.io/aws-ebs And I have a deployment where I need to mount some volumes. So, I need to use this StorageClass Here's my sc.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: …
Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105
2
votes
2 answers

How do I update a deployment via YAML with rollback support?

I am trying to update a deployment via the YAML file, similar to this question. I have the following yaml file... apiVersion: apps/v1 kind: Deployment metadata: name: simple-server-deployment labels: app: simple-server spec: replicas: 3 …
Jackie
  • 21,969
  • 32
  • 147
  • 289
2
votes
2 answers

How to reduce downtime caused by pulling images in the Kubernetes Recreate deployment strategy

Assuming I have a Kubernetes Deployment object with the Recreate strategy and I update the Deployment with a new container image version. Kubernetes will: scale down/kill the existing Pods of the Deployment, create the new Pods, which will pull the…
Fabian Schmied
  • 3,885
  • 3
  • 30
  • 49
2
votes
1 answer

Mount (add) files to existing directory using configmap volume mount

I have a ConfigMap with multiple files, and want to add these files to an already existing directory. But the tricky part here is, the filenames(keys) can change. So I can't try to mount them individually using subPath. Is there any way this can be…
RMNull
  • 149
  • 3
  • 12
2
votes
1 answer

If we have only one replica of the stateful pod, can we use Deployment resource instead of StatefulSet?

I read a bit about Deployment vs StatefulSet in Kubernetes. We usually need StatefulSet when we have a stateful app, so every pod can have its own volume. Now, I have a task to introduce persistence for RabbitMq. I will have only one pod replica of…
2
votes
1 answer

kubernetes pod deployment not updating

I have a pod egress-operator-controller-manager created from makefile by command make deploy IMG=my_azure_repo/egress-operator:v0.1. This pod was showing unexpected status: 401 Unauthorized error in description, so I created imagePullSecrets and…
2
votes
1 answer

Kubernetes deployment - control the maximum number of simultaneously terminating pods

Using Kubernetes, we could control how many pods (app instances) are created with a new deployment rollout simultaneously. It's achievable by using properties max surge and max unavailable. If we have tens of app instances, the default configuration…
2
votes
2 answers

kubernetess multiple deployments using one code base but different configuration (environement variables)

I have a project where we are consuming data from kafka and publishing to mongo. In fact the code base does only one task, may be mongo to kafka migration, kafka to mongo migration or something else. we have to consume from different kafka topics…
2
votes
1 answer

How to resolve Kubernetes Deployment warning?

$ kubectl version --short Client Version: v1.20.2 Server Version: v1.19.6-eks-49a6c0 I have the following Deployment manifest apiVersion: apps/v1 kind: Deployment metadata: name: stats-service namespace: my-system labels: app:…
Chris F
  • 14,337
  • 30
  • 94
  • 192
2
votes
3 answers

Old ReplicaSet not getting replaced by new ReplicaSet after an kubectl edit

I am creating a deployment using this yaml file. It creates a replica of 4 busybox pods. All fine till here. But when I edit this deployment using the command kubectl edit deployment my-dep2, only changing the version of busybox image to 1.31 (a…
Gautam Somani
  • 456
  • 1
  • 4
  • 18
2
votes
1 answer

How to resolve this issue ErrImageNeverPull pod creation status kubernetes

I am creating a pod from an image which resides on the master node. When I create a pod on the master node to be scheduled on the worker node, I get the status of pod ErrImageNeverPull kind: Pod metadata: name: cloud-pipe labels: app:…
Mazia
  • 63
  • 1
  • 10