google-kubernetes-engine

Unable to connect to Google Container Engine

旧时模样 提交于 2020-03-21 19:05:56
问题 I've updated gcloud to the latest version (159.0.0) I created a Google Container Engine node, and then followed the instructions in the prompt. gcloud container clusters get-credentials prod --zone us-west1-b --project myproject Fetching cluster endpoint and auth data. kubeconfig entry generated for prod kubectl proxy Unable to connect to the server: error executing access token command "/Users/me/Code/google-cloud-sdk/bin/gcloud ": exit status Any idea why is it not able to connect? 回答1: You

How to get Kubernetes cluster name from K8s API

我只是一个虾纸丫 提交于 2020-03-17 05:15:28
问题 As stated in the title, is it possible to find out a K8s cluster name from the API? I looked around the API and could not find it. 回答1: Unfortunately a cluster doesn't know it's own name, or anything else that would uniquely identify it (K8s issue #44954). I wanted to know for helm issue #2055. 回答2: kubectl config current-context does the trick (it outputs little bit more, like project name, region, etc., but it should give you the answer you need). 回答3: I dont believe there is a k8s cluster

How to get Kubernetes cluster name from K8s API

喜欢而已 提交于 2020-03-17 05:14:19
问题 As stated in the title, is it possible to find out a K8s cluster name from the API? I looked around the API and could not find it. 回答1: Unfortunately a cluster doesn't know it's own name, or anything else that would uniquely identify it (K8s issue #44954). I wanted to know for helm issue #2055. 回答2: kubectl config current-context does the trick (it outputs little bit more, like project name, region, etc., but it should give you the answer you need). 回答3: I dont believe there is a k8s cluster

Gitlab + GKE + AutoDevops set environment variables

北城以北 提交于 2020-03-05 05:03:44
问题 I have successfully deployed an app using gitlab auto devops on GKE. How can I set environment variables for my app containers? Variables like PORT, DB_URL, 3rd party services etc ... 回答1: I am deploying to GKE from GitLab but without AutoDevops, but in k8s the env vars are defined in the deployment yaml. If you want to set them from GitLab and you want them to be different between deployments (production / dev etc.) then I recommend using Helm and passing --set to the helm install/upgrade

Gitlab + GKE + AutoDevops set environment variables

末鹿安然 提交于 2020-03-05 05:03:20
问题 I have successfully deployed an app using gitlab auto devops on GKE. How can I set environment variables for my app containers? Variables like PORT, DB_URL, 3rd party services etc ... 回答1: I am deploying to GKE from GitLab but without AutoDevops, but in k8s the env vars are defined in the deployment yaml. If you want to set them from GitLab and you want them to be different between deployments (production / dev etc.) then I recommend using Helm and passing --set to the helm install/upgrade

Gitlab + GKE + AutoDevops set environment variables

ε祈祈猫儿з 提交于 2020-03-05 05:03:16
问题 I have successfully deployed an app using gitlab auto devops on GKE. How can I set environment variables for my app containers? Variables like PORT, DB_URL, 3rd party services etc ... 回答1: I am deploying to GKE from GitLab but without AutoDevops, but in k8s the env vars are defined in the deployment yaml. If you want to set them from GitLab and you want them to be different between deployments (production / dev etc.) then I recommend using Helm and passing --set to the helm install/upgrade

Sonar cannot be access via istio virtual service but can be locally accessed after port forwarding

血红的双手。 提交于 2020-03-04 23:29:10
问题 I am trying to implement SonarQube in a Kubernetes cluster. The deployment is running properly and is also exposed via a Virtual Service. I am able to open the UI via the localhost:port/sonar but I am not able to access it through my external ip. I understand that sonar binds to localhost and does not allow access from outside the remote server. I am running this on GKE with a MYSQL database. Here is my YAML file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: sonarqube

Sonar cannot be access via istio virtual service but can be locally accessed after port forwarding

只谈情不闲聊 提交于 2020-03-04 23:29:05
问题 I am trying to implement SonarQube in a Kubernetes cluster. The deployment is running properly and is also exposed via a Virtual Service. I am able to open the UI via the localhost:port/sonar but I am not able to access it through my external ip. I understand that sonar binds to localhost and does not allow access from outside the remote server. I am running this on GKE with a MYSQL database. Here is my YAML file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: sonarqube

Spinnaker authentication using IAP

有些话、适合烂在心里 提交于 2020-03-03 04:43:10
问题 We are trying to enable authentication in Spinnaker using IAP. Spinnaker is deployed in GKE using HAL Deck and Gate are exposed to different domains using Ingress and HTTPS is enabled for both. IAP is enabled and credential is created. HAL configurations for IAP have been done and redeployed. BaseURLs for UI & API have been set. CORS pattern is set to the UI URL. Now when i try to open the application, initially the redirects to https://accounts.google.com/o/oauth2/v2/auth?.... fails a few

Spinnaker authentication using IAP

风格不统一 提交于 2020-03-03 04:43:07
问题 We are trying to enable authentication in Spinnaker using IAP. Spinnaker is deployed in GKE using HAL Deck and Gate are exposed to different domains using Ingress and HTTPS is enabled for both. IAP is enabled and credential is created. HAL configurations for IAP have been done and redeployed. BaseURLs for UI & API have been set. CORS pattern is set to the UI URL. Now when i try to open the application, initially the redirects to https://accounts.google.com/o/oauth2/v2/auth?.... fails a few