Questions tagged [kubernetes-deployment]

260 questions
0
votes
1 answer

Nextcloud Kubernetes deployment Internal server error

I want to install nextcloud in kubernetes according to this guide: https://www.codementor.io/@alicheaito/deploying-nextcloud-on-kubernetes-with-kustomize-tn78vcz0a I don't use any ingress. For testing I used RunAsUser: 0 at the deployment, I know…
Dominik2000
  • 135
  • 1
  • 8
0
votes
2 answers

kubernetes -I changed the deployment name ,then redeploying to the environment,how to cleanup the old deployment and pods with old name?

Had requirement to change the pod or deployment name.now when we deploy,we have 2 deployments and 3 pods each with old and new name So far i was deleting the old deployments manually. do i need to manually delete the old deployment and pods or is…
Joe Pauly
  • 337
  • 3
  • 19
0
votes
2 answers

Run command creates pod instead of deployment on Azure Kubernetes

When I use the kubectl run command instead of creating a deployment it creates a pod/selenium-node-chrome and as a result, I am unable to scale the selenium-node-chrome using the replicas command. PS C:\Users\Test> kubectl run selenium-node-chrome…
0
votes
2 answers

How to get the custom attributes in Kubernetes?

How to list the current deployments running in Kubernetes with custom columns displayed as mentioned below: DEPLOYMENT CONTAINER_IMAGE READY_REPLICAS NAMESPACE The data should be sorted by the increasing order of the deployment name.
Yash Bindlish
  • 560
  • 5
  • 15
0
votes
1 answer

Kubernetes - pods not being evicted from dead nodes

I have a kube cluster setup with kubeadm init (mostlydefaults). Everything works as intended, except for the fact that if one of my nodes goes offline while pods are running on it, the pods stay in the Running status indefinitely. From what I've…
0
votes
1 answer

How to change the URL from localhost to service iinside a pod in Kubernetes

I have an application running on a pure docker environment. I wanted to deploy that in a k8s. Hence I created config maps, deployments etc. Below is the config file before deploying to k8s. config: message: - type:…
0
votes
2 answers

How to disallow access to a container port from the pod ip in Kubernetes

By default Kubernetes allow pods to access other pods using the pod IP. I have 2 pods. Pod1 and Pod2. Pod1 has a mysql server and a PHP application. And Pod2 has a php application. The Pod1 ip is 174.17.0.4, Within the Pod2 the php application can…
user3502626
  • 838
  • 11
  • 34
0
votes
3 answers

How to load balance pod distribution between master+worker and only worker node in a kubernetes cluster

I have one k8s cluster with two nodes. One node lets say A, is a master+worker and the other B, is a worker only. Now, whenever a new deployment happens it goes to the worker node (B). I tried with multiple deployments and each of them got deployed…
vivek
  • 187
  • 14
0
votes
1 answer

Application inside container of a Kubernetes Deployment fails with error localhost:port can not be accessed?

I have an applications Docker image which starts a mongodb instance on a random port. When I create a kubernetes Pod with application image; application gets successfully initialized and a mongodb instance gets up on a random port as localhost:port…
0
votes
4 answers

Using kubectl roll outs to update my images, but need to also keep my deployment object in version control

In My CICD, I am: generating a new image with a unique tag. foo:dev-1339 and pushing it to my image repo (ECR). Then I am using a rolling update to update my deployment. kubectl rolling-update frontend --image=foo:dev-1339 But I have a conflict…
Josh Beauregard
  • 2,498
  • 2
  • 20
  • 37
0
votes
1 answer

K8s Deployment failed but End points work

I was playing with k8s deployment with change of port for service,container and ingress.I am curious to know how the deployment is working. my scenario : To deploy one rest service application hosting 2 endpoints. Case 1: containerPort: 8081 - #…
0
votes
1 answer

Is there a performance advantage to mounting a volume as readonly?

In Kubernetes deployments, you can specify volume mounts as readonly. Is there a performance advantage to it, or logical only? Is it dependant on the volume type? To make my intentions clear, I'm using a pv in a scenario where I have one writer and…
0
votes
1 answer

BadRequest error on deployment of yaml file

getting a bad request error on deployment of yaml file in kubernetes cluster. Error from server (BadRequest): error when creating "deployment.yaml": service in version "v1" cannot be handled as a Service: no kind "service" is registered for version…
0
votes
3 answers

Kubernetes check readinessProbe at Service/Deployment level

Is there a way to request the status of a readinessProbe by using a service name linked to a deployment ? In an initContainer for example ? Imagine we have a deployment X, using a readinessProbe, a service linked to it so we can request for example…
Borhink
  • 307
  • 1
  • 3
  • 15
0
votes
1 answer

How to "kubectl get ep" in deployment.yaml

I have a kubernetes deployment using environment variables and I wonder how to set dynamic endpoints in it. For the moment, I use $ kubectl get ep rtspcroatia NAME ENDPOINTS AGE rtspcroatia 172.17.0.8:8554 3h33m And copy/paste…
Borhink
  • 307
  • 1
  • 3
  • 15