Tag: kubernetes

How do pods in Google Container Engine talk/link to each other

I fiddle around with this example: https://cloud.google.com/container-engine/docs/tutorials/persistent-disk/ My modifications: – I’m using my own WordPress image [x] Works Service starts (it needed more CPU 0.8 instead of 0.5, but now it works) I want to use mariadb instead of mysql [ ] Fails! I can’t figure out how two pods link together!!!! ~5h + still […]

Kubernetes cluster nodes become unresponsive

I have created two different clusters on Azure and I am facing different problems on both the clusters. 1) After running for some time (7-8 hours) node becomes unresponsive. I checked log on the node and found below error. Which I am expecting is the root cause for becoming the node responsive: May 06 22:00:01 […]

How to handle web application static resources wich browser-cache in kubernetes?

We are trying to migrate or frontend apps to kubernetes. But when doing a rolling update there is a possibility that the users get 404 due to cacheing with unique sha1 hashes in the URI. Example: Simplified directory structure after build #1 /index.html /static/147964a6b54c/app.js /static/147964a6b54c/style.css Simplified directory structure after build #2 /index.html /static/978b4ccd1dbb/app.js /static/978b4ccd1dbb/style.css The […]

Possibility of using gluster volume in k8s if glusterfs client package on container

Kubernetes supports several types of Volumes including GlusterFS. Also GlusterFS can be Persistent Volumes in k8s. https://github.com/kubernetes/kubernetes/tree/release-1.2/examples/glusterfs/ For using glusterfs volumes in k8s, one of prerequisites is “Install Glusterfs client package on the Kubernetes nodes”. But if it is expect that everything shall be in containers. Is that possible that put gluster client in container […]

Kubernetes can't start due to too many open files in system

I am trying create a bunch of pods, services and deployment using Kubernetes, but keep hitting the following errors when I run the kubectl describe command. for “POD” with RunContainerError: “runContainer: API error (500): Cannot start container bbdb58770a848733bf7130b1b230d809fcec3062b2b16748c5e4a8b12cc0533a: [8] System error: too many open files in system\n” I have already terminated all pods and try […]

Failed to setup Kubernetes cluster on GCE

I’m trying to setup my first K8S cluster on GCE. I’ve authenticated myself using $ gcloud auth login I could list my GCE projects with $ gcloud projects list but, when I ran ./cluster/kube-up.sh, an error is shown: Zone: us-central1-b Creating gs://kubernetes-staging-cc97b1457f Creating gs://kubernetes-staging-cc97b1457f/… Your “Oauth 2.0 User Account” credentials are invalid. Please run $ […]

Cannot set up Kubernetes local cluster via Docker

I followed http://kubernetes.io/docs/getting-started-guides/docker/. Here are the commands I literally run: export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt) export ARCH=amd64 docker run -d \ –volume=/:/rootfs:ro \ –volume=/sys:/sys:rw \ –volume=/var/lib/docker/:/var/lib/docker:rw \ –volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ –volume=/var/run:/var/run:rw \ –net=host \ –pid=host \ –privileged \ gcr.io/google_containers/hyperkube-${ARCH}:${K8S_VERSION} \ /hyperkube kubelet \ –containerized \ –hostname-override=127.0.0.1 \ –api-servers=http://localhost:8080 \ –config=/etc/kubernetes/manifests \ –cluster-dns=10.0.0.10 \ –cluster-domain=cluster.local \ –allow-privileged –v=2 […]

Issue on deploying single cartridge app on Stratos

I have added the kubernetes cluster to Stratos. when I deployed a single cartridge app as per link below. See the screenshot attached, the PHP application is deployed without any IP to access. How can I do this properly? Please assist me. http://blog.lasindu.com/2015/08/getting-started-with-apache-stratos-410.html See the screen shot here

Return 400 when i use kubernetes Deployment rollback API

Sorry, maybe this is not a problem. Post data as below to url http://$ip:8080/apis/extensions/v1beta1/namespaces/default/deployments/deployment-1/rollback {“kind”:”Deployment”,”apiVersion”:”extensions\/v1beta1″,”name”:”deployment-1″,”updatedAnnotations”:”1111″,”rollbackTo”:{“revision”:0}} return error: {“kind”:”Status”,”apiVersion”:”v1″,”metadata”:{},”status”:”Failure”,”message”:”Deployment in version \”v1beta1\” cannot be handled as a DeploymentRollback: converting (v1beta1.Deployment) to (extensions.DeploymentRollback): UpdatedAnnotations not present in src”,”reason”:”BadRequest”,”code”:400} Is there anything wrong with my post data? Another question: If a Deployment has two pods, there’re two container […]

how to add localhost port to docker container

Currently container port config looks as follows: “Ports”: { “8080/tcp”: [ { “HostIp”: “0.0.0.0”, “HostPort”: “58080” } ] }, I want to add another port for the container, and keep the running environment for lookup operation problems. Whether there is a way to solve this problem´╝č

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.