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
8 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 ...
user avatar
  • 151
0 votes
1 answer
53 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 ...
user avatar
0 votes
0 answers
11 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 ...
user avatar
  • 121
0 votes
1 answer
18 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 ...
user avatar
0 votes
0 answers
18 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 ...
user avatar
  • 275
0 votes
0 answers
18 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?
user avatar
  • 257
0 votes
1 answer
78 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. ...
user avatar
0 votes
0 answers
5 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 ...
user avatar
0 votes
0 answers
10 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 ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
  • 101
0 votes
2 answers
71 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: ...
user avatar
1 vote
1 answer
48 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 ...
user avatar
3 votes
1 answer
111 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 ...
user avatar
  • 197
0 votes
1 answer
42 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/...
user avatar
  • 443
0 votes
0 answers
40 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 ...
user avatar
1 vote
1 answer
70 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 ...
user avatar
1 vote
1 answer
341 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 (...
user avatar
0 votes
1 answer
157 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 ...
user avatar
  • 13
0 votes
0 answers
89 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 ...
user avatar
1 vote
1 answer
167 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 ...
user avatar
0 votes
0 answers
36 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 ...
user avatar
  • 13
0 votes
1 answer
52 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 ...
user avatar
  • 13
0 votes
0 answers
235 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 ...
user avatar
1 vote
0 answers
279 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" ...
user avatar
  • 43
2 votes
2 answers
526 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 ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
0 votes
1 answer
102 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. ...
user avatar
  • 182
0 votes
0 answers
156 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 (...
user avatar
  • 1
0 votes
0 answers
51 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 ...
user avatar
2 votes
1 answer
674 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 ...
user avatar
  • 227
1 vote
2 answers
354 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
0 votes
0 answers
29 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-...
user avatar
0 votes
0 answers
18 views

GKE collector metrics missed some metrics

[enter image description here][1]On the cluster in GKE, we have a CronJob deployed, which sends prometheus metrics to the handler. A collector is launched to it using PodMonitor. I understand that it ...
user avatar
0 votes
0 answers
130 views

GCP/GKE - add/attach a new disk to confidential node

I'm trying to attach a new disk to y GKE cluster since I need it for a database running with PostreSQL Operator. Important: I'm running confidential n2d nodes. Now I'm getting following error from k8s:...
user avatar
0 votes
1 answer
373 views

Assigning different external IP for each Pod on GKE autopilot

I am in the process of moving our project from the Compute Engine to GKE autopilot (cost efficiency, scale-up/down). Currently, in the Compute Engine, each machine gets a different external IP (at no ...
user avatar
  • 101
0 votes
2 answers
188 views

How to get K8S node networking tags for Autopilot cluster?

I'm trying to set up GKE with Standalone NEG (avoiding Ingress, and using Terraform for Load Balancer setup instead). Everything works fine, but so far I've been using Firewall Rules from another ...
user avatar
1 vote
1 answer
396 views

How to use ManagedCertificate in namespaced Ingress

I tried to use Google Managed Certificate (not through k8s) in Ingress. If Ingress is in default namespace, everything works fine using ingress.gcp.kubernetes.io/pre-shared-cert: my-cert-name ...
user avatar
0 votes
0 answers
28 views

Unable to deploy and use Google Vision On-Prem

After purchasing/subscribing to the Vision On-Prem OCR from Marketplace, I have configured and deployed the application on a GKE cluster. The automatic deployment seems to have encountered an error. ...
user avatar
1 vote
1 answer
532 views

Issues starting Kube-scheduler [ Kubernetes the hard way ]

I am trying to setup kubernetes cluster the hardway by following guide from Kelsey Hightower's Kubernetes The Hard Way After setting up the kube-scheduler, when I start the scheduler I am seeing the ...
user avatar
  • 113
0 votes
1 answer
160 views

Unable to connect GCP SQL Instance from GKE cluster

I have created a vpc-native cluster and I am trying to connect from a pod inside the cluster to a postgres SQL instance with a private IP. I am testing using a basic telnet 5432 command. The ...
user avatar
  • 101
0 votes
1 answer
113 views

Deploy Odoo on Google Kubernetes: Log severity all in ERROR

I deploy Odoo 13CE on Googke Kubernetes and using Cloud Logging for logging, I config app using default container log. Everything run smoothly, except all log output severity mark as ERROR in Cloud ...
user avatar
0 votes
1 answer
406 views

Create ingress firewall rule for GKE API

For testing purposes I want to make the GKE API endpoint publicly available. However, I can't seem to be able to create a firewall rule to allow this. I receive the error "source_ranges": ...
user avatar
0 votes
0 answers
74 views

Migrating services to a new GKE cluster without downtime

I'd like to upgrade my GKE cluster to enable VPC-Native networking. For that, I'm in need of creating new GKE Cluster. While I more or less know how to migrate my own deployments there and have a ...
user avatar
0 votes
2 answers
4k views

terraform apply error alreadyExists on untouched resources

I am starting a new terraform project, following the official guide: https://learn.hashicorp.com/tutorials/terraform/gke?in=terraform/kubernetes&utm_source=WEBSITE&utm_medium=WEB_IO&...
user avatar
0 votes
0 answers
45 views

Setup IP alias for GKE kubectl connection via tunneling through the "bastion" host to avoid insecure-skip-tls-verify option

In reference to this question: Run 'kubectl' commands from my localhost to GKE - but via tunnelling through a bastion host I'm facing the very same situation. I did all that is described in ...
user avatar
  • 1
0 votes
0 answers
92 views

GKE autoscaler sometimes doesn't scale pods

We have a deployment configured with HPA based on the CPU metric. It can work fine for days, scaling pods up and down. And then at some point looks that it ignores metric and scales to some small ...
user avatar
0 votes
0 answers
118 views

GKE build extremely slow

I have a build that typically requires 2.5 hours to redeploy now been running for the last 20 hours. There are some disk operations on it. In particular, each NFS read/write appears 10,000 times ...
user avatar
3 votes
1 answer
96 views

How many Control Plane I will get if I select only 1 zone or 4 zones in Regional GKE cluster respectively?

How many Control Plane I will get if I select only 1 zone or 4 zones in Regional GKE cluster respectively? Thanks
user avatar
  • 100
0 votes
1 answer
286 views

How to trigger k8s Job from different application?

I will briefly describe my application workflow: I have one application (cronjob), this application read my database and I want to, based on the output from database, run a few jobs in Kubernetes. ...
user avatar

1
2 3 4 5
11