Tag: kubernetes

Openshift : pods not being deleted

I have am using OpenShift 3, and have been trying to get Fabric8 setup. Things havent been going to well, so I decided to remove all services and pods. When I run oc delete all -l provider=fabric8 The cli output claims to have deleted a lot of pods, however, they are still showing in the […]

How to monitor Nodejs app running on Kubernetes

I simply do CMD [“node”, “/dist/app.js”] from my dockerfile to run my master process inside the container. Container is hosted in Kubernetes. When something goes wrong with the pod, kubernetes rc will spin up another one. However, if my master process crashes inside the pod–>container, will Kubernetes know about it? Wondering whats the best way […]

How to evaluate the CPU and Mem usage for speccific command/docker in linux?

I’m composing yaml file for scripts running in docker and orchestrated by kubernetes. Is there a way to evaluate the resource utilization for a specicific command or docker, or what’s the best practice to set the limit of cpu and mem for pods? Edit Most of these scripts will run in a short time, so […]

When should you create more than one docker container image instance with Kubernetes Replication Controller?

When using Kubernetes to manage your docker containers, particularly when using the replication controller, when should you increase an images running container instances to more than 1? I understand that Kubernetes can spawn as many container replicas as needed in the replication controller configuration file, but why spawn multiple running containers (for the same image) […]

Postgres with Kubernetes and persistentDisk

I’m getting started with Kubernates and having problems installing Postgres using Kubernetes with a GCE Persistent disk. I can successfully install Mysql using both the Kubernates walkthroughs and also the following guide: http://amygdala.github.io/kubernetes/2015/01/13/k8s1.html However, when I try to achieve a similar thing with postgres, it seems to fail when attaching to the disk or using […]

Running flask app with docker & kubernetes

The Flask docs say: While lightweight and easy to use, Flask’s built-in server is not suitable for production as it doesn’t scale well and by default serves only one request at a time. I’ll be running my flask app in a docker container under kubernetes. Am I right in thinking that the above advice isn’t […]

Inject code/files directly into a container in Kubernetes on Google Cloud Engine

How can I inject code/files directly into a container in Kubernetes on Google Cloud Engine, similar to the way that you do with Docker, e.g. docker run -d –name nginx -p 443:443 -v “/nginx.ssl.conf:/etc/nginx/conf.d/default.conf” Thanks

How to mount volume into the source code of the app?

I have kubernetes pod where I am mounting my app source code as git volume. I tried various setups for how to put the source code into the pod and git volume was the one I ended up with in the end. But now I have an issue with data. My app has a files […]

How do you remove the deploymentConfig, image streams, etc using Openshift OC?

After creating a new app using oc new-app location/nameofapp, many things are created: a deploymentConfig, an imagestream, a service, etc. I know you can run oc delete <label>. I would like to know how to delete all of these given the label.

Can't access Heapster's InfluxDB port 8083

I follow this guide to deploy my Kubernetes cluster and this guide to launch Heapster. However, when I open Granfa’s website UI, it always says “Dashboard init failed: Template variables could not be initialized: undefined”. Moreover, I can’t access InfluxDB via port 8083. Is there anything I missed? I’ve tried several versions of Kubernetes. I […]

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