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
62
votes
7 answers

How to SSH to docker container in kubernetes cluster?

I am fairly new to the Google Cloud platform and Docker and set-up a cluster of nodes, made a Dockerfile that copies a repo and runs a Clojure REPL on a public port. I can connect to it from my IDE and play around with my code, awesome! That REPL…
61
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
  • 3,179
  • 1
  • 26
  • 40
54
votes
2 answers

Define size for /dev/shm on container engine

I'm running Chrome with xvfb on Debian 8. It works until I open a tab and try to load content. The process dies silently... Fortunately, I have gotten it to run smoothly on my local docker using docker run --shm-size=1G. There is a known bug in…
54
votes
6 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,749
  • 1
  • 21
  • 25
51
votes
4 answers

How to stop gcloud container engine clusters

I use gcloud to provision kubernetes clusters, and use container engine to do so. Aside from the production cluster, I would like to create short-lived clusters, for testing etc'. Instead of recreating clusters, I would like to have a test cluster…
pazams
  • 969
  • 1
  • 8
  • 10
47
votes
1 answer

Set value in dependency of Helm chart

I want to use the postgresql chart as a requirements for my Helm chart. My requirements.yaml file hence looks like this: dependencies: - name: "postgresql" version: "3.10.0" repository: "@stable" In the postgreSQL Helm chart I now want to…
43
votes
3 answers

Issuing certificate as Secret does not exist

Below is the describe output for both my clusterissuer and certificate reource. I am brand new to cert-manager so not 100% sure this is set up properly - we need to use http01 validation however we are not using an nginx controller. Right now we…
NealR
  • 10,189
  • 61
  • 159
  • 299
43
votes
5 answers

Pod in pending state due to Insufficient CPU

On my GCE Kubernetes cluster I can no longer create pods. Warning FailedScheduling pod (www.caveconditions.com-f1be467e31c7b00bc983fbe5efdbb8eb-438ef) failed to fit in any node fit failure on node (gke-prod-cluster-default-pool-b39c7f0c-c0ug):…
Chris
  • 3,581
  • 8
  • 30
  • 51
43
votes
5 answers

What is the cluster IP in Kubernetes?

I have created a cluster of three nodes: one master, two minions. How to check the cluster IP in Kubernetes? Is it the IP of the master node?
42
votes
3 answers

kubernetes configmap set from-file in yaml configuration

how can I describe this command in yaml format? kubectl create configmap somename --from-file=./conf/nginx.conf I'd expect to do something like the following yaml, but it doesn't work apiVersion: v1 kind: ConfigMap metadata: name: somename …
41
votes
6 answers

kubernetes unhealthy ingress backend

I followed the load balancer tutorial: https://cloud.google.com/container-engine/docs/tutorials/http-balancer which is working fine when I use the Nginx image, when I try and use my own application image though the backend switches to unhealthy.…
Will Pink
  • 433
  • 1
  • 4
  • 8
40
votes
4 answers

Static outgoing IP in Kubernetes

I run a k8s cluster in google cloud (GKE) and a MySQL server in aws (RDS). Pods need to connect to RDS which only allows connections from certain IP. How can I configure outgoing traffic to have a static IP?
38
votes
3 answers

Placing Files In A Kubernetes Persistent Volume Store On GKE

I am trying to run a Factorio game server on Kubernetes (hosted on GKE). I have setup a Stateful Set with a Persistent Volume Claim and mounted it in the game server's save directory. I would like to upload a save file from my local computer to…
38
votes
4 answers

403 "Request had insufficient authentication scopes" during gcloud container cluster get-credentials

From a VM in GCE, I did the following gcloud auth activate-service-account --key-file # "blah" is a service account key file (JSON) I generated from the web interface gcloud config set project gcloud config set compute/zone…
Shanqing Cai
  • 3,756
  • 3
  • 23
  • 36
38
votes
4 answers

How do I run private docker images on Google Container Engine

How do I run a docker image that I built locally on Google Container Engine?