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
0 votes
0 answers
28 views

Can't access Kubernetes service using curl (GKE Autopilot)

I have created GKE Autopilot private and deployed Prometheus to it. I have Prometheus service in metrics namespace. The problem is that I can access this service with kubectl port-forwarding command, ...
0 votes
1 answer
20 views

Restore one protected application in GKE Kubernetes cluster in namespace with multiple apps

In a Kubernetes cluster I have several apps deployed in the same namespace called "default". An app consist of a webserver pod and a database pod. How to restore one single app in the ...
  • 111
0 votes
1 answer
37 views

kubectl not getting all pods

I am using Google Cloud Platform, and I have two different kubernetes clusters running on GKE. Now these clusters are zonal clusters, and are running on different zones. the issue is when I am using ...
0 votes
0 answers
22 views

GKE Mulitple networking

I don’t find in GKE documentation a reference for supporting Multus or IPVLAN attachement , all I find is related to Anthos on baremetal Could you please give us some indications how multi-networking ...
0 votes
0 answers
17 views

Restrict IP addresses Google APIs and Accesing from GKE (Google Kubernetes Engine) Request Denied

I created API Keys to enable Geocoding API, Maps JavaScript API and Places API with Restrict IP with Cloud NAT IP. My API Keys access from Kubernetes on GCP (Google Kubernetes Engine/GKE), when im ...
0 votes
0 answers
50 views

Preserve client IP in GKE

I have a backend application behind an nginx ingress controller in a GKE cluster and I want to whitelist a certain IP only to access it. I added to the associated ingress this annotation: nginx....
  • 1
0 votes
0 answers
25 views

How to connect k8s deployment calls private VPC cloud function on Google cloud platform?

I'm trying to deploy my frontend container image on Kubernetes, and this frontend depends on the GCP cloud function. I want to make the flow more secure by using a virtual private cloud (VPC) feature ...
0 votes
0 answers
44 views

GKE metrics about CPU usage of `kube-apiserver`

I'm trying to benchmark the load on the Kubernetes API that two different deployments cause. I have tried the two following ways of accomplishing this: Evaluate the Prometheus metric ...
0 votes
0 answers
29 views

What is the csi driver for google cloud?

For aws eks service there is helm chart for csi driver to handle volumes. aws-ebs-csi-driver What is the alternative for gke, google kubernetes engine? Please suggest.
  • 86
1 vote
1 answer
745 views

the gcp auth plugin is deprecated, how to skip this error?

I have install gke on a test account and configured the cli. kuebctl get pods is giving below warning. W0916 17:23:58.063534 67381 gcp.go:119] WARNING: the gcp auth plugin is deprecated in v1.22+, ...
  • 86
0 votes
1 answer
236 views

OpenVPN on Google Kubernetes Engine: expose private IPs to clients

Our scenario: We've got an OpenVPN server installed on a GKE pod with VPN clients that want to connect to our VPN. We need to expose to clients a service on another pod in our GKE cluster (an MQTT ...
0 votes
0 answers
29 views

GKE nodes IP changes

I am beginner to GKE concept and still not sure about node IP changing scenario. Whether node IP will change even for default nodes created at the time of cluster creation ? Whether reserving ip ...
  • 1
0 votes
1 answer
104 views

Google Cloud GKE evictable vs non-evictable memory

we have few pods inside Google Cloud K8S GKE and google metrics is reporting high memory usage in some of them but I cannot find why. Inside pod everything looks fine. We are using GKE version 1.21.13-...
  • 1
0 votes
1 answer
41 views

How often managed kubernetes cluster should be upgraded?

We use managed Kubernetes cluster (GKE) and wonder how often the Kubernetes cluster should be upgraded. We use release channels: regular (dev/test), stable (staging), stable (production). Different ...
  • 101
0 votes
0 answers
50 views

Coud DNS - VM - nameserver - couldn't resolve host

I created the private zone in Cloud DNS, then added the DNS name with a type of CNAME with the URL from outside. This is the record in the private zone. NAME: test.example.com. TYPE: NS TTL: 21600 ...
0 votes
1 answer
104 views

gcsfuse terminating with error 1 on GKE Autopilot

I am trying to use gcsfuse from a kubernetes pods running in GKE Autopilot. I read there may be issues with GKE autopilot, but the error I got is different from what is typically reported. Is gcsfuse ...
0 votes
1 answer
141 views

Accessing internal GKE resources from external IP

In GKE you can use External Ingress Controller to expose a service to the world and if you want you can use Google Cloud Armor to manage traffic and if required deny it with codes 403, 404, 502. Lets ...
  • 1
0 votes
1 answer
175 views

How to send a file from Google Cloud Platform Kubernetes Pod to external FTP?

I have an issue when trying to upload a file using PHP FTP from my website that is deployed on the GCP Kubernetes Engine. And when I try to upload it manually from the Pod terminal using the ftp ...
  • 153
0 votes
1 answer
676 views

Cannot properly edit and save worker node specs in Kubernetes

I have a Kubernetes cluster setup using KubeAdm (Setup in EC2 instances in AWS Cloud). The CNI used is Flannel and the cluster is running quite well. My requirement is that I am trying to setup ...
0 votes
0 answers
52 views

GKE AutoProvision Cluster not reachable during node-pool creation

I am currently experimenting with GKE auto-provisioning in order to find out if this is a viable way to go for my team's use cases. I noticed that whenever I deploy a new workload that the cluster ...
  • 121
0 votes
2 answers
66 views

Cloudflare Origin Issuer not getting ready

I am currently debugging an strange error where my Cloudflare OriginIssuers are not getting ready, which blocks renewals. I have tried restarting it once but that did not help, I looked at the port ...
0 votes
0 answers
83 views

kube-dns not resolving external urls with missing endpoints

I am trying to find out why my kube-dns does not resolve external urls and it seems it is caused by missing endpoints as described in: (I am using Google Kubernetes engine and the cluster was created ...
  • 275
0 votes
0 answers
57 views

How to understand the GKE CPU LIMIT metrics

The GKE node pool overview for a 4 vCPU core somehow display limit 10. Bellow is the GCP VM overview of the same node Is the cpu limit some how can be up and down like that?
  • 257
0 votes
1 answer
514 views

Calico Kubernetes Network Policy is denying all traffic and not working as expected

I am trying to implement some Calico based Kubernetes Network Policies. I have already setup Calico in my cluster and all the Calico based pods are running fine. In my cluster, There are two pods. 1. ...
0 votes
0 answers
7 views

Push Docker container logs from compute engine to GKE

And EFK stack is been run on GKE, Fluentd service is deployed as internal loadbalancer and its external ip is used as host IP fluentd agent running on GCE to push logs to GKE. Below config is being ...
0 votes
0 answers
30 views

Anthos Bare Metal - Adding node to cluster

Does anyone here using the Google Anthos Bare Metal? I'm also new in using Antho... My question is, I need to add new node to scale up my cluster but the new node is not showing when I run kubectl get ...
0 votes
1 answer
171 views

Ingress in GKE does not do the routing identically despite same IP at DNS level

I have setup in my GKE cluster an nginx ingress as follows: helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ...
  • 101
2 votes
3 answers
366 views

Google Kubernetes Engine - cannot see logs containing pod's output

In freshly installed cluster (Kubernetes version: v1.22.8-gke.201) I have the following test deployment: apiVersion: apps/v1 kind: Deployment metadata: name: busybox labels: app: busybox spec: ...
1 vote
1 answer
73 views

Security context in Kubernetes

Under the K8s component Statefulset as shown below, the security context works fine for Kubernetes 1.21 version, but when I tried with new versions it did not work fine. I understand this is due to ...
3 votes
1 answer
313 views

Change container ports in Kubernetes in production

I have an nginx Dockerimage listening on some port as defined int its nginx.conf. That image is deployed as a workload in Kubernetes (GKE) and an ingress points to it. The image's port is - both as ...
  • 237
0 votes
1 answer
77 views

Whitelisting URLs for exemption in binary authorization

I am testing my binary authorization policies and put an exemption entry to allow nginx . Following are the entries I tried by adding them under Images exempt from policy registry.hub.docker.com/...
  • 473
0 votes
0 answers
101 views

GCP's autoscaler fails to scale NodePool with Ephemeral Storage

We have a NodePool dedicated to CI agents. When everything works properly, our CI controller will create a pod for a CI agent, and the NodePool will be scaled automatically by GCP's autoscaler. This ...
1 vote
1 answer
129 views

Low IOPS on GKE

We are installing a MongoDB in Kubernetes Engine and it performs very poorly. We have installed it using Helm with 3 replicas (in a replicaset) and storage-class=premium-rwo (pd-ssd) with 500GB on ...
1 vote
1 answer
1k views

How to trigger GKE autoscaling decision on demand?

The GKE autoscaling process makes what they call "decisions" about whether or not to autoscale. The logs will include details explaining why the process decided not to do anything (...
0 votes
1 answer
340 views

No matching NodeSelectorTerms

Until yesterday this used to work, we are able to create a new set of pods under a namespace. However, today any new deployment fails to mount the PVC and I have no idea why. How can I investigate ...
  • 35
0 votes
0 answers
332 views

In kubernetes is it possible to mount a filesystem from a sidecar?

In kubernetes is it possible to mount a filesystem from a sidecar to my main container? I have dind (docker:18.05-dind) container running as a sidecar. From my main container I would like to run ...
1 vote
1 answer
473 views

Kubernetes Cert-Manager Expired Certificates

I inherited a GKE Kubernetes environment and have been trying to figure this out for days but unfortunately just don't know what to try next. The cluster is setup to use cert-manager (installed via ...
0 votes
0 answers
52 views

Force pod creation order

Is there some way to force pod creation order on Kubernetes? I have a scenario where Kubernetes are selecting a node pool with few resources and the first pod to be deployed consume a very small ...
  • 35
0 votes
1 answer
204 views

Node pool selection

I have a Kubernetes cluster with many node pools. Sometimes the deployment fails because the selected node pool that Kubernetes select has not enough available resources. Is there some way to force ...
  • 35
1 vote
0 answers
817 views

GKE Node auto-provisioning not scaling up with limits defined

I want to use GKE node auto-provisioning to create a node-pool with GPU on demand (that is when I start a Job that needs GPU resources). Going with the GCP tutorial I've set up a cluster with enabled ...
  • 11
1 vote
0 answers
785 views

GKE Konnectivity agent error

Our GKE cluster started showing Konnectivity agent errors: connection read failure" err="read tcp 172.16.51.22:49332->172.16.51.8:10250: use of closed network connection" ...
  • 53
3 votes
2 answers
1k views

ImagePullBackOff err while pulling docker image in different project in Google Cloud

I am trying to pull a private image from Artifact Registry repo in Google Cloud from a kubernetes cluster running in a different Google Cloud project using kubectl. kubernetes version 1.20.15-gke.1000 ...
0 votes
0 answers
70 views

How to run a kubernetes deployment on a node and scale on another node/pool?

I'm running an b2b application on a GKE cluster (1 pool, 2 nodes). They are normal nodes, because the uptime is critical However, I've created a secondary pool with Spot VMs with more powerful ...
0 votes
1 answer
223 views

Starting a Google Kubernetes cluster

We had a GKE cluster running a functional project Then we sunseted the entire project -- by deleting it. Due to a need, we restored the project Now I'm trying to get the GKE cluster running again. ...
  • 192
1 vote
0 answers
347 views

GCP Adding Private Service Connection IP range to master authorized network throws error

I followed this this GCP guide to be able to reach a Kubernetes Cluster private endpoint with Cloud Build jobs. I have set up everything (using Terraform). The final step in the guide is adding the (...
  • 11
0 votes
0 answers
93 views

GKE cluster which we configured for stable channel, did not get auto upgrade, got a mail to manually upgrade above v1.18. What could be the reason?

We have got a mail from GKE Team, that GKE v1.18 will not be supported starting March 31, 2022. It was mentioned that we have to do manual upgrade. Our cluster is configured for stable channel and ...
2 votes
1 answer
2k views

Pull images to Google Kubernetes Engine cluster from an artifact registry in another project?

We have a (GKE) kubernetes cluster running in "project A" that needs to get images from an artifact registry that is located in another project, B. How can I configure the project A GKE ...
  • 227
1 vote
2 answers
505 views

DNS problems on pool of preemptible-only nodes on GKE: endpoints of kube-dns service keeps failed pods

I do have a GKE k8s cluster (k8s 1.22) that consists of preemptible nodes only, which includes critical services like kube-dns. It's a dev machine which can tolerate some broken minutes a day. Every ...
0 votes
0 answers
39 views

How to reduce pod crash/fault detection time in Kubernetes/GKE

I am trying to reduce pod crash detection time in Kubernetes/GKE. Generally, when I simulate pod crash, then Kubernetes detects it in approx between 1 to 1.5 seconds. I want to know what are the ...
0 votes
0 answers
45 views

how to update kubelet and controller manager parameters in gke for fine tuning node failover time detection

i want to update the following parameters in kubelet and controller manager in gke. kubelet: node-status-update-frequency controller-manager: node-monitor-period controller-manager: node-monitor-...

1
2 3 4 5
11