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
3
votes
1answer
403 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
533 views

How to write Apache airflow dag for file watcher

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 ...
7
votes
1answer
90 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
302 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 ...
8
votes
2answers
9k 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
103 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 ...
5
votes
2answers
15k 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:...
11
votes
3answers
527 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
2k 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
101 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
196 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
37 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
310 views

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

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
109 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
648 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
400 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. ...
1
vote
0answers
36 views

How To Access Docker Client From Cloud Cluster

I am trying to create a Kubernetes Deployment out of a third party library related to my other question. This library requires pre-pulled docker images and will temporarily launch the containers as ...
13
votes
2answers
6k 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 ...
10
votes
1answer
278 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
783 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
3k 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
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: ...
0
votes
1answer
70 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
631 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
503 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
91 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
494 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
59 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 ...
2
votes
2answers
166 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
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.
5
votes
1answer
435 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
602 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
205 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 ...
4
votes
1answer
104 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
1answer
8k 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
578 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
415 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
854 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: ...
1
vote
0answers
255 views

How to get eth1 ENI on AWS Instance to Respond to NodePort Requests?

Kubernetes 1.5 cluster running in AWS. Node1 (worker) has an additional network interface assigned to it with a static IP, so if you run "ip addr show" on the node you see eth0, eth1, and the gang of ...
7
votes
1answer
88 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
177 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/...
12
votes
2answers
753 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
416 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 ...
2
votes
0answers
731 views

How exactly does Kubernetes work? [closed]

I understand how containers work and the concept of containerizing. However, I am having trouble understanding how Container Cluster Managers work. I was reading through this excellent blog post, ...