4,855 questions
1
vote
1
answer
29k
views
How do I test a ClusterIssuer solver?
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 ...
332
votes
31
answers
396k
views
Kubernetes service external ip pending
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: ...
682
votes
36
answers
464k
views
How can I use local Docker images with Minikube?
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?
...
102
votes
6
answers
189k
views
Expose port in minikube [closed]
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 ...
305
votes
18
answers
614k
views
How can I keep a container running on Kubernetes?
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 ...
181
votes
6
answers
321k
views
pod has unbound PersistentVolumeClaims
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.
...
550
votes
11
answers
325k
views
Difference between ClusterIP, NodePort and LoadBalancer service types in Kubernetes? [closed]
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 ...
229
votes
12
answers
360k
views
How to set multiple commands in one yaml file with Kubernetes?
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: # ...
220
votes
25
answers
440k
views
My kubernetes pods keep crashing with "CrashLoopBackOff" but I can't find any log
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-...
159
votes
13
answers
382k
views
Kubernetes: how to set VolumeMount user group and file permissions
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. ...
288
votes
7
answers
364k
views
Service located in another namespace
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 ...
269
votes
10
answers
402k
views
Kubernetes how to make Deployment to update image
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 ...
148
votes
8
answers
274k
views
How to pull environment variables with Helm charts
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 ...
5
votes
1
answer
10k
views
Why container memory usage is doubled in cAdvisor metrics?
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)
...
244
votes
7
answers
356k
views
How does kubectl port-forward create a connection?
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 ...