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.

6757 questions
285
votes
20 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
  • 9,899
  • 7
  • 34
  • 41
283
votes
9 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
  • 65,625
  • 67
  • 195
  • 317
278
votes
14 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
  • 2,891
  • 2
  • 11
  • 6
263
votes
15 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
  • 6,701
  • 6
  • 48
  • 72
249
votes
23 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…
Industrial
  • 2,861
  • 2
  • 15
  • 10
234
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
  • 6,386
  • 6
  • 22
  • 37
232
votes
14 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
  • 4,325
  • 4
  • 20
  • 30
128
votes
7 answers

Disabling cronjob in Kubernetes

I have scheduled an application to run as a CronJob in Kubernetes. When there is a code change, I'm also changing the image of the CronJob. I'm looking for an option where I can disable the currently running CronJob and deploy a new CronJob with the…
103
votes
16 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
  • 5,159
  • 4
  • 25
  • 33
86
votes
12 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:…
86
votes
3 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…
84
votes
7 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,806
  • 5
  • 18
  • 36
70
votes
7 answers

What to do with Released persistent volume?

TL;DR. I'm lost as to how to access the data after deleting a PVC, as well as why PV wouldn't go away after deleting a PVC. Steps I'm taking: created a disk in GCE manually: gcloud compute disks create --size 5Gi disk-for-rabbitmq --zone…
65
votes
10 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…
64
votes
11 answers

Can a Persistent Volume be resized?

I'm running a MySQL deployment on Kubernetes however seems like my allocated space was not enough, initially I added a persistent volume of 50GB and now I'd like to expand that to 100GB. I already saw the a persistent volume claim is immutable after…
perrohunter
  • 3,454
  • 8
  • 39
  • 55
1
2 3
99 100