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
0
votes
1answer
1k views

How to login to k8s proxy nowadays?

Back in the day when I ran kubectl proxy, I could login to http://localhost:8001 immediately, but know a login prompt is shown. When skipped is clicked the following message is shown: configmaps is ...
1
vote
1answer
2k views

How to deploy applications to k8s using bitbucket pipelines?

The aim is to implement Continuous Deployment (CD) to a k8s cluster. It works to deploy a Nginx image to the k8s. https://github.com/kubernetes/kubernetes/blob/master/examples/simple-nginx.md ...
7
votes
1answer
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 ...
7
votes
2answers
9k 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#...
4
votes
1answer
100 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 ...
1
vote
2answers
3k views

How to copy a file locally to remote pod before it starts?

# Copy /tmp/foo local file to /tmp/bar in a remote pod in namespace <some-namespace> kubectl cp /tmp/foo <some-namespace>/<some-pod>:/tmp/bar works, but then a pod should be ...
1
vote
2answers
260 views

Switching between blue / green services in Kubernetes using UI page

The project is going with a new technology stack and I need to do a new CI / CD implementation. I started to play with Kubernetes and how to do blue / green deployment via command line. I managed to ...
4
votes
2answers
4k 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 ...
4
votes
1answer
462 views

Why Run Concourse CI in Kubernetes

I've just started exploring Kubernetes and Concourse CI. Learning still, so I'm still understanding all the concepts. Forgive me if this question sounds naive. Why would we deploy Concourse CI in ...
1
vote
0answers
1k views

How to write Apache airflow dag for file watcher [closed]

Problem statement- New files arrive on NFS and looking for a solution (using Apache airflow) to perform continuous NFS scan (for new file arrival) and unzip & copy file to another repository (on ...
8
votes
1answer
111 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 ...
4
votes
1answer
428 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 ...
14
votes
3answers
22k 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 ...
2
votes
1answer
113 views

Meaning of metrics in Google Cloud Console

I have a 3-node kubernetes cluster with 3 n1-standard-1 :1 vCPU, 3,75 Go RAM, in a gcloud projet. Recently, I ran a test that created quite a few jobs (about 150). Half the jobs were running an hello ...
9
votes
2answers
39k 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:...
13
votes
2answers
727 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? ...
2
votes
1answer
7k views

Docker and Kubernetes integrations compatibility matrix?

Two example integrations of Docker and Kubernetes are OpenShift and Rancher Labs AFAIK. Sadly but in fact we have not completely escaped us from the dependency hell. Question: is there an ...
1
vote
1answer
942 views

How to identify the physical IP of where Kubernetes API server runs

Question In a Kubernetes cluster, there is a Docker network IP which looks to be the API server. However, not sure how to identify the physical IP and location of the box in which it is working. If ...
2
votes
2answers
223 views

In kubernetes, using an nginx ingress controller what is recommended way of adding back end services?

I'm running on a simple KVM host and have poor man's load balancing with round robin DNS to and nginx ingress based on this chart which is documented here So to direct traffic to backend pods it ...
3
votes
1answer
52 views

Waiting for Solr to load

By current state of the art, we cannot enforce an ordered start sequence of service containers directly, neither in Docker Swarm nor in Kubernetes. (Maybe there is a standard solution for that via a ...
3
votes
0answers
398 views

Kubernetes on Azure, how do I reuse an existing disk in a new PersistentVolume? [closed]

I currently have a managed Azure disk created from a Azure disk snapshot of a Kubernetes Persistent Volume that no longer exists. I would like to know how to reuse the restored disk in a new '...
2
votes
1answer
133 views

String to specify to KUBE_SERVICE_ADDRESSES (API Server configuration)

What are the strings to set to KUBE_SERVICE_ADDRESSES and their meanings? Which documentation or GitHub repo to look into to understand? Background: I have seen a few strings but not sure what these ...
4
votes
1answer
931 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 ...
7
votes
1answer
531 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. ...
14
votes
2answers
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 ...
11
votes
1answer
345 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 ...
2
votes
3answers
1k views

Kubernetes External Access Of A Single Pod

I am running a kubernetes cluster in AWS. I have 2 nodes. I have one pod that should be accessible externally. The problem is, that pod can be on either node. The solution according to the docs: ...
1
vote
1answer
1k views

Internet connection inside Docker container in Kubernetes

I have a Kubernetes pod based on a Jenkins/slave container to which I mount a Docker socket and a Docker binary file with necessary kernel modules in privileged mode. Inside that pod I build a ...
1
vote
1answer
5k views

Use K8s Deployment Hostname In YAML Config

I am trying to convert some K8s examples from ReplicationControllers to Deployments. These examples are for a Selenium grid located: https://github.com/kubernetes/examples/tree/master/staging/selenium ...
6
votes
1answer
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: ...
0
votes
1answer
76 views

Creativity use case scenario? [closed]

i am a devops learner, just finished graduation actively looking for jobs in the field of DevOps. I am learning many tools like GIT, Jenkins, Chef, Docker , Nagious, ELK, AWS, etc. Can anyone link ...
8
votes
1answer
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 ...
2
votes
1answer
694 views

Kubernetes flannel pod getting the wrong network

Flannel running in a pod is getting the wrong subnet and networking is just not happy, the symptom is flannel is being assigned /24's from the 10.105.0.0/16. it should be assigning /26's from 10.105.5....
0
votes
1answer
123 views

Kubernetes user mode in production

Docker daemon has to run in root mode which brings up security discussions. How is this with Kubernetes daemon - can it run not as root? Note: both of these products allow you to reduce the scope ...
7
votes
1answer
528 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?
0
votes
1answer
67 views

Kubernetes image concept compared to Docker?

Reading the K8S images article, I see there support for images from Azure, Google Cloud Registry and Amazon EC. But, why is there no support for Docker Hub? Is there any sane way to process/deploy ...
1
vote
1answer
64 views

How to start the latest version of k8s using minikube?

When a k8s cluster is created using minikube, the output indicates that an outdated version of k8s is deployed: user@host ~ $ minikube start Starting local Kubernetes v1.6.4 cluster... Starting VM...
2
votes
2answers
195 views

Docker-compose + Kubernetes: backports.ssl_match_hostname.CertificateError

I have a complete docker stack (source) which uses docker-compose. It works fine by its own, but now I'm trying to deploy it in Kubernetes' Minikube and when after eval $(minikube docker-env) I try ...
3
votes
2answers
94 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.
5
votes
1answer
876 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 ...
2
votes
1answer
655 views

Why is the K8s UI not available when rancher is used?

K8s has been created using rancher, but when one would like to access the UI it shows: Service unavailable Methods Method 1 rancher was deployed locally using vagrant k8s was deployed click the ui ...
5
votes
2answers
310 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
135 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?
6
votes
1answer
15k 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
2answers
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 ...
8
votes
1answer
467 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 ...
9
votes
1answer
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: ...
8
votes
1answer
130 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,...
2
votes
1answer
260 views

openshift fails to deploy jenkins

When I try to deploy jenkins-ephemeral on openshift 1.5, it fails with the following error message error: couldn't get deployment jenkins-3: Get https://172.30.0.1:443/api/v1/namespaces/projectname/...
13
votes
2answers
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 ...

1
8 9 10
11
12