google-kubernetes-engine

Can I launch Google Container Engine (GKE) in Private GCP network Subnet?

强颜欢笑 提交于 2021-01-27 18:12:12
问题 I'm trying to launch Google Container Engine (GKE) in Private GCP network Subnet. I have created custom Google Cloud VPC, then I have created custom Private Network Access Subnet too under that VPC. 1) When I create GKE cluster with Private Subnet, still my Kubernetes nodes assigned with Public IP. Why it is so ? As per Google Document private instance should get Private IP. 2) If I create cluster in Private, can I connect my container application to Google SQL instance ? 3) Is any

Failure to connect to proxy “Certificate signed by unknown authority”

Deadly 提交于 2021-01-27 13:42:34
问题 I'm attempting to connect to a CloudSQL instance via a cloudsql-proxy container on my Kubernetes deployment. I have the cloudsql credentials mounted and the value of GOOGLE_APPLICATION_CREDENTIALS set. However, I'm still receiving the following error in my logs: 2018/10/08 20:07:28 Failed to connect to database: Post https://www.googleapis.com/sql/v1beta4/projects/[projectID]/instances/[appName]/createEphemeral?alt=json&prettyPrint=false: oauth2: cannot fetch token: Post https://oauth2

How to automatically stop rolling update when CrashLoopBackOff?

↘锁芯ラ 提交于 2021-01-27 13:41:14
问题 I use Google Kubernetes Engine and I intentionally put an error in the code. I was hoping the rolling update will stop when it discovers the status is CrashLoopBackOff , but it wasn't. In this page, they say.. The Deployment controller will stop the bad rollout automatically, and will stop scaling up the new ReplicaSet. This depends on the rollingUpdate parameters (maxUnavailable specifically) that you have specified. But it's not happening, is it only if the status ImagePullBackOff ? Below

kubectl: Error from server: No SSH tunnels currently open

Deadly 提交于 2021-01-27 04:49:19
问题 I'm running some containers on Google Container Engine. One day everything was fine, and the next day I can't attach to my containers anymore. Or exec , or any other docker command. I deleted the pods and let new ones be instanced, didn't help. Then I deleted the node and waited for a new one to be created and the pods deployed, didn't help either. $ kubectl attach www-controller-dev-xxxxx Error from server: No SSH tunnels currently open. Were the targets able to accept an ssh-key for user

Error while initializing user mongodb , Kubernetes

限于喜欢 提交于 2021-01-21 11:23:29
问题 I am using mongo db on gke kubernetes engine , it was working perfectly before i update the pod image version, I tried to delete the volumeClaim and the disk , but the problem is the same this is my pod and my init script this is the logs , and yaml file : 2019-11-09T00:51:03.806+0000 E QUERY [js] uncaught exception: Error: couldn't add user: Error preflighting normalization: U_STRINGPREP_PROHIBITED_ERROR : _getErrorWithCode@src/mongo/shell/utils.js:25:13 DB.prototype.createUser@src/mongo

Run a single kubectl command for a specific project and cluster?

一世执手 提交于 2021-01-07 06:23:37
问题 Background We're using Jenkins to deploy a new version of a Kubernetes (k8s) replication controller to our test or prod cluster. The test and prod (k8s) clusters are located under different (google cloud platform) projects. We have configured two profiles for our gcloud SDK on Jenkins, one for test (test-profile) and one for prod (prod-profile). We have defined a managed script in Jenkins that performs the rolling update for our replication controller. The problems is that I cannot find a way

Run a single kubectl command for a specific project and cluster?

坚强是说给别人听的谎言 提交于 2021-01-07 06:22:28
问题 Background We're using Jenkins to deploy a new version of a Kubernetes (k8s) replication controller to our test or prod cluster. The test and prod (k8s) clusters are located under different (google cloud platform) projects. We have configured two profiles for our gcloud SDK on Jenkins, one for test (test-profile) and one for prod (prod-profile). We have defined a managed script in Jenkins that performs the rolling update for our replication controller. The problems is that I cannot find a way

Run a single kubectl command for a specific project and cluster?

孤街浪徒 提交于 2021-01-07 06:22:15
问题 Background We're using Jenkins to deploy a new version of a Kubernetes (k8s) replication controller to our test or prod cluster. The test and prod (k8s) clusters are located under different (google cloud platform) projects. We have configured two profiles for our gcloud SDK on Jenkins, one for test (test-profile) and one for prod (prod-profile). We have defined a managed script in Jenkins that performs the rolling update for our replication controller. The problems is that I cannot find a way

How to add HTTPS load balancer for an application deployed using GKE

一笑奈何 提交于 2021-01-07 02:48:55
问题 I have created a Play web application which is now deployed on GCP . The application works fine. I want to add https support in it to secure communication between the client and the server. I know that in GCP , there is an option to create http load balancers but I think they are meant for applications running on VM s/Compute instances directly and not via GKE . Question 1 - Am I correct? I am asking because when I try to configure the load balancer, I don't see reference to my currently

Rabbit mq - Error while waiting for Mnesia tables

让人想犯罪 __ 提交于 2020-12-30 09:29:44
问题 I have installed rabbitmq using helm chart on a kubernetes cluster. The rabbitmq pod keeps restarting. On inspecting the pod logs I get the below error 2020-02-26 04:42:31.582 [warning] <0.314.0> Error while waiting for Mnesia tables: {timeout_waiting_for_tables,[rabbit_durable_queue]} 2020-02-26 04:42:31.582 [info] <0.314.0> Waiting for Mnesia tables for 30000 ms, 6 retries left When I try to do kubectl describe pod I get this error Conditions: Type Status Initialized True Ready False