Add new Node to k8s cluster with Bootstrap token
Use this technique to add new node to the cluster without providing any certificates and without having to restart the kube-apiserver
NOTE: There is an updated version of this blog here.
containers, programming, golang, hacks, kubernetes, productivity, books
Use this technique to add new node to the cluster without providing any certificates and without having to restart the kube-apiserver
NOTE: There is an updated version of this blog here.
Burnt by enabling PSPs on existing Kubernetes and wondering why everything still works
I enabled PodSecurityPolicy on a minikube cluster by appending PodSecurityPolicy
to the apiserver flag in minikube like this:
My experience with CKA exam preparation
I passed CKA exam with 92% marks on 19th October 2018.
Use this technique to add node to the cluster without providing any certificates
The setup here is created by following Kubernetes the Hard Way by Kelsey Hightower. So if you are following along in this then do all the setup till the step Bootstrapping the Kubernetes Worker Nodes. In this just don’t start the kubelet
, start other services like containerd
and kube-proxy
.
Step by step guide to add new node
To setup a multi-node Kubernetes cluster just run this script and you will have a cluster with 3 masters and 3 workers.
Kubeadm to install Single Node K8S with SELinux
Start a single node fedora machine, using whatever method but I have used this Vagrantfile to do it:
Kubernetes HostPath volume good way to nuke your Kubernetes Nodes
This post will demonstrate how Kubernetes HostPath
volumes can help you get access to the Kubernetes nodes. Atleast you can play with the filesystem of the node on which you pod is scheduled on. You can get access to other containers running on the host, certificates of the kubelet, etc.
Easy way to change namespace in Kubernetes
There is no easy way to change namespace in Kubernetes using kubectl
command line utility. But here are some commands that you can alias in your bashrc
file so that it’s just a single command that you can use to change the namespace in the Kubernetes cluster.
A guide to how would you download image from private container registry in minikube
I am doing Kubernetes native development using minikube. And for doing that I had to download a Container image that is available in internally hosted private container registry.
Extension to the Kelsey Hightower's tutorial on 'Standalone Kubelet'
I wanted to try out Standalone Kubelet Tutorial of Kelsey Hightower by myself but I could not follow it as it is, because it was firstly on GCE and secondly it uses CoreOS, but since I am very familiar to Fedora I thought of following that tutorial on it. To get a quick setup of a fresh Fedora machine use Vagrant. I have used Vagrantfile available here.