Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
30k views

I'm attempting to deploy a Kubernetes cluster with an SSL certificate using LetsEncrypt on DigitalOcean. I followed these instructions, and everything works right up until the challenge order is ...
Nathaniel Ford's user avatar
684 votes
36 answers
473k views

I have several Docker images that I want to use with Minikube. I don't want to first have to upload and then download the same image instead of just using the local image directly. How do I do this? ...
Kapil Gupta's user avatar
  • 7,821
331 votes
31 answers
404k views

I am trying to deploy nginx on kubernetes, kubernetes version is v1.5.2, I have deployed nginx with 3 replica, YAML file is below, apiVersion: extensions/v1beta1 kind: Deployment metadata: name: ...
Pankaj Jackson's user avatar
103 votes
6 answers
192k views

In minikube, how to expose a service using nodeport ? For example, I start a kubernetes cluster using the following command and create and expose a port like this: $ minikube start $ kubectl run ...
KarateKid's user avatar
  • 3,456
310 votes
19 answers
636k views

I'm now trying to run a simple container with shell (/bin/bash) on a Kubernetes cluster. I thought that there was a way to keep a container running on a Docker container by using pseudo-tty and ...
springwell's user avatar
  • 3,211
181 votes
6 answers
329k views

When I push my deployments, for some reason, I'm getting the error on my pods: pod has unbound PersistentVolumeClaims Here are my YAML below: This is running locally, not on any cloud solution. ...
soniccool's user avatar
  • 6,078
557 votes
11 answers
330k views

Question 1 - I'm reading the documentation and I'm slightly confused with the wording. It says: ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only ...
AmazingBergkamp's user avatar
232 votes
12 answers
366k views

In this official document, it can run command in a yaml config file: https://kubernetes.io/docs/tasks/configure-pod-container/ apiVersion: v1 kind: Pod metadata: name: hello-world spec: # ...
scho's user avatar
  • 3,615
222 votes
25 answers
451k views

This is what I keep getting: [root@centos-master ~]# kubectl get pods NAME READY STATUS RESTARTS AGE nfs-server-h6nw8 1/1 Running 0 1h nfs-...
Lucifer's user avatar
  • 2,331
161 votes
13 answers
405k views

I'm running a Kubernetes cluster on AWS using kops. I've mounted an EBS volume onto a container and it is visible from my application but it's read only because my application does not run as root. ...
Mikhail Janowski's user avatar
291 votes
7 answers
377k views

I have been trying to find a way to define a service in one namespace that links to a Pod running in another namespace. I know that containers in a Pod running in namespaceA can access serviceX ...
David McKinley's user avatar
149 votes
8 answers
281k views

I have my deployment.yaml file within the templates directory of Helm charts with several environment variables for the container I will be running using Helm. Now I want to be able to pull the ...
uberrebu's user avatar
  • 4,449
272 votes
10 answers
411k views

I do have deployment with single pod, with my custom docker image like: containers: - name: mycontainer image: myimage:latest During development I want to push new latest version and make ...
Andriy Kopachevskyy's user avatar
6 votes
1 answer
11k views

I tested those queries. The first query was half the value of the second query: sum(container_memory_working_set_bytes{image!="",name=~"^k8s_.*",pod=~"$pod"}) by (pod) ...
redmagic0099's user avatar
245 votes
7 answers
361k views

kubectl exposes commands that can be used to create a Service for an application and assigns an IP address to access it from internet. As far as I understand, to access any application within ...
karthikeayan's user avatar
  • 5,082
331 votes
17 answers
179k views

A Kubernetes Service can have a targetPort and port in the service definition: kind: Service apiVersion: v1 metadata: name: my-service spec: selector: app: MyApp ports: - protocol: TCP ...
Mr.DevEng's user avatar
  • 1,688
154 votes
18 answers
256k views

I try to set up Kubernetes cluster. I have Persistent Volume, Persistent Volume Claim and Storage class all set-up and running but when I wan to create pod from deployment, pod is created but it hangs ...
Krzysztof's user avatar
  • 1,549
144 votes
12 answers
130k views

I used to be able to curl https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_PORT_443_TCP_PORT/api/v1beta3/namespaces/default/ as my base URL, but in kubernetes 0.18.0 it gives me "unauthorized". The ...
tslater's user avatar
  • 4,432
140 votes
20 answers
197k views

For example, a deployment yaml file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: guestbook spec: replicas: 2 template: metadata: labels: app: guestbook ...
online's user avatar
  • 5,637
76 votes
3 answers
94k views

I am trying to create a Helm Chart with the following resources: Secret ConfigMap Service Job Deployment These are also in the order that I would like them to be deployed. I have put a hook in the ...
waterprincess's user avatar
115 votes
10 answers
189k views

I am evaluating Kubernetes as a platform for our new application. For now, it looks all very exciting! However, I’m running into a problem: I’m hosting my cluster on GCE and I need some mechanism to ...
Marco Lamina's user avatar
  • 3,730
83 votes
9 answers
105k views

I am running minikube v0.24.1. In this minikube, I will create a Pod for my nginx application. And also I want to pass data from my local directory. That means I want to mount my local $HOME/go/src/...
Abu Hanifa's user avatar
  • 3,115
59 votes
8 answers
51k views

How can I access environment variables in Vue, that are passed to the container at runtime and not during the build? Stack is as follows: VueCLI 3.0.5 Docker Kubernetes There are suggested solutions ...
Johann's user avatar
  • 592
25 votes
6 answers
12k views

I have minikube version v0.17.1 running on my machine. I want to simulate the environment I will have in AWS, where my MySQL instance will be outside of my Kubernetes cluster. Basically, how can I ...
cgf's user avatar
  • 3,519
484 votes
11 answers
182k views

What I understood by the documentation is that: kubectl create Creates a new k8s resource in the cluster kubectl replace Updates a resource in the live cluster kubectl apply If I want to do ...
Suresh Vishnoi's user avatar
128 votes
7 answers
99k views

I'm looking for a way to tell (from within a script) when a Kubernetes Job has completed. I want to then get the logs out of the containers and perform cleanup. What would be a good way to do this? ...
russt's user avatar
  • 1,688
73 votes
7 answers
92k views

In a container inside a pod, how can I run a command using kubectl? For example, if i need to do something like this inside a container: kubectl get pods I have tried this : In my dockerfile, I ...
Dreams's user avatar
  • 6,142
10 votes
5 answers
56k views

Can we use nfs volume plugin to maintain the High Availability and Disaster Recovery among the kubernetes cluster? I am running the pod with MongoDB. Getting the error chown: changing ownership ...
BSG's user avatar
  • 723
270 votes
15 answers
307k views

How do I automatically restart Kubernetes pods and pods associated with deployments when their configmap is changed/updated? I know there's been talk about the ability to automatically restart pods ...
Johan's user avatar
  • 41.2k
248 votes
19 answers
854k views

I am trying to see how much memory and CPU is utilized by a kubernetes pod. I ran the following command for this: kubectl top pod podname --namespace=default I am getting the following error: W0205 ...
aniztar's user avatar
  • 3,053
232 votes
6 answers
248k views

I was considering using secrets to mount a single file but it seems that you can only mount directory that will overwrites all the other content. How can I share a single config file without mounting ...
Smana's user avatar
  • 2,609
99 votes
20 answers
357k views

i'm getting an error when running kubectl one one machine (windows) the k8s cluster is running on CentOs 7 kubernetes cluster 1.7 master, worker Here's my .kube\config apiVersion: v1 clusters: - ...
bherto39's user avatar
  • 1,866
45 votes
3 answers
59k views

I have used kubectl create serviceaccount sa1 to create service account. Then I used kubectl get serviceaccount sa1 -oyaml command to get service account info. But it returns as below. apiVersion: v1 ...
Kavishka's user avatar
  • 545
12 votes
2 answers
18k views

On the kubernetes dashboard, there's a pod wherein the Memory Usage (bytes) is displayed as 904.38Mi. This pod holds the java app that was ran with -Xms512m -Xmx1024m, and on kubernetes deployment ...
lorraine batol's user avatar
471 votes
14 answers
184k views

I am quite confused about the roles of Ingress and Load Balancer in Kubernetes. As far as I understand Ingress is used to map incoming traffic from the internet to the services running in the cluster....
arunkjn's user avatar
  • 5,989
66 votes
10 answers
54k views

Is there a way to force an SSL upgrade for incoming connections on the ingress load-balancer? Or if that is not possible with, can I disable port :80? I haven't found a good documentation pages that ...
Simon Heinzle's user avatar
58 votes
5 answers
79k views

I have a kubernetes cluster on Azure and I created 2 namespaces and 2 service accounts because I have two teams deploying on the cluster. I want to give each team their own kubeconfig file for the ...
bramvdk's user avatar
  • 1,587
365 votes
21 answers
441k views

I have the following replication controller in Kubernetes on GKE: apiVersion: v1 kind: ReplicationController metadata: name: myapp labels: app: myapp spec: replicas: 2 selector: app: ...
Torsten Bronger's user avatar
256 votes
3 answers
148k views

I've read a couple of passages from some books written on Kubernetes as well as the page on headless services in the docs. But I'm still unsure what it really actually does and why someone would use ...
John Lexus's user avatar
  • 3,806
238 votes
14 answers
353k views

I would like to see all resources in a namespace. Doing kubectl get all will, despite of the name, not list things like services and ingresses. If I know the the type I can explicitly ask for that ...
michas's user avatar
  • 26.8k
154 votes
20 answers
385k views

I have one pod running with name 'jenkins-app-2843651954-4zqdp'. I want to install few softwares temporarily on this pod. How can I do this? I am trying this- kubectl exec -it jenkins-app-2843651954-...
biz dev's user avatar
  • 1,541
88 votes
10 answers
101k views

This was discussed by k8s maintainers in https://github.com/kubernetes/kubernetes/issues/7438#issuecomment-97148195: Allowing users to ask for a specific PV breaks the separation between them I don't ...
solsson's user avatar
  • 1,691
67 votes
3 answers
70k views

As per this official document, Kubernetes Persistent Volumes support three types of access modes. ReadOnlyMany ReadWriteOnce ReadWriteMany The given definitions of them in the document is very high-...
ACloudRoamer's user avatar
  • 1,341
62 votes
6 answers
100k views

I have two applications - app1 and app2, where app1 is a config server that holds configs for app2. I have defined /readiness endpoint in app1 and need to wait till it returns OK status to start up ...
doublemc's user avatar
  • 3,329
58 votes
16 answers
320k views

I deployed my angular application(Static webpage) on kubernetes and tried launching it from Google Chrome. I see app is loading, however there is nothing displayed on the browser. Upon checking on ...
suku's user avatar
  • 581
47 votes
11 answers
100k views

I set up Kubernetes on CoreOS on bare metal using the generic install scripts. It's running the current stable release, 1298.6.0, with Kubernetes version 1.5.4. We'd like to have a highly available ...
dmol's user avatar
  • 471
35 votes
3 answers
56k views

Is there any way to configure nodeSelector at the namespace level? I want to run a workload only on certain nodes for this namespace.
kvaps's user avatar
  • 3,087
20 votes
5 answers
55k views

I have a simple ingress network, I want to access services at different namespaces, from this ingress network. How I can do this? My ingress network yaml file: apiVersion: extensions/v1beta1 kind: ...
ColossusMark1's user avatar
235 votes
14 answers
333k views

All of a sudden, I cannot deploy some images which could be deployed before. I got the following pod status: [root@webdev2 origin]# oc get pods NAME READY STATUS ...
Peng Xiao's user avatar
  • 12k
126 votes
9 answers
126k views

I'm able to connect to an ElastiCache Redis instance in a VPC from EC2 instances. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances, ...
Loic Duros's user avatar
  • 5,842

1
2 3 4 5
98