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
3
votes
1 answer

GKE application (container) logs being delivered to Cloud Logging with ERROR severity - where does that come from?

We have GKE containers emitting log messages via stdout to the console and they are being forwarded to the standard GCP logging platform. However, somehow the messages get an ERROR severity attached. The messages have a JSON payload, which has INFO…
Kevin Buchs
  • 353
  • 1
  • 3
  • 20
3
votes
1 answer

How to label GKE/Kubernetes nodes and their disks in GCP?

In our GCP project we are in the process of setting labels for resources to assist organization and cost management. This is about GCP labels as described here https://cloud.google.com/compute/docs/labeling-resources and not Kubernetes labels. For…
f.sh
  • 45
  • 5
2
votes
1 answer

kubernetes metrics-server giving context deadline exceeded

I am using multiple GKE managed clusters on version 1.14.8-gke.12 in a shared VPC setting. Suddenly, one of my clusters has stopped giving proper metrics for HPA. The metric server is up and running, but this is the output on HPA: NAME …
Aditya Aggarwal
  • 123
  • 1
  • 5
2
votes
1 answer

Pod age longer than node age on preemptible node in GKE

We are running a Google Kubernetes Engine cluster where all the nodes are marked "preemptible". From the Google documentation: Preemptible VMs are Compute Engine VM instances that last a maximum of 24 hours and provide no availability…
user35042
  • 2,681
  • 12
  • 34
  • 60
2
votes
2 answers

Downtime on GCP load balancer after switching node pool on a backend service

We have a blue green deployment system in place that we are using for quite a while. We have two backend services on the load balancer. One service is for test and another is for production. There are 2 different node pools (k8s) used behind those…
2
votes
2 answers

Cannot apply permission for Google-managed SSL certificates to service account

When I try to create a managed certficate through a service account I get the error managedcertificates.networking.gke.io "..." is forbidden: User "..." cannot get resource "managedcertificates" in API group "networking.gke.io" ... Required…
Roberto
  • 33
  • 3
2
votes
2 answers

GCP networking from VM compute to GKE service in same VPC

I have a compute instance VM named mysql-1 in the same account, same VPC as a GKE cluster. I have a k8s service deployed: ~ $ kubectl get services NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)…
2
votes
1 answer

Can I schedule UpdateClusterInternal in GKE?

This upgrade policy from GCP is too aggressive for me, I only use 1 node pool with 1 single node. When the upgrade happens, my system is entirely down. Is there a way to: Disable automatic upgrade? or Schedule the upgrade to the exact date/time?…
2
votes
1 answer

Custom routes rejected by GKE peer configuration

I would like to expose the GKE apiserver private endpoint to my on-premise network, which is connected to VPC through a VPN tunnel. The VPC network was created with custom mode (not auto mode) to allow custom routes. There is a custom static route…
2
votes
2 answers

How to enable autoscaling/v2beta2 in google cloud

While following the tutorial found here I saw that I need autoscaling/v2beta2 for having custom metrics for the Horizontal Pod Autoscaler, but don't know how to enable it. Environment details: Google Cloud platform Kubernetes version 1.13.7-gke.8…
2
votes
1 answer

When upgrading nodes, why does kubernetes terminate pods before the new pod is in a ready state?

As you can see in the picture below, when upgrading nodes to a new version of Kubernetes, the pods on each node are recreated on a new node with a newer version of Kubernetes. However, it seems that the old pods are being destroyed (Terminating)…
Nick
  • 173
  • 1
  • 5
2
votes
2 answers

kubectl top node doesn't work. Looks like an issue with heapster

I have a fresh k8s cluster on gke. Whenever I run kubectl top node gke-data-custom-vm-6-25-0cbae9b9-hrkc I get Error from server (NotFound): the server could not find the requested resource (get services http:heapster:) At the same time I have…
Korjavin Ivan
  • 2,250
  • 2
  • 26
  • 41
2
votes
1 answer

Setting up HTTP Load Balancing with Nginx Ingress Controller

Could somebody write up the steps of setting up HTTP Load Balancing with Nginx Ingress Controller for Google Kubernetes Engine? I followed this GKE tutorial for a basic Ingress. It got a Forwarding Rule in Load Balancing tab in the end. I guess if I…
lucahuy
  • 121
  • 1
2
votes
1 answer

Requests can't be forwarded to peer network because the peer project disabled DNS peering

I am trying to get cert-manager works with my GKE. I had followed the official documents and had tried dns01 with no luck. Currently I believe I found the missing manual it called customized DNS. In the 11:00 of the video has not shown any…
2
votes
0 answers

cert-manager tls.crt and ca.crt 0 bytes

I am practicing k8s on cert-manager topic. I had carefully followed the official docs. The everything went fine. Until I stuck at step7 $ kubectl get certificate NAME quickstart-example-tls This is first minor different. I should has AGE column.…
Stone
  • 161
  • 8