Questions tagged [google-kubernetes-engine]

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.

553 questions
8
votes
5 answers

Cannot connect to Cloud SQL Postgres from GKE via Private IP

I am having trouble accessing a Cloud SQL instance running Postgres from a GKE cluster using the database's private IP. All the documentation I've found suggests using a VPC-enabled cluster to accomplish this, but I am still having trouble reaching…
8
votes
2 answers

Pod keeps restarting and is in a CrashLoopBackOff state

One of our pods won't start and is constantly restarting and is in a CrashLoopBackOff state: NAME READY STATUS RESTARTS …
Dexter J.
  • 93
  • 1
  • 1
  • 3
7
votes
1 answer

Google Kubernetes Engine node pool does not autoscale from 0 nodes

I am trying to run a machine learning job on GKE, and need to use a GPU. I created a node pool with Tesla K80, as described in this walkthrough. I set the minimum node size to 0, and hoped that the autoscaler would automatically determine how many…
7
votes
2 answers

Why a pod can't connect to another network? (In the new version of Kubernetes)

I have two projects in GCP: With Kubernetes Nodes v1.8.8-gke.0. and a database outside of Kubernetes but in the default network. All pods can connect to this server and all ports With Kubernetes Nodes v1.9.7-gke.3 and a database outside of…
6
votes
2 answers

Pods stuck in 'Pending', no events being logged

I don't know where to look for hints. We have installed gitlab-runners using a helm chart in our development cluster. Most of the time this works, but in the last week or so we have experienced pods being stuck in Pending state without any further…
6
votes
2 answers

Kubernetes Ingress: How can I expose two ports on one path?

I have a GCE Ingress configured and working with SSL on port 443. I'm trying to get port 28080 pointing to my standalone actionable server. I currently have this for my Ingress yaml: # web-ingress.yaml apiVersion: extensions/v1beta1 kind:…
Archonic
  • 364
  • 3
  • 5
  • 13
6
votes
4 answers

pushing an image with two tags to gcr.io results in two different images

I'm doing the following: docker build -t gcr.io/projid/imgname:333 -t gcr.io/projid/imgname:latest . docker login -u _json_key -p "$(cat /secrets/service-account.json)" https://gcr.io docker push gcr.io/projid/imgname:333 docker push…
6
votes
2 answers

Intermittent DNS failures in Google Container Engine

[Question rewritten with details of findings.] I am running a Google Container Engine cluster with about 100 containers which perform about 100,000 API calls a day. Some of the pods started getting 50% failure in DNS resolution. I dug into this and…
6
votes
1 answer

Can't delete dangling k8s load balancer due to http target proxy that doesn't exist

I'm trying to delete the forwarding rule, target proxy, url map and backend services that belong to an extinct k8s ingress. I successfully delete the forwarding rule and target proxy but then when I go to delete the url-map I get this: gcloud…
5
votes
1 answer

ERR_SSL_PROTOCOL_ERROR on otherwise working kubernetes ingress/service

I have a basic nginx deployment and an existing certificate issued by let's encrypt via cert-manager. I thought everything was in place to start using the certificate but I'm unable to connect on https. Connecting to the LoadBalancer IP and the…
Archonic
  • 364
  • 3
  • 5
  • 13
5
votes
3 answers

How to configure Redis Cluster inside a Kubernetes cluster to be accessible by external applications

I'm having trouble exposing my Redis Cluster on Kubernetes to external applications. Using a Kubernetes load balancer service, I'm able to assign an external IP to Redis which provides initial connectivity. The trouble is, whenever the client…
shrumm
  • 116
  • 1
  • 9
5
votes
2 answers

Recommended disk size for GKE nodes?

When I create a new node pool in GKE, the size of the disks default to 100GB. However, when I SSH into a node that's been up for a while, after running df -h there's only 32GB in use. (I don't actually know where this 32GB comes from) Do the nodes…
Nick
  • 173
  • 1
  • 5
5
votes
3 answers

Google Cloud Run - How to mount FileStore / NFS?

Our application requires the presence of data on two filestores. On our current Kubernetes configuration, we use a persistent volume like so: apiVersion: v1 kind: PersistentVolume metadata: name: fileserver-input spec: capacity: storage:…
5
votes
1 answer

GCP: Run kubectl exec on private cluster over proxy

I have a private kubernetes cluster with private ip. In order to access it i have set up a bastion host with squid proxy. It looks like this: My host -> bastion -> private cloud Regular kubectl commands work throw proxy as expected: $…
Erez Ben Harush
  • 177
  • 1
  • 7
5
votes
1 answer

Issue Connecting to Cloud SQL Postgres using Private IP from GKE

Steps I have followed: 1. Create VPC network gcloud compute networks create stg-vpc \ --subnet-mode custom 2. Create IP range for VPC Peering for this network gcloud beta compute addresses create google-managed-services-stg-vpc \ --global \ …
1
2
3
36 37