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
45 votes
5 answers
116k 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.
user avatar
  • 12.6k
23 votes
4 answers
30k 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 ...
user avatar
  • 1,193
21 votes
8 answers
40k 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/...
user avatar
20 votes
1 answer
846 views

What functional differences are there between kubernetes, rancher and mesos?

What are the main feature differences the popular container orchestration tools kubernetes, rancher, and mesos? What would lead you to choose one over the other?
user avatar
  • 650
18 votes
4 answers
14k 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 ...
user avatar
16 votes
2 answers
10k 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 ...
user avatar
  • 339
14 votes
2 answers
567 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 ...
user avatar
  • 248
14 votes
2 answers
754 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? ...
user avatar
  • 141
13 votes
2 answers
1k 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 ...
user avatar
  • 139
12 votes
7 answers
2k views

Is there one website that contains all relevant DevOps news and gets updated on a daily basis?

I am looking for some DevOps news channel like https://nos.nl/teletekst#101 that shows the headlines of the Dutch news. I am aware of https://tweakers.net/ and github.com, but this does not contain ...
user avatar
  • 12.6k
11 votes
5 answers
122k views

How to solve 'upstream connect error or disconnect/reset before headers. reset reason: connection termination' in Istio?

I try to setup an aws load balancer (ELB) with SSL follow the instruction at #6566 Certificate was attached on ELB. However, I got the issue "upstream connect error or disconnect/reset before ...
user avatar
  • 251
11 votes
2 answers
4k views

How can I add an additional IP / hostname to my Kubernetes certificate?

I've recently followed this guide to set up Kubernetes on my local Raspberry Pi cluster. I can access it fine on my LAN; however I'd like to be able to access it remotely as well. I've already set up ...
user avatar
  • 133
11 votes
1 answer
359 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 ...
user avatar
  • 363
9 votes
2 answers
46k 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:...
user avatar
  • 113
9 votes
1 answer
1k 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 ...
user avatar
9 votes
1 answer
1k 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: ...
user avatar
  • 321
8 votes
1 answer
6k views

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 ...
user avatar
  • 183
8 votes
1 answer
127 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 ...
user avatar
  • 381
8 votes
1 answer
146 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,...
user avatar
  • 321
8 votes
1 answer
479 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 ...
user avatar
8 votes
1 answer
385 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-...
user avatar
  • 203
8 votes
1 answer
19k 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....
user avatar
7 votes
2 answers
13k views

Prometheus alert CPUThrottlingHigh raised but monitoring does not show it

I have installed Prometheus to monitor my installation and it is frequently raising alerts about CPU throttling. The Prometheus alert rules to identify this alert is : alert: CPUThrottlingHigh expr: ...
user avatar
  • 173
7 votes
1 answer
532 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?
user avatar
7 votes
2 answers
10k 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#...
user avatar
  • 201
7 votes
2 answers
3k views

How is it a good practice to version your helm charts for each deployment?

I'm trying to set up a process to release a web app with helm in my company and I can't find a satisfying way. Basically each for each push in a feature branch, I want to: Build a docker image and ...
user avatar
  • 191
7 votes
1 answer
1k 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 ...
user avatar
  • 211
7 votes
1 answer
1k 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 ...
user avatar
  • 12.6k
7 votes
1 answer
586 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. ...
user avatar
  • 363
7 votes
1 answer
3k 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/...
user avatar
  • 121
6 votes
1 answer
3k views

What's the relationship between ContainerD and Docker?

I'm aware that Kubernetes uses containerd internally and that containerd is part of Docker. Does that mean that Kubernetes only uses certain parts of Docker to provide orchestration of containers? ...
user avatar
6 votes
1 answer
4k views

What are the best practices for anti-virus / anti-malware when using containers?

One of the SOC 2 controls is apparently around ensuring antivirus/anti-spam/anti-malware is running on production servers. I've been googling to see if there are any recommendation/best practices for ...
user avatar
  • 163
6 votes
2 answers
87 views

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 ...
user avatar
  • 161
6 votes
1 answer
2k 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: ...
user avatar
6 votes
1 answer
178 views

How would you build docker images in Kubernetes while distributing its layer caching among all pod builders at scale?

We are using Azure DevOps as our CICD platform. We have our own self hosted Linux agents which we integrated into our CICD Azure Kubernetes Cluster . We use these agents to build our Docker images ...
user avatar
  • 119
6 votes
2 answers
404 views

Connect external Jenkins Master to GKE with Kubernetes plugin

I find the documentation at https://github.com/jenkinsci/kubernetes-plugin quite unclear when it comes to step by step configuration of external Jenkins master. What are the exact steps that need to ...
user avatar
6 votes
0 answers
2k views

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: ...
user avatar
5 votes
2 answers
910 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 ...
user avatar
  • 12.6k
5 votes
2 answers
1k 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 ...
user avatar
5 votes
3 answers
766 views

Is docker absolutely necessary to deploy applications with Linode's Kubernetes?

Is learning and using docker required to deploy applications with Linode's Kubernetes Engine? (LKE) As fun as docker sounds, I'd like to avoid having to learn that additional complexity if possible. I ...
user avatar
  • 51
5 votes
1 answer
101 views

Why do I need tools like minikube or microk8s to run k8s locally?

I'm just getting started on k8s and got stuck on running k8s locally (it's running, but I don't understand exactly) Pretty much all the tutorials on running k8s locally use minikube and I'm a little ...
user avatar
  • 153
5 votes
2 answers
528 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? ...
user avatar
5 votes
4 answers
231 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 ...
user avatar
5 votes
2 answers
439 views

What is the way to update images in a configuration git repository when doing gitops?

i'm trying to do gitops I have a Configuration repo containing k8 manifests and different app repos. 1) App repo's CI build docker images and pushes into registry. 2) App repo's CI commits into ...
user avatar
5 votes
3 answers
241 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?
user avatar
5 votes
2 answers
12k 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 ...
user avatar
5 votes
2 answers
327 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 ...
user avatar
  • 257
5 votes
1 answer
146 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?
user avatar
  • 257
5 votes
1 answer
5k views

Why can the certificate not be found by the Ingress Controller, while the certificate has been issued?

kubectl logs nginx-ingress-controller-X -n nginx-ingress W1222 06:52:04.575115 8 controller.go:1058] Error getting SSL certificate "app/app-tls": local SSL certificate app/app-tls was not found....
user avatar
  • 12.6k
5 votes
2 answers
568 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 ...
user avatar
  • 151

1
2 3 4 5
14