Google Kubernetes Engine is a cluster manager and orchestrator for running Docker containers. It schedules your containers into the cluster and manages them automatically based on requirements you define (such as CPU and memory). It's built on the open source Kubernetes system, giving you the flexibility to take advantage of on-premises, hybrid, or public cloud infrastructure. It was formerly called Google Container Engine.
Questions tagged [google-kubernetes-engine]
535 questions
33
votes
2 answers
Stable public IP or IP range for outbound connections in GKE
I use Google Kubernetes Engine to run on demand pods. Each pod is publicly exposed to the internet using a nodeport service.
I am looking for a way in GKE to get a single IP or an IP range for outbound connections, to give them to third party API's…
Parag
- 650
- 1
- 7
- 12
25
votes
4 answers
gcloud docker -- push results in login attempt failed with 404
I am trying to push a docker image to Google's container registry but keep getting a error about Docker login having failed. I run
gcloud docker -- push gcr.io//test-image
I get back
ERROR: Docker CLI operation failed:
Error…
ajmurmann
- 439
- 1
- 7
- 8
20
votes
4 answers
Using environment variables in Kubernetes deployment spec
I currently use a Kubernetes spec Deployment.yaml for deploying a service. The spec includes a verbatim reference to a specific IP address (marked as below):
spec:
type: LoadBalancer
loadBalancerIP:
I am…
Drux
- 646
- 1
- 8
- 23
18
votes
4 answers
kubernetes dns resolver in nginx
I was developing locally in docker-compose, and had an nginx container doing a simple proxy_pass like so:
location /app/ {
proxy_pass http://webapp:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
…
sharif9876
- 281
- 1
- 2
- 4
18
votes
3 answers
How to choose the external IP address of a Kubernetes load balancer in Google Kubernetes Engine
I'm deploying a web app using Google Kubernetes Engine and I want to make it accessible via a load balancer on an existing static IP address that I control as part of the same project in Google Cloud Platform, because the domain name I want to use…
Ben
- 283
- 1
- 2
- 7
14
votes
1 answer
Enable VPC-native (alias IP) on an existing GKE cluster
Is there a way to enable Alias IP on existing GKE cluster (with disabled Alias IP)?
(Besides using https://github.com/bowei/k8s-custom-iptables to create NATs on each node)
vtemian
- 181
- 1
- 7
14
votes
2 answers
Kubernetes - can I avoid using the GCE Load Balancer to reduce cost?
I'm deploying a Kubernetes cluster on GCE using Gitlab-CI. I'd like to keep the cost to a minimum - here's my current setup:
Nodes run on 3 f1-micro instances
A system pod running Traefik configured with ServiceType LoadBalancer
Wildcard dns…
Mitkins
- 255
- 2
- 9
12
votes
1 answer
google cloud http(s) load balancer returning 502 despite healthy backend service
I've got a GCE http(s) load balancer configured to direct traffic to 2 backends:
- the default backend
- a second backend with a separate host/path rule (:/*)
Both backends exist on the same instance group - a container cluster running two…
hawkett
- 241
- 2
- 5
11
votes
4 answers
Error creating GCE load balancer: requested address ip is neither static nor assigned to LB
I have a situation where Kubernetes apparently can no longer assign an external IP address to a service upon kubectl create -f Deployment.yaml. kubectl describe service reports the following error:
CreatingLoadBalancerFailed
Error…
Drux
- 646
- 1
- 8
- 23
10
votes
1 answer
Can I mount Google cloud storage bucket to a pod as a persistent disk. If yes how?
I have a gke cluster with nodes in 3 different Zones but same region. I want to use persistent disks to my pods. But the pods are created randomly in all the 3 zones.How can I use a gcePD (common for all the nodes). or Can I add the storage bucket…
Ram
- 261
- 1
- 2
- 7
10
votes
2 answers
Where are the Google Health check logs
I am running a GCE instance and on it I have a Kubernetes cluster running. An HTTP Load Balancer is also configured to probe the health of the a Kubernetes service running on this instance. But I constantly get this error:
Error: Server Error
The…
Gabriel Petrovay
- 248
- 3
- 11
9
votes
2 answers
How to make Google Cloud Load Balancer respect the received X-Forwarded-Proto?
My app structure uses GKE and CloudFlare. It looks like this:
CloudFlare -> GKE -> Ingress -> My app running nginx
I'm using the flexible SSL in CloudFlare, so only the connection between the user and CloudFlare uses HTTPS, all the remaining uses…
Vítor Baptista
- 191
- 1
- 4
9
votes
2 answers
Can host aliases be assigned to deployments in Kubernetes? If so, how?
This article describes how to assign host aliases to pods in kubernetes, is there anyway to do it for a deployment and not for a pod as such?
Any other suggestions to add host entries in kubernetes to provide a first line of host name resolution…
Ulukai
- 829
- 2
- 10
- 28
9
votes
1 answer
NGINX vs. GCE Kubernetes ingress classes
When setting up a Kubernetes ingress on Google Container Engine, you can choose the ingress class (gce or nginx). I realize that the GCE class provisions a load balancer on Google's Cloud Platform, which costs about $20/mo each.
After some research,…
Wes Cossick
- 333
- 2
- 12
9
votes
1 answer
Detecting Kubernetes OOMKilled Events in GKE Logs
I'd like to set up instrumentation for OOMKilled events, which look like this when examining a pod:
Name: pnovotnak-manhole-123456789-82l2h
Namespace: test
Node: test-cluster-cja8smaK-oQSR/10.x.x.x
Start Time: Fri, 03 Feb 2017 14:34:57…
pnovotnak
- 260
- 4
- 11