google-kubernetes-engine

Setting up a Kuberentes cluster with HTTP Load balancing ingress for RStudio and Shiny results in error pages

一笑奈何 提交于 2020-01-01 05:41:09
问题 I'm attempting to create a cluster on Google Kubernetes Engine that runs nginx, RStudio server and two Shiny apps, following and adapting this guide. I have 4 workloads that are all green in the UI, deployed via: kubectl run nginx --image=nginx --port=80 kubectl run rstudio --image gcr.io/gcer-public/persistent-rstudio:latest --port 8787 kubectl run shiny1 --image gcr.io/gcer-public/shiny-googleauthrdemo:latest --port 3838 kubectl run shiny5 --image=flaviobarros/shiny-wordcloud --port=80 They

Can I run Google Monitoring Agent inside a Kubernetes Pod?

浪尽此生 提交于 2020-01-01 04:46:06
问题 It seems that the Google Monitoring Agent (powered by Stackdriver) should be installed on each Node (i.e. each compute instance, i.e. each machine) of a Kubernetes cluster. However the new plugins , like Nginx, Redis, ElasticSearch..., need those agents to know the IP of these services. This means having kube-proxy running and set up which should mean running that Google Monitoring Agent on a Pod. These two conflict: On one side that agent monitors the entire machine, on the other it monitor

How can you publish a Kubernetes Service without using the type LoadBalancer (on GCP)

随声附和 提交于 2019-12-31 22:22:31
问题 I would like to avoid using type: "LoadBalancer" for a certain Kubernetes Service, but still to be able to publish it on the Internet. I am using Google Cloud Platform (GCP) to run a Kubernetes cluster currently running on a single node. I tried to us the externalIPs Service configuration and to give at turns, the IPs of: the instance hosting the Kubernetes cluster (External IP; which also conincides with the IP address of the Kubernetes node as reported by kubernetes describe node ) the

Breakdown of GKE bill based on pods or deployments

坚强是说给别人听的谎言 提交于 2019-12-31 05:21:09
问题 I need a breakdown of my usage inside a single project categorized on the basis of Pods or Services or Deployments but the billing section in console doesn't seem to provide such granular information. Is it possible to get this data somehow? I want to know what was the network + compute cost on per deployment or pods. Or maybe if it is possible to have it atleast on the cluster level? Is this breakdown available in BigQuery? 回答1: Recently it was released a new features in GKE that allows to

GKE: secured access to services from outside the cluster

吃可爱长大的小学妹 提交于 2019-12-30 10:06:09
问题 Is there any way to access the 'internal' services (those not exposed outside) of the cluster in a secure way from the outside. The goal is simple: I need to debug clients of those services and need to access them, but don't want to expose them outside. On a regular single host I would normally tunnel to the host with SSH and map the ports to localhost; I tried using a SSHD container but that didn't get me very far: the services are not directly on that container so I'm not sure how to get to

Google Container Engine and VPN

女生的网名这么多〃 提交于 2019-12-30 07:17:08
问题 I wanna Google Container Engine to host some containers for development environment, and my office connects via VPN. Question: Is the IP of the Pod visible to me? or only Node is visible to me? The SkyDNS maintained by kubernetes which is available for pod, is that available to me? Suppose I have a "headless" service created. I can access that via VPN? { "kind": "Service", "apiVersion": "v1", "metadata": { "name": "redis-stage-1" }, "spec": { "ports": [{ "port": 36379, "targetPort": 36379 }],

How to create a binary that contains zoneinfo.zip

你。 提交于 2019-12-29 08:15:21
问题 I'm using Docker to create a container application and then deploy it to kubernetes engine but when the application is been initialized I get this error: err: open C:\Go/lib/time/zoneinfo.zip: no such file or directory 回答1: When using Go's time package, specifically the LoadLocation method, it looks for time zone database information in various locations. This is explained in the comments for LoadLocation in the source code at https://golang.org/src/time/zoneinfo.go. Specifically it looks in

How do I set ulimit for containers in Kubernetes?

懵懂的女人 提交于 2019-12-29 06:10:44
问题 How do I set ulimit for containers in Kubernetes? (specifically ulimit -u) 回答1: It appears that you can't currently set a ulimit but it is an open issue: https://github.com/kubernetes/kubernetes/issues/3595 回答2: Considering Docker is designed for single processes for the most part ulimit -u doesn't exactly make sense. However, if you are looking for resource limiting in general, Kubernetes allows you to set a quota on a resource. Here are the docs: https://github.com/kubernetes/kubernetes

Exposing kubernetes app using AWS Elastic LoadBalancer

一笑奈何 提交于 2019-12-25 18:32:42
问题 I created an internal AWS elastic application loadbalancer and in AWS console it shows its state as active. Note that I created this ALB using a jenkins job and in the job I have specified my AWS EC2 instance server which is configured as my kubernetes master. And I can see following details after the job was completed successfully. In AWS console under description, I can see below details - DNS internal-myservices-987070943.us-east-1.elb.amazonaws.com Scheme internal Type application IP

Google Container Engine REST API Authorization

邮差的信 提交于 2019-12-25 05:30:40
问题 As mentioned here I created API key for using cluster operations. For example for this query: https://www.googleapis.com/container/v1beta1/projects/PROJECT_ID/clusters And as mentioned After you have an API key, your application can append the query parameter key=yourAPIKey to all request URLs. I added it to url: https://www.googleapis.com/container/v1beta1/projects/PROJECT_ID/clusters?key=my_key But i have error: { "error": { "errors": [ { "domain": "global", "reason": "required", "message":