All Questions
Tagged with kubernetes kubernetes
4,601
questions
1
vote
1
answer
28k
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 ...
323
votes
32
answers
371k
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: ...
658
votes
34
answers
432k
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?
...
299
votes
18
answers
560k
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 ...
99
votes
6
answers
178k
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 ...
172
votes
6
answers
296k
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.
...
222
votes
12
answers
335k
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: # ...
539
votes
11
answers
312k
views
Difference between ClusterIP, NodePort and LoadBalancer service types in Kubernetes?
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 ...
153
votes
12
answers
328k
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. ...
283
votes
7
answers
327k
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 ...
217
votes
22
answers
415k
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-...
145
votes
8
answers
248k
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 ...
265
votes
8
answers
372k
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 ...
240
votes
8
answers
336k
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 ...
3
votes
1
answer
8k
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)
...