Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

Kubernetes Affinity Weight Issue

my use-case is to schedule a deployment only in fsn1 region nodes, unless there's an emergency and nodes of fsn1 go down, then only in that case I want to schedule as a fallback on hel1 nodes. ...
Siraxis's user avatar
  • 41
0 votes
0 answers
22 views

Cannot access LoadBalancer service of Django deployment on EKS cluster

I have a containerized Django application that was successfully deployed (imperatively) to an EKS cluster. I've used the following commands: kubectl create deployment announcements --port=127 --image=...
UCFChandra's user avatar
0 votes
1 answer
46 views

Not able to inject configmap using kustomize

Learning basics of K8 and running into something. The example for book is not working for me. I am trying to inject a configmap into my deployment using kustomize. Pasting contents of 3 file and the ...
curiousengineer's user avatar
0 votes
1 answer
109 views

Allow Kubernetes to work with local docker registry

I'm new to kubernetes, and after successfully creating my first cluster with a single node (On debian 12), I am trying to deploy my first application, a simple hello world in python. I use Kudeadm. I ...
TennyKs's user avatar
  • 11
0 votes
1 answer
111 views

Stop Kubernetes from redeploying a pod from deployment

I'm trying to manually control a pods lifespan, but I can't seem to control that the pod should not restart, after being terminated manually. The concepts is this: Apply deployment file Make changes ...
jonas's user avatar
  • 183
0 votes
0 answers
188 views

Springboot-3.1.6.. Getting KubernetesClientException: Operation: [list] for kind: [Service] with name: [null] in namespace: [namespace] failed

I am trying to upgrade my current springboot application from version 2.2.2.RELEASE to 3.1.6. Since my application is deployed in kubernetes cluster, i had to upgrade associated spring boot kubernetes ...
Jin's's user avatar
  • 1
0 votes
1 answer
392 views

PVC in deployment and stateful set

I am in the early stage of learning kubernetes. I am not able to understand how persistent volumes works with replica set with HPA and statefulset with HPA. Assume we deployed a pod with 1 replica and ...
Suresh Makkena's user avatar
-1 votes
2 answers
99 views

Deploy elasticsearch with url and open port

I use this yml file to deploy elasticsearch on kubernetes: apiVersion: apps/v1 kind: Deployment metadata: name: elasticsearch labels: app: elasticsearch spec: selector: matchLabels: ...
Peter Penzov's user avatar
  • 1,420
0 votes
1 answer
116 views

How to pass configMap file to command parameter of deployment?

We are trying to create a yaml file which is used in Azure Dev Ops Release pipeline to configure otel-collector but pod fails with reason failed to create containerd task: failed to create shim task: ...
Durgesh Chaudhary's user avatar
4 votes
1 answer
343 views

Azure ML: DeploymentIdentityError: Failed to create Kubernetes deployment identity, Reason:RefreshExtensionIdentityNotSet

I'm using Azure Machine Learning v2 SDK to create a model deployment on a kubernetes compute attached to an AML workspace. I'm able to deploy it locally as part of testing before deploying online. ...
Rishabh Prajapati's user avatar
1 vote
1 answer
199 views

Deploying Kubernetes Application on a Cluster Created with ARM Template and Custom Script Extension

I am working on an offering for the Azure Marketplace of type 'managed application'. I have created an ARM template that deploys an AKS (Azure Kubernetes Service) cluster as part of this offering. The ...
Gianvito Grassi's user avatar
0 votes
0 answers
37 views

Canarydeployment of AKS based applications using istio

We were trying to enable canary based deployment for our aks based applications using istio feature and HELM templates. By referring the documents provided in medium , intex we tried the solution as ...
Vowneee's user avatar
  • 1,473
0 votes
0 answers
131 views

set configmap sql file

I'm trying to make kubernetes deployment like this apiVersion: v1 kind: PersistentVolumeClaim metadata: name: data-claim labels: app: data-db tier: database spec: accessModes: - ...
crust's user avatar
  • 1
0 votes
2 answers
215 views

Spreading 3 pods across 3 nodes and deploying without downtime

I have 3 k8s control plane nodes. Each of which must run a haproxy pod. DaemonSet approach: A normal solution would be to deploy the haproxy pods as daemonset and each would get one haproxy pod. ...
Vladimir's user avatar
  • 417
0 votes
1 answer
432 views

Java Parameters on Kubernetes Deployment

I have a Java/Spring Boot application which is being deployed on K8s Cluster; containerized via Docker. I'm using Google JIB plugin to create the Docker Image. While running a Spring Boot app as JAR ...
Kaustubh Hande's user avatar
-1 votes
1 answer
798 views

Any python client method available to get/set env variables of kubernetes deployment

Need to get/set the env variables of deployment by using python client methods. kubectl describe deploy command or client.read_namespaced_deployment() method doesn't return the env of container in ...
Selvakumar S's user avatar
0 votes
1 answer
785 views

What is the practice to share PVC for Helm chart application

I am developing a Helm chart for application that consists of several services that require PVC to be provisioned (one umbrella chart with multiple sub-charts). As an example, the application use ...
user1563721's user avatar
  • 1,511
0 votes
1 answer
244 views

Migrating from PSP to PSA

I’ve added the following labels to my namespace: pod-security.kubernetes.io/enforce=restricted pod-security.kubernetes.io/warn=restricted pod-security.kubernetes.io/warn-version=latest All is fine ...
Nopzen's user avatar
  • 576
0 votes
2 answers
22k views

Deployment failed: HTTP probe failed with statuscode: 500

I am having two cluster cluster-1 and cluster-2. In cluster-1 deployed service-1 in the namespace test-namespace-1. It got deployed successfully and running. In cluster-2 deployed service-1 in the ...
Sat's user avatar
  • 4,048
0 votes
1 answer
191 views

Kubernetes SAT token as environment variable

I have created a K8 service account token using following command; kubectl create serviceaccount test-sat-account I have deployment yaml for a dotnet service and I am importing the above token in a ...
Abhijit's user avatar
  • 175
0 votes
1 answer
128 views

Unable to modify file in mounted volume in Kubernertes deployment as nonroot user

I am trying to make a deployment with a simple activeMq docker. Dockerfile FROM openjdk:8-jdk-alpine ARG UID=1001 ARG GID=1100 RUN addgroup -g $GID mygroup && \ adduser -D --shell /bin/...
Deb S's user avatar
  • 524
0 votes
0 answers
252 views

Requesting assistance with node drain and pod eviction in my Kubernetes deployment

I have a deployment with a single replica and a pod disruption budget with minAvailable=1. When I drain the node, the pod does not evict (it is expected and needed) but the node drain process does ...
Karan Kumar's user avatar
0 votes
1 answer
274 views

Error when trying to create k8s Deployment

Created the yaml file below and launched the kubectl command, then got the error. Could someone lent me a couple of fresh eyes and let me kow if are indentations or something else? I have tried with ...
jma's user avatar
  • 41
1 vote
0 answers
30 views

Valid format for Kubernetes deployment multiline annotation value [duplicate]

I am trying to annotate my deployment with multiline yaml format configuration, but getting invalid format exception.(I have controller to parse this custom annotation) apiVersion: apps/v1 kind: ...
Vikas Budhwat's user avatar
0 votes
1 answer
1k views

How to still serve traffic when pod is in "terminated" state?

Problem: Pods with serving http requests are instantly terminated during a deployment, leading to timeout errors for user requests. I want to terminate the pod only when the new pod is stable and ...
P H's user avatar
  • 306
0 votes
1 answer
590 views

Kubernetes - Container not available on set port

I am unable to reach a container on a port that I set in a deployment & service. I created a deployment with this command: kubectl create deploy mydeploy --image nginx --replicas 2 --port 1234 ...
KJ0797's user avatar
  • 233
0 votes
2 answers
779 views

Kubernetes MachineDeployment - Scale down specific node

can someone please say if it is possible to scale down specific Node on MachineDeployment? If I for example will, scale down, then Kubernetes do this with this own algorithm. I cannot google answer on ...
JDev's user avatar
  • 2,451
0 votes
2 answers
161 views

Deployment Controller not selecting pods with same label

I have created a pod using below yaml: apiVersion: v1 kind: Pod metadata: name: pod2 labels: app: dc1 spec: containers: - name: cont1 image: nginx Now, I am creating ...
meallhour's user avatar
  • 15.3k
0 votes
1 answer
173 views

Kubernetes Share existing directory between pod containers

I have container A with a directory like "/public/shared". Container b which is a reverse proxy running in the same pod needs access to this directory. How can I share these? My ...
TigerBear's user avatar
  • 2,784
1 vote
2 answers
9k views

How to update a config map in kubernetes?

Hi I am using a config map which is created from the files in a directory. The config map is mounted to the volume in the pods container. sometimes i need to update my config map . Any idea how can i ...
Starbucks Admin's user avatar
0 votes
1 answer
2k views

How to ensure all kubernetes pods are zero in a deployment?

I am having a kubernetes deployment. I am trying to scale down it to zero replicas. how will i wait to ensure the number pods are zero ? the following is my command to scale down the deployment ...
Starbucks Admin's user avatar
-1 votes
1 answer
81 views

Kubernetes - Does IP Address of Service Object change?

I want to make use of NetworkPolicy for Egress Traffic from one set of Pods to another set of Pods. So, I want to allow egress traffic from pods with label foo:bar only to pods with label foo:beer ...
Vishwanath Joshi's user avatar
0 votes
1 answer
238 views

Deleted resources in kubernetes [closed]

Someone deleted the deployment and i tried to find out from the event logs but i found below response: No resources found in prometheus namespace. Is there plugin or something to let me know who ...
Yassen Fouad Anis's user avatar
0 votes
1 answer
609 views

Populating a Containers environment values with mounted configMap in Kubernetes

I'm currently learning Kubernetes and recently learnt about using ConfigMaps for a Containers environment variables. Let's say I have the following simple ConfigMap: apiVersion: v1 data: ...
Anthony Seager's user avatar
1 vote
1 answer
2k views

Access a web service in kubernetes pod from local browser using NodePort yields Connection refused

What do I need to do in order to get my local browser to and request a resource to a web service running inside Minikube instance running locally on my machine? I am getting a Connection refused when ...
Andez's user avatar
  • 5,798
-1 votes
2 answers
1k views

kubernetes k8 unable to pull latest image

Hi I am working in Kubernetes. Below is my k8 for deployment. apiVersion: apps/v1 kind: Deployment metadata: #Dictionary name: webapp spec: # Dictionary replicas: 1 strategy: type: ...
Niranjan godbole's user avatar
3 votes
3 answers
2k views

Why not to use Kubernetes StatefulSet for stateless applications?

I know why use StatefulSet for stateful applications. (e.g. DB or something) In most cases, I can see like "You want to deploy stateful app to k8s? Use StatefulSet!" However, I couldn't see ...
Eddy Kim's user avatar
0 votes
1 answer
1k views

Migrate existing kubernetes manifests to ARGO CD

I have a git repo, which hosts YAML manifests for all of my applications running on Kubernetes. The directory structure is as follows: - namespace_1 - app_1 - deployment.yaml - service.yaml ...
kadamb's user avatar
  • 1,708
0 votes
1 answer
468 views

CrashLoopBackOff runs intermittently on pods

I have a Kubernetes cluster running using EKS (Elastic Kubernetes Service) and ECR (Elastic Container Repository) on AWS. One specific deployment of mine runs fine for the first two/three restarts ...
JackLidge's user avatar
  • 441
1 vote
1 answer
282 views

Google cloud Manifest unknown during deploy to Kubernetes cluster

I'm trying to deploy my code placed in bitbucket repo to Kubernetes clusters available in google cloud. I've created a trigger which react when I push new changes to bitbucket repo. I mean: Based on ...
Krzysztof Michalski's user avatar
2 votes
0 answers
159 views

Kubernetes - Best Way to Perform Rolling Update w/ Fingerprinted Files

More of a conceptual question than anything else but I am trying to figure out what the best approach is to handle a rolling update to my side project without causing intermittent 404's to old files. ...
methodical's user avatar
0 votes
2 answers
2k views

Setting environment variables in kubernetes manifest using "kubectl set env"

I am trying to update a helm-deployed deployment so that it uses a secret stored as a k8s secret resource. This must be set as the STORAGE_PASSWORD environment variable in my pod. In my case, the ...
Jeff W's user avatar
  • 436
0 votes
1 answer
768 views

Running DB as Kubernetes Deployment or StatefulSet?

I would like to run a single pod of Mongo db in my Kubernetes cluster. I would be using node selector to get the pod scheduled on a specific node. Since Mongo is a database and I am using node ...
RamPrakash's user avatar
  • 3,092
0 votes
2 answers
898 views

Kubernetes deployment helm running first command in shell then run outside the shell

I am trying to run some commands in my K8 deployment yaml. spec: containers: - command: - /bin/sh - -c - export ABC=hijkl - command 2 Basically, I need to run the export ...
Photon's user avatar
  • 55
0 votes
1 answer
285 views

How to create kubernetes custom resources or custom plugin?

Whenever the deployment has been created needs to trigger a custom function or webhook. Does Kubernetes provide any option to do this?
az rnd's user avatar
  • 823
1 vote
2 answers
808 views

How to (re-)name a pod in a K8s deployment?

I want to deploy two containers in a pod through a deployment. But I want the pod to have exactly the name yoda. But in my case, a random string is always append after yoda like that yoda-f8bcb7bf4-...
begarco's user avatar
  • 776
0 votes
1 answer
421 views

Url not working when pod is deployed to kubernetes deployment

I am trying Kubernetes Deployment to deploy pod with some image. service-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: service-deployment spec: replicas: 1 selector: ...
Vineel Pellella's user avatar
19 votes
1 answer
14k views

Kubernetes spread pods across nodes using podAntiAffinity vs topologySpreadConstraints

I am currently using the following to attempt to spread Kubernetes pods in a given deployment across all Kubernetes nodes evenly: spec: affinity: podAntiAffinity: ...
Justin's user avatar
  • 44.8k
0 votes
2 answers
334 views

Running a stateless app as a statefulset (Kubernetes)

In the Kubernetes world, a typical/classic pattern is using Deployment for Stateless Applications and using StatefulSet for a stateful application. I am using a vendor product (Ping Access) which is ...
Manglu's user avatar
  • 11.2k
0 votes
0 answers
120 views

How rollout undo works during rollingUpdate strategy when deployment has crossed 'progressDeadlineSeconds'?

I have created a kubernetes deployment with below specs: replicas: 2 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 Algorithm of the rollout and ...
Sravs2725's user avatar

1
2 3 4 5 6