Questions tagged [kubernetes]
KUBERNETES QUESTIONS MUST BE SPECIFICALLY RELATED TO SOFTWARE DEVELOPMENT. Configuration and deployment is off-topic here. A good rule of thumb is, if it happens outside the pod, it's probably off-topic - DevOps Stack Exchange or Server Fault may be more appropriate. If it's about code running inside the pod, it's probably OK.
kubernetes
60,290
questions
658
votes
34
answers
433k
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?
...
551
votes
27
answers
593k
views
Pods stuck in Terminating status [closed]
I tried to delete a ReplicationController with 12 pods and I could see that some of the pods are stuck in Terminating status.
My Kubernetes cluster consists of one control plane node and three ...
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 ...
475
votes
11
answers
175k
views
kubectl apply vs kubectl create?
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 ...
460
votes
13
answers
172k
views
Ingress vs Load Balancer
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....
448
votes
5
answers
145k
views
What's the difference between Docker Compose and Kubernetes?
While diving into Docker, Google Cloud and Kubernetes, and without clearly understanding all three of them yet, it seems to me these products are overlapping, yet they're not compatible.
For example, ...
426
votes
7
answers
119k
views
What's the difference between Apache's Mesos and Google's Kubernetes
What exactly is the difference between Apache's Mesos and Google's Kubernetes?
I understand both are server cluster management software. Can anyone elaborate where the main differences are - when ...
403
votes
11
answers
134k
views
What is the difference between a pod and a deployment?
I have been creating pods with type:deployment but I see that some documentation uses type:pod, more specifically the documentation for multi-container pods:
apiVersion: v1
kind: Pod
metadata:
name:...
376
votes
21
answers
541k
views
Command to delete all pods in all kubernetes namespaces
Upon looking at the docs, there is an API call to delete a single pod, but is there a way to delete all pods in all namespaces?
345
votes
21
answers
392k
views
How do I force Kubernetes to re-pull an image?
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: ...
339
votes
1
answer
70k
views
Where does the convention of using /healthz for application health checks come from?
In the Kubernetes/Docker ecosystem there is a convention of using /healthz as a health-check endpoint for applications.
Where does the name 'healthz' come from, and are there any particular semantics ...
323
votes
32
answers
372k
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: ...
322
votes
21
answers
338k
views
How do I get logs from all pods of a Kubernetes replication controller?
Running kubectl logs shows me the stderr/stdout of one Kubernetes container.
How can I get the aggregated stderr/stdout of a set of pods, preferably those created by a certain replication ...
321
votes
17
answers
157k
views
Difference between targetPort and port in Kubernetes Service definition
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
...
316
votes
9
answers
233k
views
How can I trigger a Kubernetes Scheduled Job manually?
I've created a Kubernetes Scheduled Job, which runs twice a day according to its schedule. However, I would like to trigger it manually for testing purposes. How can I do this?