google-kubernetes-engine

Cannot access google cloud SQL from google container engine

穿精又带淫゛_ 提交于 2019-12-08 17:24:26
问题 I'm still having problems accessing the cloud SQL instance from a GCE container. When I try to open up mysql, I get the following error: ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 The connection works fine from my local machine, though (The instance has a public IP and I have added my office's IP to the 'allowed Networks'). So, the instance is accessible through the internet just fine. I guess the db's access control is

Increasing the cluster size in Google Container Engine

风流意气都作罢 提交于 2019-12-08 16:49:33
How do I add VM instances to my existing Container Engine cluster? I understand that I can add pods via replication controllers, but it seems there can be multiple pods per VM instance. Adding 50 new pods to my initial 3 VM cluster just distributed those pods evenly and did not start new instances. Not really helpful if I want to scale my app due to increased load. For now, there isn't a way to scale your cluster. We are working on integrating Container Engine with the recently announced Managed Instance Groups and Cloud AutoScaling Service. Stay tuned! Resizing a cluster is now possible, see

Are Ingress working with ClusterIP services?

放肆的年华 提交于 2019-12-08 15:59:16
问题 I've setup some services and ingresses to try out the SSL termination. I had no problem at all with LoadBalancer and NodePort services as backend but it's not working at all with ClusterIP service. Although the Ingress' backend is described as healthy, I get an HTTP error that do not come from my application. $ kubectl describe ing nginx-cluster-ssl-ingress Name: nginx-cluster-ssl-ingress Namespace: default Address: X.X.X.X Default backend: nginx-cluster-svc:80 (...) TLS: ssl-certificate

Managing GKE and its deployments with Terraform

三世轮回 提交于 2019-12-08 15:44:38
I can use terraform to deploy a Kubernetes cluster in GKE . Then I have set up the provider for Kubernetes as follows: provider "kubernetes" { host = "${data.google_container_cluster.primary.endpoint}" client_certificate = "${base64decode(data.google_container_cluster.primary.master_auth.0.client_certificate)}" client_key = "${base64decode(data.google_container_cluster.primary.master_auth.0.client_key)}" cluster_ca_certificate = "${base64decode(data.google_container_cluster.primary.master_auth.0.cluster_ca_certificate)}" } By default, terraform interacts with Kubernetes with the user client ,

Kubernetes set a timeout limit on image pulls

ぃ、小莉子 提交于 2019-12-08 11:33:31
问题 I’m getting Failed to pull image because the image pull is timing out, I know the image is there I just think my private registry is slow, is there a way to set a timeout limit on image pulls? 回答1: The timeout limit can be controlled with the --runtime-request-timeout option for the kubelet service. Official documentation for this: Timeout of all runtime requests except long running request - pull, logs, exec and attach. When timeout exceeded, kubelet will cancel the request, throw out an

Google Kubernetes Engine Ingress UNHEALTHY backend service

此生再无相见时 提交于 2019-12-08 10:17:49
问题 Kind Note: I have googled a lot and take a look too many questions related to this issue at StackOverflow also but couldn't solve my issue, that's why don't mark this as duplicate, please! I'm trying to deploy 2 services (One is Python flask and other is NodeJS) on Google Kubernetes Engine. I have created two Kubernetes-deployments one for each service and two Kubernetes-services one for each service of type NodePort . Then, I have created an Ingress and mentioned my endpoints but Ingress

How to mount Google Bucket as local disk on Linux instance with full access rights

回眸只為那壹抹淺笑 提交于 2019-12-08 10:05:14
问题 Using five lines below install gcsfuse on a brand new Ubuntu14 instance: export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - sudo apt-get update sudo apt-get install gcsfuse Now create a folder on a local disk (this folder is to be used as the mounting point for Google Bucket ). Give this folder a full

Managing GKE and its deployments with Terraform

两盒软妹~` 提交于 2019-12-08 07:19:43
问题 I can use terraform to deploy a Kubernetes cluster in GKE . Then I have set up the provider for Kubernetes as follows: provider "kubernetes" { host = "${data.google_container_cluster.primary.endpoint}" client_certificate = "${base64decode(data.google_container_cluster.primary.master_auth.0.client_certificate)}" client_key = "${base64decode(data.google_container_cluster.primary.master_auth.0.client_key)}" cluster_ca_certificate = "${base64decode(data.google_container_cluster.primary.master

Increasing the cluster size in Google Container Engine

北慕城南 提交于 2019-12-08 07:17:18
问题 How do I add VM instances to my existing Container Engine cluster? I understand that I can add pods via replication controllers, but it seems there can be multiple pods per VM instance. Adding 50 new pods to my initial 3 VM cluster just distributed those pods evenly and did not start new instances. Not really helpful if I want to scale my app due to increased load. 回答1: For now, there isn't a way to scale your cluster. We are working on integrating Container Engine with the recently announced

Shiny app docker container not loading in browser

五迷三道 提交于 2019-12-08 06:39:55
问题 I containerised a shiny app and attempted to deploy it on GCP using Kubernetes but each time I obtain the external IP address and load it in the browser, I get the "this site cannot be reached connection refused" error. So I have attempted to run the container on my localhost to troubleshoot and now I get the "127.0.0.1 didn’t send any data. ERR_EMPTY_RESPONSE" error. I searched tirelessly online for a solution but nothing seems to work for me. Plus none of the solutions on are for a shiny