Questions tagged [kubernetes]

For questions about Kubernetes, an open-source system for automating deployment, scaling, and management of containerized applications.

About Kubernetes (from kubernetes.io)

Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.

It groups containers that make up an application into logical units for easy management and discovery. Kubernetes builds upon 15 years of experience of running production workloads at Google, combined with best-of-breed ideas and practices from the community.

Resources

931 questions
53
votes
6 answers

What does "Does not have minimum availability" in k8s mean?

What does "Does not have minimum availability" mean? A GitHub discussion was found, but it is not clear to me what the error message means.
030
  • 13,235
  • 16
  • 74
  • 173
31
votes
4 answers

How to copy files recursively to a Kubernetes pod?

I want to copy files recursively to a Kubernetes pod I tried kubectl cp -r I got: error: unknown shorthand flag: 'r' in -r What are the best ways to transfer whole directories recursively into a pod.
David West
  • 1,463
  • 3
  • 16
  • 25
14
votes
1 answer

Properly shutdown k3s on local machine

I've just installed k3s on my notebook (Ubuntu). Works fine. Great project. However, i do not need it to run 24/7 so, how do I properly shutdown the k3s cluster. Oddly, I cannot find anything about this in the documentation. Thanks
Moonlit
  • 243
  • 1
  • 2
  • 5
9
votes
2 answers

How do I get Kubernetes to work when I get an error "the server could not find the requested resource"?

I cannot create a kubernetes pod. I just deployed Kubernetes to Ubuntu 16.04. I have this as a.yml: apiVersion: v1 kind: ReplicationController metadata: name: nginx spec: replicas: 2 selector: app: nginx template: metadata: …
Jermoe
  • 113
  • 1
  • 2
  • 6
8
votes
1 answer

Access service in remote Kubernetes cluster using ingress

I'm attempting to access a service in an existing kubernetes cluster deployed in a remote machine. I've configured the cluster to be accessible through kubectl from my local mac. $ kubectl cluster-info Kubernetes master is running at…
Pasan W.
  • 203
  • 1
  • 5
8
votes
0 answers

Is there a standard pattern for doing flyway migrations on a kubernetes stack?

There's these instructions from redhat but they're cooking their own flyway. Here's what I've done: I have a dockerfile that looks like this: FROM boxfuse/flyway ADD ./flyway /flyway #TODO: pass the username/password in from kubernetes CMD…
dwjohnston
  • 221
  • 3
  • 11
8
votes
1 answer

New Kubernetes Cluster: remote error: tls: bad certificate

This is my first attempt at setting up a Kubernetes cluster in my test environment. In preperation, I created 3 instances running Fedora Atomic: 10.11.184.8: master/etcd 10.11.184.5: node01 10.11.184.6: node02 Then using contrib/ansible playbooks…
azurepancake
  • 181
  • 1
  • 1
  • 2
7
votes
1 answer

How to create named volumes in Kubernetes?

Several named volumes have been created in docker-compose. How to create these in Kubernetes? How to transform the following named volume example defined in docker-compose to kubernetes format version: "3" services: x: image: z volumes: …
030
  • 13,235
  • 16
  • 74
  • 173
6
votes
2 answers

How much memory/cpu to allocate per pod?

This is a question that's been bothering us quite a while. How can you determine how much to allocate per pod? What if I don't know the program, maybe it needs a lot of memory at peak times. What are some general strategies to finding out how…
aclowkay
  • 161
  • 3
6
votes
2 answers

Deploying a Kubernetes cluster for production on multiple clouds

I want to install a highly available kubernetes cluster (multiple master nodes) on a public cloud (AWS, Azure, GCP and maybe others). I'm looking for a non-vendor specific option to do it. I'm aware of several options like Kops Juju Other Github…
Eldad Assis
  • 378
  • 3
  • 9
5
votes
1 answer

Control order of container termination in a single pod in Kubernetes

I have two containers inside one pod. One is my application container and the second is a CloudSQL proxy container. Basically my application container is dependent on this CloudSQL container. The problem is that when a pod is terminated, the…
4
votes
1 answer

How to apply DRY to k8s files?

At the moment there are more than 100 different deployment files. The majority of the config is identical, but there are some differences and therefore every docker image has its own deployment template. If a change has to be made to one of the…
030
  • 13,235
  • 16
  • 74
  • 173
4
votes
2 answers

how to control pod termination speed in kubernetes

I have a k8s deployment that I update by doing kubectl apply -f spec.yml. I use the default update strategy. Whenever I update, new pods get created and the old ones eventually get deleted. This is what kubectl get pods looks like a few seconds…
Assaf Lavie
  • 1,241
  • 11
  • 17
4
votes
1 answer

Scaling replication controllers via API in Kubernetes

Is there a way to scale replication controller via API in kubernetes. By using kubeclt command, it may be done by running: kubectl scale --replicas=1 --namespace=kube-system rc my_replication_controller But how to achieve it using API? Moving…
user54
  • 583
  • 4
  • 16
4
votes
1 answer

What is the PF field in k9s?

In k9s (kubernetes management tool) what is the PF column (for pods)? What does the Ⓕ value mean?
benjimin
  • 289
  • 1
  • 12
1
2 3
10 11