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
1
vote
2answers
90 views

Monitoring tool to microservices on Kubernetes

I'm deploying an instance with kubernetes on Azure public cloud, and I need a tool to monitor the microservices and pods inside this instance, the question is, what tool are you using to do that? I've ...
1
vote
0answers
348 views

Gateway TimeoutError from server while accessing pods logs [closed]

I'm trying to execute kubectl logs on one of my pods. When pod is created on node different than master - it fails with following message: Error from server: Get https://kube-worker-3:10250/...
4
votes
0answers
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: ...
2
votes
1answer
56 views

How do I get Openshift to let Tomcat retain it's hosted site's changes

I have a pod in Redhat Openshift running Tomcat and inside Tomcat I have Ozone Widget Framework, my site hosted in Tomcat. I have executed the oc command to use my existing configuration so that my ...
2
votes
2answers
199 views

What are reasons to prefer an ingress over using `expose` in k8s?

If one uses expose in k8s then it is possible to assign an IP to an app so it could be accessed on the www. It is also possible to configure an ingress. This is basically a rproxy. What are reasons ...
1
vote
1answer
100 views

Is it required to move a domain to Google DNS in order to use certbot in kubernetes on Google Cloud platform?

Follow-up to What are trusted providers that offer wildcard certificates and associated costs to be used in an Orchestration Platform like Kubernetes? With https://github.com/jetstack/cert-manager it ...
2
votes
1answer
146 views

Expose kubernetes deployment on master's IP

I have simple deployment which has 3 replicas. I want this deployment to be load balanced between this 3 replicas, but available under IP of my master and on some specified port. This cluster was ...
1
vote
2answers
203 views

Should I build my own pipeline or use GitLab for Kubernetes?

My company is moving from an architecture of "many projects on a single webserver" to a Kubernetes cluster with multiple different hosted web applications in a single cluster. In order to make ...
2
votes
3answers
97 views

What are trusted providers that offer wildcard certificates and associated costs to be used in an Orchestration Platform like Kubernetes?

Currently, certbot and nginx are used to create a trusted webpage. Recently, an attempt was made to move the images to a kubernetes cluster on google cloud platform. A guide was found to configure an ...
1
vote
1answer
1k views

How to create a docker registry secret without passing the password on the command line?

According to this document https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ one could create a docker registry by running: kubectl create secret docker-registry ...
0
votes
1answer
41 views

How to dimmension VMWare VM linux servers to run kubernetes container clusters?

I'm designing a web apps and web services hosting platform using kubernetes clusters of VMs running docker containers (web services, web apps, databases). This application hosting platform will be ...
5
votes
4answers
190 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 ...
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
96 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
256 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
459 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 ...
7
votes
1answer
107 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
423 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 ...
11
votes
2answers
20k 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
110 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
37k 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
715 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
789 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
49 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
393 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
125 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
903 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
522 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
343 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
685 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
119 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
526 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
193 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 ...

1
6 7 8
9
10