The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [kubernetes]

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

Filter by
Sorted by
Tagged with
16
votes
1answer
22k views

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.
13
votes
2answers
7k views

Docker In Kubernetes Deployment

I am using a third party library that creates sibling docker containers via: docker run -d /var/run/docker.sock:/var/run/docker.sock ... I am trying to create a Kubernetes deployment out of the ...
12
votes
2answers
809 views

Docker Container capacity planning

I'm running my application on 4 Virtual Machines with 8 3.2 GHz Virtual CPUs and 32 GB, however, I will be splitting up the processes into separate containers. I am not sure how many containers to ...
12
votes
2answers
439 views

Combine Docker Swarm and Kubernetes

My company is trying to play a little catch-up in the DevOps space. I have been doing a lot of research on containerization of applications and the orchestration systems that go with it. I came across ...
12
votes
2answers
600 views

How do I automate deployments with Kubernetes?

Assuming I have Kubernetes deployed via Rancher and Jenkins is building new images and pushing them to DockerHub upon check-in of new code to GitHub, how do I automate getting new images deployed? ...
10
votes
1answer
291 views

What are spells of Kubernetes?

Question What is spell of conjure-up in Kubernetes? Background Following Kubernetes on Ubuntu and run conjure-up kubernetes which showed the snapshot asking which spell to choose. But not sure what ...
9
votes
1answer
900 views

Conflicting Kubernetes CPU usage & Docker Container Metrics

We recently switched over our production environment to Kubernetes. I'd like to enforce CPU limits on the containers. I'm getting conflicting CPU metrics that do not fit together. Here's my setup: ...
8
votes
2answers
11k views

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 ...
8
votes
1answer
747 views

How to make Tiller highly available?

I'm using helm to deploy my services to a Kubernetes cluster. I want to improve the service availability of my tiller pod. So I scaled the tiller deployment to 2 replicas. Helm is working as before ...
8
votes
1answer
430 views

Persistent Storage with Docker in Production - Which Solution and Why?

I've recently started working for a company that wants to break their monolithic SaaS application up into containerized microservices. I'm having a hard time grasping a fundamental part of persistent ...
7
votes
1answer
498 views

What is a minimal viable number of hosts for an experimental Kubernetes cluster?

For example, to play with Docker Swarm in a way which makes sense you need 2 or better 3 hosts, right? What is that number for K8S?
7
votes
1answer
796 views

What is the impact of using Helm Deployments instead of StatefulSets for Databases like MongoDB or MySQL?

The definition of a stateless app seems to apply to database servers like MongoDB or MySQL. I found Helm Charts as a kind of template-repository for Kubernetes. However, the stable builds all use ...
7
votes
1answer
90 views

Debug BackendConnectionErrors from Kubernetes Service LoadBalancer sesrvice

We recently moved some of our production infrastructure to Kubernetes. Many pods are exposed through a LoadBalancer service on AWS. This creates an ELB, registers each node in the cluster with the ELB,...
7
votes
1answer
93 views

Strategy for deploying/hosting javascript-based static websites in containers

This comes up from time to time in several of our dev teams, without us having figured out the "right" way: We use a lot of react-based webapplications that "compile" into static websites that are ...
7
votes
1answer
435 views

Where is the documentation of Kubernetes API server configurations?

Questions Where is the explanations or documentations of the Kubernetes API Server configuration parameters? Background There are parameters to configure for Kubernetes API server e.g. ...
7
votes
1answer
100 views

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-...
6
votes
4answers
4k views

How to get kubernetes pod network CIDR

I have a running k8s cluster initialized with kubeadm. On initialization, I did not pass the option --pod-network-cidr How do I get the CIDR of the pod network I tried Looking at the /etc/...
6
votes
2answers
6k views

Why does Helm time out on almost every action?

I'm trying to set up helm for the first time and I'm having troubles. First, I've created account with cluster-admin role. (According to https://github.com/kubernetes/helm/blob/master/docs/rbac.md#...
6
votes
2answers
19k views

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:...
6
votes
1answer
1k views

How to replicate a mongodb pod with its persistent storage

I made these settings : apiVersion: v1 kind: PersistentVolumeClaim metadata: labels: name: mongo-claim0 name: mongo-claim0 namespace: my-app spec: ...
5
votes
2answers
690 views

ChaosMonkey for k8s?

Is there a kind of tool like ChaosMonkey specific for k8s that kill nodes and pods during office hours to train the team how to deal with issues and to harden the k8s cluster? It is possible to ...
5
votes
2answers
626 views

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 ...
5
votes
3answers
125 views

What is the recommended way to monitor differences between multiple Kubernetes namespaces/clusters?

Given a Kubernetes cluster with two namespaces; what is the recommended way to monitor and sync differences in configmaps, deployments, ingresses etc. between the namespaces?
5
votes
1answer
519 views

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 ...
5
votes
2answers
221 views

Load balancing kubernetes cluster on budget KVM provider?

There are a lot of cheap KVM providers these days that offer simple nodes with just a single external IP per node, without any load balancing. What is a typical budget load balancing solution for ...
5
votes
1answer
9k views

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....
5
votes
1answer
371 views

Connecting jaeger with elasticsearch backend storage on kubernetes cluster

I have a kubernetes cluster on google cloud platform, and on it, I have a jaeger deployment via development setup of jaeger-kubernetes templates because my purpose is setup elasticsearch like backend ...
5
votes
1answer
928 views

Kubernets docker registry behind nginx-ingress

I try to setup docker-registry in Kubernetes cluster behind the nginx-ingress controller. The issue is, when I try to push the image into private registry, it tells me: Get https://registry.local/...
4
votes
2answers
117 views

If we are using containers do we still need to worry about configuration management at an infrastructure level?

We are about to begin our journey with containers and I am wondering if we still need to utilize something like Chef, Ansible, Terraform, etc. to ensure that our infrastructure is properly maintained? ...
4
votes
4answers
153 views

How to find interdependencies between pods in a Kubernetes cluster?

Two Pods run in a Kubernetes cluster. One is a simple Wordpress application and the other a Mysql database. The Wordpress Pod communicates with the Mysql database. The aim is to find dependencies ...
4
votes
1answer
63 views

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 ...
4
votes
2answers
1k views

Copy multiple files using * wildcard from kubernetes container

I have several files named out1, out2, ... in my Kubernetes container. I want to copy them to my local computer. I am using: $ kubectl cp pod:/path/out* . But I am getting an error: tar: Removing ...
4
votes
1answer
352 views

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 ...
4
votes
2answers
1k views

How to add rules to Kubernetes NGINX Ingress controller from different yml definitions?

I'm trying to implement a Kubernetes cluster with a fanout pattern using an NGINX Ingress which routes traffic on multiple different hosts and paths to different microservices. The code for each ...
4
votes
1answer
695 views

Kubernetes API Server KUBE_SERVICE_ADDRESSES parameter and Pod Network configuration

Question Where is the Kubernetes documentation regarding KUBE_SERVICE_ADDRESSES parameter of API server and Pod network configuration? Background KUBE_SERVICE_ADDRESSES parameter value needs to go ...
4
votes
1answer
107 views

Is making kubernetes masters schedulable a really bad idea?

It's a cash strapped start-up. What are the worst consequences of running only three nodes, three schedulable masters? Are there some ways can one mitigate against the risks?
4
votes
2answers
106 views

Automatic Kubernetes deployments per Github pull-request

I'm looking for a tool/service that will achieve a similar result as Heroku Review Apps using Google services. When a new pull-request is created in Github: Create new Cloud Build trigger for it ...
4
votes
1answer
686 views

Handling request based on source ip with traefik in k8s

I have a k8s cluster (three vms on my own hardware; no aws, google cloud, ...) that uses traefik (https://traefik.io/) as a reverse proxy to address services/deployments in the background. For this I ...
4
votes
1answer
113 views

kubernetes cluster node with 4cpu can't hold two pods with 2cpu

I have a Kubernetes Cluster on GCE (Google Cloud Engine) (Also called GKE - Google Kubernetes Engine). The Cluster is configured to have 4cpu per node. The pods I am using request 2cpu. I expect to ...
4
votes
2answers
654 views

Automate Helm's tiller installation with Terraform

I need to be able to generate disposable kubernetes environments using terraform. These environments should use helm for application deployment and ideally have tiller installed during the terraform ...
3
votes
1answer
1k views

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 ...
3
votes
2answers
2k views

Helm install or upgrade release failed on Kubernetes cluster: the server could not find the requested resource or UPGRADE FAILED: no deployed releases

Using helm for deploying chart on my Kubernetes cluster, since one day, I can't deploy a new one or upgrading one existed. Indeed, each time I am using helm I have an error message telling me that it ...
3
votes
1answer
78 views

How to convert a docker-compose file to kubernetes file(s)?

Is there any easy way to convert a docker-compose.yml file to Kubernetes file(s)?
3
votes
2answers
92 views

When to put all containers in a pod and when to deploy them individually?

One of the reasons for asking this question is that it seems to be impossible to access a container using kubectl exec when these are deployed in a pod.
3
votes
1answer
1k views

Kubernetes - unable to login to Dashboard

I have installed Kubernetes using AWS Minikube scripts - https://github.com/scholzj/aws-minikube After installation I am trying to run kubectl proxy But I am getting this https:kubernetes-...
3
votes
2answers
766 views

Amazon EKS from local kubectl does not cache MFA token/session

I have set up an EKS cluster in AWS. My user-account there is secured with MFA. And I have an assumerole, that is allowed to manage my infrastructure. So I installed and configured my system as ...
3
votes
1answer
69 views

Is running load balanced autoscale apps cheaper on AWS Kubernetes than just using EC2 resources?

We're running like 100+ servers on AWS EC2 with like 20 microservices all load balanced and autoscaled with 2 to 3 instances. The cost has become....very significant. I'm wondering if migrating ...
3
votes
1answer
90 views

Mysql with Kubernetes

I am converting a webapp from monolithic to kubernetes based architecture. But how can mysql be persistent with data when we have 2 mysql pods in each of 2 differnet nodes? I think we can mount a ...
3
votes
1answer
42 views

Tool preferences for rapidly spinning up and spinning down k8s clusters

My team hosts several completely different projects on a production k8s cluster with a given configuration. We use AWS (and are starting to use Google Cloud). We have a QA cluster as well, that "sort ...
3
votes
1answer
633 views

How to use same Helm dependency in many charts?

For example, I have this charts structure: ├── parentChart │   ├── charts │   │   ├── childChart1 │   │   │   ├── charts │   │   │   │   └── postgresql-3.11.6.tgz │   │   │   ├── Chart.yaml │   │   │ ...