Tag: kubernetes

Docker container cannot access network

All my containers cannot access internet if run without ‘–net=host’. Environment distro: Ubuntu 13.04 docker: 1.6.2 go: go1.4.2 ufw: DEFAULT_FORWARD_POLICY=”ACCEPT” 2375 port: 2375/tcp ALLOW Anywhere docker daemon: docker -d -H unix:///var/run/docker.sock –bip=172.17.42.1/16 -b docker0 docker0 interface: docker0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN Question I can append –net=host manually, but kubernetes always runs the […]

Networking and DNS in Kubernetes local cluster with Docker

I have downloaded Kubernetes binaries from release tag in Github. I placed the binaries in my path (i.e. kubectl) I followed this guide to start up a simple local cluster with Docker containers: http://kubernetes.io/v1.0/docs/getting-started-guides/docker.html Now I can contact Kubernetes API from 127.0.0.1:8080 and I got Nginx pod running and service exposed. I have a ‘docker0’ […]

Kubernetes rc sent args to container app

question: I have a cluster run by k8s,and I run a app by rc.yaml. My app need a args id(unique),setup id in rc.yaml. args: – -id – ip-172-31-31-205.ap-northeast-1.compute.internal-2 if I setup replicas=2,how to control the id is different.

Generating new (not renewed) SSL Certificates with “letsencrypt certonly” in non-interactive mode

The following command leads to a series of reasonable prompts for information such as company information, contact info, etc… I’d like to be able to run it but pass that information as either parameters or a config file but I can’t find out how from the docs (https://certbot.eff.org/docs/using.html#command-line-options). Any ideas? letsencrypt certonly \ –webroot -w […]

Unable to do port forwarding: socat not found. Kubernetes on Docker

I’m running a dev kubernetes cluster on Docker Machine with GCE as provider. Cluster was setup using this tutorial: https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md. Everything’s working fine except when I try to do port-forward. I get: E1104 00:58:23.210982 18552 portforward.go:310] An error occurred forwarding 650 -> 650: Error forwarding port 650 to pod pfsd-rc-7xrq1_default, uid : Unable to do […]

Docker-compose Kubernetes ENV properties interoperability

I’m building my staging environment using docker-compose, with application that was previously ran in Google Cloud using Kubernetes. My application was configured, using ENV properties provided inside Kubernetes container, and now after switching to docker-composite, I have different naming convention for linked services. I can think of few solutions, for my problem: Change my application, […]

Installation of Kubernetes-node fails with conflicting packages on CentOs 7

When i am trying to install kubernetes-node with the following command it fails with an error [abkari@condor network-scripts]$ sudo yum install docker kubernetes-node Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile base: centos.skarta.net epel: epel.besthosting.ua extras: ftp.crc.dk updates: centos.uib.no Resolving Dependencies –> Running transaction check —> Package docker.x86_64 0:1.8.2-10.el7.centos will be installed –> Processing […]

Customer params in kubectl when run docker

I want the command like follows: docker run -d –net=host How can I pass the –net=host params to the docker through kubectl.

Can Google Kubernetes run Apache Mesos frameworks on top of it?

I was wondering if Google Kubernetes is able to run Apache Mesos frameworks, such as Hadoop or Cassandra etc.., like applications running on top of it. If yes or no, please justify your answers. Thank you.

Cassandra – Kubernetes how to keep pod ip when restart

I’m using kubernetes 1.2 example to run 2 cassandra nodes for testing. https://github.com/kubernetes/kubernetes/blob/release-1.2/examples/cassandra/README.md I use daemonset to have one cassandra node by kubernetes node. Everything work fine till one cassandra node restart. IP address of the POD changes and nodetools status returns Node DOWN > kubectl exec -it cassandra-lnzhj — nodetool status fruition Datacenter: datacenter1 […]

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