Questions tagged [kubernetes-deployment]
260 questions
0
votes
1 answer
Kubernetes workload for stateful application but no need of persistent disk
I am having a stateful application - I am keeping data in user's sessions (basically data in HttpSession object) - but I do not have any requirement to write anything to persistent disk.
From what I have read so far - StatefulSet workloads are meant…

pjj
- 2,015
- 1
- 17
- 42
0
votes
1 answer
How to map Deployment probes to target group health check for AWS EKS?
$ kubectl version --short
Client Version: v1.20.2
Server Version: v1.19.6-eks-49a6c0
I have the following Deployment manifest as part of a Helm chart, which also includes a ingress.yaml file that creates a resulting ALB with listener rules, with…

Chris F
- 14,337
- 30
- 94
- 192
0
votes
2 answers
nodeAffinity & nodeAntiAffinity are ignored
I am having a problem where I am trying to restrict a deployment to work on avoid a specific node pool and nodeAffinity and nodeAntiAffinity don't seem to be working.
We are running DOKS (Digital Ocean Managed Kubernetes) v1.19.3
We have two node…

Joel
- 135
- 9
0
votes
1 answer
What is the best way to verify a deployment.yaml kubernetes file?
I have the following deployment.yaml file in Kuberentes:
apiVersion: apps/v1
kind: Deployment
metadata:
name: basic-deployment
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app:…

coderWorld
- 602
- 1
- 8
- 28
0
votes
1 answer
Webhooks on spark-gcp deployed through operatorhub
I deployed gcp-spark operator on k8s. Its working perfectly fine. Able to run scala and python jobs with no issues.
But, I am unable to create volume mounts on my pods. Unable to use local fs. Looks like spark-operator should be enabled with…

Prak_Rum
- 25
- 1
- 11
0
votes
1 answer
How to apply patch to make pod phase go to Succeeded or Failed?
This is a follow-up from my last question - How to programmatically modify a running k8s pod status conditions? after which I realized, you can only patch the container spec from the deployment manifest to seamlessly let the controller apply the…

Inian
- 80,270
- 14
- 142
- 161
0
votes
2 answers
Kubernetes doesnt schedules the pods on the worker nodes
I have the following code for pod creation. I have two nodes one master and another node is worker node, I am creating two pods I need one pod to be scheduled on the master and the other pod on the worker node. I have not specified for pod second…

Mazia
- 63
- 1
- 10
0
votes
1 answer
how do we update kubernetes deployment by declaratively which was created using imperative commands
I Created a deployment named blue with the nginx image and 6 replicas using imperative commands
I created using the following commands
kubectl create deployment blue --image=nginx
kubectl scale deployment blue --replicas=6
Now I want to update the…

Harsha Kumar
- 1
- 1
0
votes
1 answer
Kubernetes only run specific deployments on nodes by specific label
Using Kubernetes I have a set of nodes that are high cpu and I am using a affinity policy for a given deployment to specifically target these high cpu nodes:
# deployment.yaml
spec:
affinity:
nodeAffinity:
…

Justin
- 42,716
- 77
- 201
- 296
0
votes
3 answers
getting error while creating kubernetes deployment
My deployment is working fine. i just try to use local persistent volume for storing data on local of my application. after that i am getting below error.
error: error validating "xxx-deployment.yaml": error validating data:…

Dharmendra jha
- 101
- 2
- 11
0
votes
2 answers
Is there a way to give classpath in Kubernetes deployment/pod definition?
I have an application war which reads an API implementation jar file to load some data in memory. What I am doing currently is that I COPY that jar inside my "application-war/lib" directory using docker file while generating my applications…

Jaraws
- 581
- 1
- 7
- 24
0
votes
1 answer
Disable Kubernetes ClusterIP service environment variables on pods
Whenever a new pod is created in the cluster, environment variables related to the default Kubernetes clusterIP service are being injected into it.
Kubernetes clusterIp service running:
NAME TYPE CLUSTER-IP …

hleal18
- 75
- 1
- 4
0
votes
1 answer
Set `platformVersion` for AWS Fargate when deploying a Kubernetes Deployment config file
I am attempting to deploy a stateful Kubernetes service via a Deployment config file that requires the use of an EFS mount.
The issue I'm having is that this is only supported on Fargate v1.4.0 and by default LATEST is set to v1.3.0.
Is there a…

Stephen Sprinkle
- 1,015
- 11
- 14
0
votes
0 answers
ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Forbidden
Hi I am trying to integrate kubernates with jenkins using kubernates deployment plugin.i configured all the details correctly and mentioned kubeconfig file in jenkins but it is not running yaml files specifice name space instead it is running…

qadhava sharath
- 3
- 4
0
votes
2 answers
How to make a Kubernetes deployment accessible only from a specific deployment?
I have two Kubernetes deployments (DeploymentA and DeploymentB) and I am wondering that is there a way to whitelist all incoming traffic from DeploymentB in DeploymentA? So that DeploymentA can be accessed only via DeploymentB.
ClusterIP service can…

Patric
- 39
- 5