Menu
  • HOME
  • TAGS

How to expose dynamic ports using Kubernetes service on Google Container Engine?

kubernetes,google-container-engine

I don't think there is currently a better solution than what you are doing. There is already a related issue, kubernetes issue 1802, about having multiple ports per service. I mentioned your requirements on that issue. You might want to follow up there with more information about your use case,...

on google container engine, how do i use “expose” with “--public-ip”?

google-compute-engine,google-container-engine

Why doesn't it support web sockets? It should. You need to set session affinity on. Sadly kubectl expose doesn't currently have a flag for session affinity (it should) but if you run kubectl expose --dry-run=true ... it will dump the API object it would send, and then you can add...

Running Kubernetes locally

kubernetes,google-container-engine

You would typically only ever have one minion/host. So if you are deploying your minions on physical hardware, there is a 1:1 mapping between minions and physical hosts. If you are deploying into a virtual cluster on your laptop, you will want to make sure that each virtual minion has...

--cap-add in Google Container Engine

docker,iptables,google-container-engine

There was a pull request filed yesterday to add this feature to Kubernetes. Once it has been added to Kubernetes you should be able to test it by building from head and deploying your cluster to GCE. This feature will show up in Google Container Engine shortly after the next...

how to connect a kubernetes pod to the outside world without a forwarding rule (google container engine)

firewall,kubernetes,google-container-engine

TL;DR: Use the Internal IP of your node as the public IP in your service definition. If you enable verbose logging on the kube-proxy you will see that it appears to be creating the appropriate IP tables rule: I0602 04:07:32.046823 24360 roundrobin.go:98] LoadBalancerRR service "default/app-frontend-service:" did not exist, created I0602...

Changing Permissions of Google Container Engine Cluster

node.js,google-cloud-storage,google-cloud-sql,google-cloud-platform,google-container-engine

The permissions are defined by the service accounts attached to your node VMs during cluster creation (service accounts can't be changed after a VM is instantiated, so this the only time you can pick the permissions). If you use the cloud console, click the "More" link on the create cluster...

Pod to Pod connection with using multiple port

rabbitmq,google-compute-engine,kubernetes,google-container-engine

Your question is similar to this question, and unfortunately has the same response: Kubernetes / Google Container Engine does not currently have a way to expose a range of ports for a service at the current time. There is an open issue in GitHub to address this use case.

How to mount volume for docker container via yaml manifest?

docker,google-cloud-platform,google-container-engine

Try replacing hostDir with hostPath as mentioned in v1beta3-conversion-tips-from-v1beta12. Try replacing volumes: - name: string source: # Either emptyDir for an empty directory # emptyDir: {} # Or hostDir for a pre-existing directory on the host hostDir: path: /home with volumes: - name: string hostPath: path: /home at the bottom...

Google Container Engine (GKE): “Hello Wordpress” tutorial not working (ERR_CONNECTION_REFUSED)

google-cloud-platform,kubernetes,google-container-engine

If you want to access the container directly using the node VM's IP address, you need to specify a host port in addition to a container port, e.g. kubectl run-container wordpress --image=tutum/wordpress --port=80 --hostport=80 Alternatively, you can access wordpress via the proxy running on the master by running kubectl proxy...

Container Engine: AttributeError: 'module' object has no attribute 'Credentials'

google-compute-engine,gcloud,google-container-engine

It looks like your gcloud installation somehow got into a partially updated state. If gcloud components update doesn't do anything, try reinstalling.

Is there a way to add $CONFIG_DIR to the project config when creating a container pod?

google-container-engine

Nope. You'll need to create a local environment variable. gcloud config set is only used for gcloud specific settings, not environment settings. $CONFIG_DIR isn't used by gcloud itself, it's used by your shell to expand the files being passed into gcloud.

Can my VM directly access “services” in the google container engine?

google-container-engine

Try: gcloud compute routes create svc-fwd-1 --destination-range 10.131.240.0/20 --next-hop-instance k8s-<clusterName>-node-1 --next-hop-instance-zone <zone> (replacing with the name of your cluster, and with the zone the cluster is in) GCE VMs are given private IPs in the networks CIDR range (10.240.0.0/16 for the default network). GKE pods are given private IPs in...

Specify order Dockers run on Kubernetes pod

docker,kubernetes,google-container-engine

Kubernetes currently does not allow specification of container startup dependencies. There has been some discussion in GitHub issues 1996 and 1589 that might help you out....

What does Google Container Engine use for Kubernetes node provisioning?

mesos,kubernetes,google-container-engine

Kubernetes actually does do this. The master schedules each pod onto a worker node, and each node communicates with the master to receive the work it should do. The scheduler does bin packing based on resource requests. We're working on improving the scheduler to use resource usage as well (what...

Organization of pods in cluster in Google Container Engine

java,java-ee,docker,kubernetes,google-container-engine

To answer your first question, multiple pods can be scheduled on each node. One of the best parts about Google Container Engine / Kubernetes is that it is really flexible, so you can structure your services in the way that works best for you. For your specific use case, I...

Accessing Kubernetes API on Google Container Engine

kubernetes,google-container-engine

Once you launch your container cluster on Google Container Engine, you will have a master running the kubernetes API on a VM in your GCP project. If you run gcloud preview container clusters list you will see the endpoint at which the kubernetes API is available as well as the...

Kubernetes/Container engine HTTP API for creating pods

google-app-engine,kubernetes,google-container-engine

This is basically the same question as this one (asked yesterday) and has the same answer: Once you launch your container cluster on Google Container Engine, you will have a master running the kubernetes API on a VM in your GCP project. You can interact with it via the kubectl...

Getting errors on Hello-Wordpress Sample

google-container-engine

Try: gcloud preview container pods create --name wordpress --cluster-name hello-world --image=tutum/wordpress --port=80 The name of the pod is now specified as an argument as shown in the usage output: "--name NAME The name of the pod"...

Cannot access google cloud SQL from google container engine

google-cloud-sql,google-container-engine

The recommended solution is to use SSL connection with that 0.0.0.0/0 CIDR. This is to limit the connection to the correct key. I also read that they won't promise you a specific IP range so the CIDR /14 might not work some times. I had to do the SSL connection...

Preferred way of aggregating logs

fluentd,google-container-engine

The fluentd container running on each node automatically collects the stdout and stderr of your pods and sends them to the Google Cloud Logging API. The only wrinkle is that the logs won't actually be saved by the logging API unless you've enabled the API for your project, which you...

Does Google Container Registry undergo issues?

docker,google-cloud-platform,google-container-engine,google-container-registry

The latest container vm image doesn't support the v1beta2 kubernetes API. You will need to update your manifest to use v1beta3 or v1 (with the corresponding yaml changes). The latest version of the container vm documentation shows a yaml example using the v1 API. ...

How do I run more than 5 containers in a kubernetes Pod on GCE?

kubernetes,google-container-engine

I'm fairly sure there isn't a hard cap of 5 containers per pod, so there's likely some other reason why the scheduler can't find a node to run your pod on. You should be able find a message saying why the pod is still pending by running kubectl describe pod...

Run Multiple Services on Port 80 in same Kubernetes Cluster on Google Container Engine

kubernetes,google-container-engine

As of today GKE relies on Kubernetes 0.4.x which allocates ports on every nodes for each services. With this configuration you can't have multiple services listening on port 80. Kubernetes 0.5.x introduced a new networking model, which map an separate IP for each services. So once GKE upgrade you will...

Allow Privileged Containers in Kubernetes on Google Container (GKE)

google-cloud-platform,kubernetes,google-container-engine

Running privileged containers (including the NFS server in that example) isn't currently possible in Google Container Engine. We are looking at ways to solve this (adding a flag when creating your cluster to allow privileged containers; making privileged containers part of admission control; etc). For now, if you need to...

LogSeverity on aggregated logs in Google Container Engine

google-container-engine,google-cloud-logging

Currently there's no way to do this with the default fluentd agents on each node. If you have suggestions on what the format(s) should be for a feature like this, we'd love your input! You can open an issue with your ideas here.

Setting up continuous deployment to Google Compute Engine running Kubernetes

google-container-engine

The apiserver running in your Container Engine cluster doesn't use Google's OAuth; it uses the cluster authentication instead. If you run $ gcloud alpha container clusters describe <cluster-name> Then you will get a username and password that can be used as http basic auth credentials to access the cluster's apiserver...

gcloud docker pull fails with Untar exit status 2 unexpected fault address

docker,gcloud,google-container-engine,google-container-registry

I'm baffled too, this looks like Docker dying trying to untar the blob, and I haven't seen that before. Would you mind starting a thread with [email protected], as this may take a little debugging, and email will be a bit easier for the back-and-forth. We can update this with what...

kubectl is not installed on GCE by default

google-compute-engine,google-container-engine

If you have run gcloud components update that will install the kubectl binary on your system, it just won't be in your path. It will be located in the cloud-sdk install directory. You can add it to your path manually by running export PATH=$PATH:/usr/local/share/google/google-cloud-sdk/bin/ or you can create a symlink...

Is a container service accessible via the cluster master?

google-container-engine

The doc is wrong, it should say nodes not master.

How to connect to Google Cloud SQL from a GCE pod?

google-cloud-sql,google-container-engine

It may not be the best answer, but you could always set up a DNS name for it. I don't know whether there's any built-in way to use the name instead of the IP. App Engine can do special nice things for you because it runs your code in a...

What characters are allowed in kubernetes port and container names?

kubernetes,google-container-engine

Container names and port names must conform to the RFC 1123 definition of a DNS label. Names must be no longer than 63 characters, must start and end with a lowercase letter or number, and may contain lowercase letters, numbers, and hyphens. Expressed as a regular expression: [a-z0-9]([-a-z0-9]*[a-z0-9])? Here's the...

what are the differences between Google compute engine and Google container engine?

google-compute-engine,google-container-engine

Google Compute Engine It is based on Virtual Machine. Google Container Engine It is based on Docker. Compute engine will be easy as working on linux machine but for container you need to know how docker works and there are some use cases for docker. Note: Google Container Engine is...

docker run cannot find name flag argument

ssh,docker,google-compute-engine,google-container-engine

I guess you wanted to do: sudo docker run -d -p 8787:8787 --name samplename user/laatste You forgot to specify command (run) here....

How do you update a container in a container-vm after its image changed in Google Container Engine?

google-cloud-platform,google-container-engine,google-container-registry

The container VM is only part of the full Kubernetes/Container Engine infrastructure. Container VM doesn't support the complete Kubernetes API, the kubecfg.sh example that I did in the I/O demo uses the full Kubernetes API. There's more information about using full container engine here: https://cloud.google.com/container-engine/ And a rolling update example...