Home Kubernetes cluster in 15 minutes

Categories: Kubernetes
Description This guide will let you install Kubernetes 1.8 with RBAC enabled on so called “baremetal” along with Calico network plugin. Although there is nothing specific to baremetal, that’s what I will use to install it. This cluster can be then used for small projects, once exposed to the Internet. That’s excatly what I use it for :) Requirements Spare machine with Ubuntu installed and at least a few GB of RAM.

Read More →

Always set limits to containers running in your cluster

Categories: Kubernetes
History about a Prometheus eating up 20GB of RAM 2017-11-30 UPDATE As those few days have passed I have not had any problems with Kubernetes cluster being unresponsive. Therefore this article concludes a few weeks of investigation why machine could entirely freeze. Set limits to your pods so that they won't kill your node. The History WeaveWorks Cloud DaemonSet deploys by default Prometheus to the cluster. Prometheus scrapes metrics out of your cluster and stores them and creates time-series data out of them ( this might not be the accurate description of what Prometheus does, but it's good enough for what just hapened ).

Read More →

Baremetal Kubernetes on Ubuntu unresponsive

Categories: Kubernetes
EDIT 24-11-2017 The solution below did not help me fix freezing cluster. I have identified since then, though, another problem with the setup. Prometheus was eating up all memory of a machine. The link to the article: https://cwienczek.com/lesson-1-always-set-limits-to-containers-running-in-your-cluster/ Summary If you’ve: - installed Kubernetes on your baremetal machine - that machine is running Ubuntu - and your machine is suddenly unresponsive, then: Make sure you don’t have docker 1.

Read More →

Setting up secure helm chart repository on Azure Blob Storage

Categories: Kubernetes
Kubernetes helm repository supports only basic authentication at the time of writing this article. There is, though, another and perhaps simpler way as of helm 2.7.0. Using Azure Blob Storage you can easily make your helm repository private. Requirements Time: ~10 minutes Helm Package Manager 2.7.0-rc1 or later Microsoft Azure account, at least with permissions to create azure storage account Azure CLI, tested on 2.0.19 Darwin Helm chart that you can upload to the cloud Summary Create azure storage account in one of your resource groups Add blob storage container to Azure Storage Account and set access to private Go to Storage account -> Shared Access Signature and generate read-only credentials for helm users The url to your repository will be: https://[azure_storage_name].

Read More →

Multi-node kubernetes cluster on Vagrant in five minutes

Categories: Kubernetes
This is a guide for anyone that wants to setup multi-node kubernetes cluster on PC or laptop without significant amounts of time and money on kubernetes-the-hard-way ;) This is one of the fastest ways to have multi-node cluster up and running for learning purposes. It will use coreos and vagrant to spin up the cluster. Time required to finish the tutorial 5 minutes plus 30 minutes of waiting Final setup one master node one etcd (on separate node) 3 worker nodes Kubernetes 1.

Read More →

Reaching minikube from other devices

Categories: Kubernetes
I’ve recently had a problem with exposing my minikube to the outer world. The use case was to test the cluster from mobile device. Officially minikube supports “host-only” network interface. Fortunately, there is a way to access minikube cluster from external world, and it’s quite simple, but nowhere documented. There is one downside to this method: I had to use virtualbox driver for spinning up cluster as I still don’t know whether you can forward ports using xhyve.

Read More →