Questions tagged [google-kubernetes-engine]

Google Kubernetes Engine (formerly known as Container Engine) takes care of provisioning and maintaining the underlying virtual machine cluster, scaling your application, and operational logistics like logging, monitoring, and health management.

Google Kubernetes Engine takes care of provisioning and maintaining the underlying virtual machine cluster, scaling your application, and operational logistics like logging, monitoring, and health management.

4939 questions
166
votes
16 answers

How do I get logs from all pods of a Kubernetes replication controller?

Running kubectl logs shows me the stderr/stdout of one Kubernetes container. How can I get the aggregated stderr/stdout of a set of pods, preferably those created by a certain replication controller?
Torsten Bronger
  • 6,770
  • 7
  • 28
  • 39
161
votes
13 answers

How can I keep a container running on Kubernetes?

I'm now trying to run a simple container with shell (/bin/bash) on a Kubernetes cluster. I thought that there was a way to keep a container running on a Docker container by using pseudo-tty and detach option (-td option on docker run command). For…
springwell
  • 1,721
  • 2
  • 9
  • 6
157
votes
7 answers

How can I trigger a Kubernetes Scheduled Job manually?

I've created a Kubernetes Scheduled Job, which runs twice a day according to its schedule. However, I would like to trigger it manually for testing purposes. How can I do this?
aknuds1
  • 57,609
  • 57
  • 177
  • 299
154
votes
14 answers

How to switch kubectl clusters between gcloud and minikube

I have Kubernetes working well in two different environments, namely in my local environment (MacBook running minikube) and as well as on Google's Container Engine (GCE, Kubernetes on Google Cloud). I use the MacBook/local environment to develop…
Eric Broda
  • 4,621
  • 6
  • 33
  • 53
141
votes
16 answers

Get YAML for deployed Kubernetes services?

I am trying to deploy my app to Kubernetes running in Google Container Engine. The app can be found at: https://github.com/Industrial/docker-znc. The Dockerfile is built into an image on Google Container Registry. I have deployed the app in…
126
votes
9 answers

kubectl logs - continuously

kubectl logs gets latest logs from my deployment - I am working on a bug and interested to know the logs at runtime - How can I get continuous stream of logs ? edit: corrected question at the end.
npr
  • 3,075
  • 4
  • 15
  • 28
125
votes
4 answers

Kubernetes: How do I delete clusters and contexts from kubectl config?

kubectl config view shows contexts and clusters corresponding to clusters that I have deleted. How can I remove those entries? The command kubectl config unset clusters appears to delete all clusters. Is there a way to selectively delete cluster…
Jeremy Lewi
  • 4,886
  • 4
  • 19
  • 36
74
votes
6 answers

Replication Controller VS Deployment in Kubernetes

I wanted to know what is the difference between a Replication Controller and a Deployment within Kubernetes (1.2). Going through the getting started document (http://kubernetes.io/docs/hellonode/) I have created a deployment - but it doesn't show up…
byteSlayer
  • 1,656
  • 5
  • 17
  • 36
64
votes
4 answers

Disabling cronjob in Kubernetes

I have scheduled an application to run as Cronjob in Kubernetes. When there is code change, I'm changing image in CronJob. I'm looking for an option where I can disable currently running CronJob and deploy new CronJob with newly created Image. How…
Jasmitha
  • 679
  • 1
  • 7
  • 10
64
votes
11 answers

How to get Kubernetes cluster name from K8s API

As stated in the title, is it possible to find out a K8s cluster name from the API? I looked around the API and could not find it.
Alex
  • 4,514
  • 3
  • 22
  • 32
61
votes
10 answers

`docker-credential-gcloud` not in system PATH

After the latest updates to gcloud and docker I'm unable to access images on my google container repository. Locally when I run: gcloud auth configure-docker as per the instructions after updating gcloud, I get the following message: WARNING:…
60
votes
2 answers

How to configure a Kubernetes Multi-Pod Deployment

I would like to deploy an application cluster by managing my deployment via k8s Deployment object. The documentation has me extremely confused. My basic layout has the following components that scale independently: API server UI server Redis…
60
votes
4 answers

Can Kubernetes be used like Docker Compose?

I have been digging through the Kubernetes documentation for hours. I understand the core design, and the notion of services, controllers, pods, etc. What I don't understand, however, is the process in which I can declaratively configure the…
Don Scott
  • 2,608
  • 1
  • 22
  • 39
54
votes
9 answers

How to force SSL for Kubernetes Ingress on GKE

Is there a way to force an SSL upgrade for incoming connections on the ingress load-balancer? Or if that is not possible with, can I disable port :80? I haven't found a good documentation pages that outlines such an option in the YAML file. Thanks a…
48
votes
5 answers

How to mimic '--volumes-from' in Kubernetes

I'm looking for a pattern that allows to share volumes between two containers running on the same pod in Kubernetes. My use case is: I have a Ruby on Rails application running inside a docker container. The docker image contains static assets in…
cthulhu
  • 3,602
  • 1
  • 19
  • 25
1
2 3
99 100