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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

Why do pods on a node that was recreated after being preempted get stuck in ContainerCreating?

I had a pod created by a deployment running on a preemptible node in a Google Kubernetes Engine cluster. The node was preempted and recreated. There were several FailedCreatePodSandBox events ...
Jonathan Rogers's user avatar
1 vote
1 answer
818 views

Google Kubernetes Engine cluster creation using SharedVPC

We have been working for some months in creating an internal network across all our projects in Google Cloud by using SharedVPC and we have encountered no problems whatsoever while setting up compute ...
Daniel Sanchez's user avatar
1 vote
0 answers
554 views

Slow traceroute from GKE pod to GCE VPS

I've been troubleshooting issues with high latency on my GKE pods, and a traceroute yields results like the following when poking the database server for that cluster (which is a GCE VPS, but not part ...
Sebastian Lenartowicz's user avatar
2 votes
1 answer
12k views

Kubernetes: 502 Bad Gateway for some assets - with Nginx Ingress

I've configured a Kubernetes cluster as follows: Webapp pod (with a Vue.js and an API, both within each container) Nginx ingress config (with default-http-backend) Database pod (which doesn't seem to ...
jefersonhuan's user avatar
1 vote
3 answers
1k views

Is there a fast way to query for running pods from inside a Kubernetes node?

One can use kubectl describe pods to obtain a list of pods and then post-process to determine the nodes that these pods are running on. However, this command takes over 1 second to run. If I am sshed ...
merlin2011's user avatar
0 votes
1 answer
2k views

Is it possible to get the cgroup path for a Docker container managed by Kubernetes?

When we use kubectl describe pods <pod_name>, a great deal of information is output, including the node that the server is running on, and miscellaneous information about the pod, including the ...
merlin2011's user avatar
2 votes
1 answer
1k views

Monitoring reports incorrect CPU usage on GCP

I currently administer a website hosted on Google Cloud Platform using Kubernetes Engine. Yesterday I noticed the CPU% feed on the GKE node drop dramatically to just north of 0. After investigating it ...
Ryan Taussig's user avatar
6 votes
1 answer
4k views

Does order of network policies matter in kubernetes?

I have a cluster on Google Kubernetes Engine, It has Network Policies enabled using Calico. Until now I have written 12 Network Policies as a form of YAML files. One thing I can't seem to figure out ...
Sam's user avatar
  • 239
1 vote
2 answers
86 views

ingress google compute cloud ip

I'm trying to setup Ingress to serve from a static IP that I have created with gcloud. However it seems that Ingress does not take that configured one but picks a random new one. The name of that IP ...
Matthias Huttar's user avatar
0 votes
1 answer
275 views

How to run a docker image on kubernetes that accepts command line arguments?

My question is similar to this one. I have a docker image, that contains a python file that accepts arguments from command line using sys.stdin(). I can run the image using the following command ...
sid0972's user avatar
1 vote
1 answer
628 views

Stackdriver Logging doesn't recognize time field in JSON log

I'm using Google Kubernetes Engine (GKE) in conjunction with Stackdriver Logging. The Stackdriver's documentation says there are some special fields used by Logging agent to set fields in the ...
Akihiro HARAI's user avatar
0 votes
1 answer
587 views

GKE nodes fail to upgrade

I hope this is the right place to ask, I've followed all the support links from the GCP console which have led me here! In the past I would frequently keep my GKE k8s master and nodes up to date ...
Paul's user avatar
  • 71
2 votes
1 answer
5k views

How to accept HTTPS and Websockets on a new Google Kubernetes Engine deployment?

I set up a simple 1-node GKE deployment with the default (beta) ingress, created via the GCP console. I would like to set up a Google-managed SSL certificate and HTTPS proxy to the a single GKE node &...
Matthew's user avatar
  • 21
0 votes
1 answer
238 views

How to automate stackdriver monitoring? Why stackdriver apis are used for?

How can I create new stack driver chart for any VM or cluster or pods created in Stackdriver automatically? Is there any way to achieve stackdriver charts as soon as any resource mentioned above is ...
Subit Das's user avatar
  • 101
4 votes
1 answer
1k views

Achieving stickiness on kubernetes cluster with ingress-gce

I'm trying to achieve stickiness on kubernetes cluster but I am redirected to a different pod every time I access the load balancer. I have session affinity set to 'ClientIP' and also tried with '...
Daniel Barkan's user avatar
0 votes
2 answers
5k views

How to make GKE Services visible to another GKE cluster running in a different VPC

I am struggling to make Services become visible though peered VPC. I have two GKE clusters (cluster-A and cluster-B) each of then in a different VPC. I've created a VPC network peering connecting ...
Diego Marangoni's user avatar
0 votes
2 answers
930 views

Google Compute Instance not reachable from Kubernetes pod

I have been trying to reach my Google Compute instance on Compute Engine from a pod in a Kubernetes cluster. Using curl http://{INTERNAL_IP}:{PORT}/ I get: curl: (7) Failed to connect to 10.0.0.7 ...
Geoff Paul Bremner's user avatar
2 votes
1 answer
2k views

Google cloud platform: k8s master cannot ssh to nodes

I have a very strange issue on google cloud platform with one of my K8S clusters. Two days ago, everything worked like a charm. But yesterday every helm commands used to deploy on this cluster ...
Matthieu P.'s user avatar
0 votes
1 answer
4k views

How do I update the loadbalancer IP?

I had cluster A with a static IP on a load balancer, but needed to move a deployment to service B whilst maintaining the same static IP address. I did the following: Removed the loadbalancer from ...
ProgrammingLlama's user avatar
1 vote
2 answers
431 views

How to make an internal load balancer in a google cloud kubernetes instance be accessible from another kubernetes instance in different regions?

I am trying to expose a service inside of a Kubernetes cluster in one Google Cloud Region (us-east) and have it accessible to another Kubernetes cluster in a different region (us-central). I would ...
Erik L's user avatar
  • 111
0 votes
1 answer
185 views

Forward from VPN to non-VPN network

I want to connect an existing Kubernetes cluster to remote VPN that uses only a specific subnet IP range. I could create a custom-mode VPC network within my project that only has the appropriate ...
Sagar Limaye's user avatar
0 votes
1 answer
595 views

Expose GKE k8s external loadbalancer port 22 without exposing cluster

We have a pod which acts as an SFTP server and needs to be exposed on port 22. It must be port 22 to give a seamless transition from our old infrastructure. This pod must be exposed externally, ...
G Newbury's user avatar
1 vote
1 answer
322 views

Google Cloud Kubernetes pod / job history

I'm looking for a way to see the events that happened in my GCK. Is there a page on Google cloud to see all the pod / job launched today with theirs names and ids ?
should_be_working's user avatar
0 votes
1 answer
76 views

How to deploy workload to GCP Kubernetes Programatically?

I have achieved vast amount of automation in terms of creating projects, creating kubernetes engine and other IaaS elements, by using GCP APIs from Python GCP Client. But I am not very positive on ...
Ace's user avatar
  • 125
2 votes
1 answer
684 views

Creating a NAT gateway with Terraform fails with an error

I'm running a private GKE cluster and want to add a NAT Gateway so I can create firewall rules from requests coming from the cluster (by default, the public IP's for all nodes are ephemeral, thus hard ...
ButterDog's user avatar
  • 121
0 votes
1 answer
272 views

Pods unable to talk to each other after upgrade

I have a GKE cluster running on 1.11.2-gke.15 and my pods are unable to talk to each other. It seems DNS resolution is working from inside the containers # nslookup myapp.testns.svc.cluster.local ...
ByteFlinger's user avatar
1 vote
1 answer
2k views

GKE lost node tag and static ip after auto-upgrade

I have 4 nodes in 2 node pools on GKE. One of them has static ip(to access aws service though whitelist), so I tagged this node by hand using kubectl label. I found when enabling auto-upgrade, after ...
chux0519's user avatar
0 votes
1 answer
5k views

Google Cloud GCP Load Balancer standard tier pricing

I want to reduce my k8s GCP load balancing costs for CI/CD purposes, so looking for an explanation of pricing for a Load Balancer in the standard tier. I have read through https://cloud.google.com/...
James's user avatar
  • 101
0 votes
1 answer
219 views

Disable gcloud notification

Is there any way to disable this notification: * - There is an upgrade available for your cluster(s). To upgrade nodes to the latest available version, run $ gcloud container clusters upgrade NAME ...
xwing3's user avatar
  • 3
5 votes
1 answer
12k views

IP space is exhausted

I have an issue about GKE/GCE. I'm using GKE under shared VPC(alias ip) and I have 4 machines of 2 node pools. When I try to add more node pools(because I want to have more type of machines), it ...
chux0519's user avatar
0 votes
0 answers
105 views

Loadbalancer targetPort not forwarding to daemonset hostPort if port not same as hostPort

I have the following setup: A loadbalancer points to an ingress controller as daemonset, running in a gcp-kubernetes-cluster, as seen in the example below: apiVersion: v1 kind: Service metadata: ...
Thomas Böhm's user avatar
0 votes
1 answer
446 views

Connecting k8s services in GKE cross-region clusters

We are using GKE with Cloud VPN and have the following architecture: GKE example In the VPC there are two k8s clusters in different regions and one Cloud VPN. We’re trying to use internal services (...
Martin Oppegaard's user avatar
2 votes
2 answers
3k views

Stackdriver missing GKE Logs

I brought up a new Vault cluster using Terraform (https://github.com/sethvargo/vault-on-gke) and everything is working fine with Vault. However I can't seem to see any Container, Node or Pod logs in ...
Max DiOrio's user avatar
4 votes
2 answers
875 views

How do I obtain kernel headers on GKE ContainerOS image?

I need the kernel headers but there is no /lib/modules/[kernel version]/build or /usr/src/[kernel version]. I'm assuming they ripped those out to trim down the image. My use case: I am using bpftrace ...
Jason Keene's user avatar
5 votes
1 answer
4k views

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 ...
Subhash Chandran's user avatar
0 votes
2 answers
684 views

GKE lost nodes and Google Console shows different number of nodes

Some of the nodes in my cluster disappeared just now according to Kubernetes Dashboard and kubectl. In the Google Console, it shows the old amount. This results in many pods not being schedulable due ...
Sebastian Rosch's user avatar
1 vote
2 answers
6k views

google cluster giving authentication scope error

I have a free tier account but whenever i try to create a container cluster i am getting below error from one of the script (gcloud.container.clusters.create) ResponseError: code=403, message=Request ...
Gaurav Chatrath's user avatar
0 votes
1 answer
43 views

All pods restarted while Automatic node upgrades disabled

"Automatic node upgrades" are disabled in the k8s cluster. While on 2018-10-10 11:12:03.828 PDT, all my pods are restarted by them self and the log showing the create activities as done by me. Is ...
Hai Shang's user avatar
2 votes
2 answers
5k views

Using "Let's Encrypt" TLS with a Google Load Balancer? (Kubernetes/GKE)

I've been trying to test out Kubernetes on Google Cloud, but would need HTTPS/TLS (only) exposed on the deployed application. To start, I just followed this tutorial, which worked fine for plain HTTP ...
Ben Guild's user avatar
  • 299
1 vote
1 answer
1k views

GKE - Kube-DNS stubDomain resolution to VPN network not working

New to GCloud and GKE and having a frustrating time with DNS. We have a VPN between our office and GCloud running a Shared VPC. Existing firewall rules seem to work fine. We can ping both ways, we ...
Max DiOrio's user avatar
0 votes
1 answer
282 views

Is creating firewall rule for nodeport a security concen?

This question is regarding firewall rule on GCP. I run my development and production server on the same cluster and separating them by namespace only. For development, I expose a nodeport (e.g. ...
gke's user avatar
  • 1
0 votes
1 answer
93 views

Kubernetes in production. Problems with a working pod

I have a question with kubernetes when deploying a new version. My yaml configuration of Kubernetes has the RollingUpdate strategy. The problem comes when it comes to changing versions this way. If I ...
Sermanes's user avatar
  • 113
1 vote
2 answers
2k views

Which non-root user should I use on Google Kubernetes Engine?

When configuring a container process to run as a non-root user on Kubernetes, does the user need to exist on the host? If yes, which user id is appropriate to use when the host node is managed by ...
Niels Søholm's user avatar
4 votes
2 answers
992 views

How to log backend latency in Google Http Load Balancer and Stack Driver

We have a running kubernetes cluster on GKE and we Google HTTP Load Balancer in front of it. HTTP Load Balancer logs all requests and we can access them in stack driver logging. But latency is not ...
fyelci's user avatar
  • 141
0 votes
1 answer
382 views

Inheritance in Kubernetes Ingress Rule Path

I have the following ingress in my .yaml file: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress annotations: kubernetes.io/ingress.global-static-ip-name: my-ip-1 spec: ...
Will's user avatar
  • 101
3 votes
1 answer
2k views

What makes a kubernetes node unhealthy?

We've experienced 4 AUTO_REPAIR_NODES events(revealed by the command gcloud container operations list) on our GKE cluster during the past 1 month. The consequence of node-auto-repair is that the node ...
twimo's user avatar
  • 151
0 votes
1 answer
1k views

Why would GCE instance group manager recreate a VM?

The recreated VM instance got assigned a new external IP and caused other issues(e.g. couldn't connect to remote servers because the new IP was not being whitelisted...) Why would the instance group ...
twimo's user avatar
  • 151
1 vote
1 answer
168 views

How to deploy microservices in GCP?

What I have currently.. ... is an application with a microservices architecture, where the different services communicate with a gateway through GRPC, with the gateway serving REST endpoints. I'm ...
Chidi Williams's user avatar
0 votes
1 answer
736 views

Missing logs in Stackdriver from Kubernetes deployments using GKE

Currently running 28+ deployments under GKE logging to Stackdriver using the automatic fluentd collection. Master K8s Version: 1.10.6-gke.2 Node Version: 1.10.6-gke.2 Logging approximately 200 JSON ...
Patt-tom McDonnell's user avatar
1 vote
0 answers
171 views

Define loadBalancerIP via its GCP URI

I am configuring my GKE service to work with internal load balancer as described in the GCP docs: apiVersion: v1 kind: Service metadata: name: [NAME] annotations: cloud.google.com/load-...
bereal's user avatar
  • 131

1
6 7
8
9 10
12