Skip to content

Instantly share code, notes, and snippets.

@myechuri

myechuri/blog.md Secret

Created November 11, 2019 14:09
Show Gist options
  • Save myechuri/f16d1f219a46d4e29fe8980c219a0098 to your computer and use it in GitHub Desktop.
Save myechuri/f16d1f219a46d4e29fe8980c219a0098 to your computer and use it in GitHub Desktop.

Manage Nodeless Kubernetes clusters with Nirmata

Step 1: Create 1-worker Nodeless Kubernetes cluster

Follow instructions in this repo to create a {1 master, 1 worker} Nodeless Kubernetes cluster.

Log on to Kubernetes master, verify cluster is up.

https://gist.github.com/226ced56a2f20b32e87b9d948d73c370

Step 2: Import Nodeless cluster into Nirmata

Go to Nirmata Dashboard and initiate Create Cluster workflow.

alt text

Select Managing an existing Kubernetes Cluster option.

alt text

Fill in cluster Name and set Cloud Provider to Amazon Web Services.

alt text

Download nirmata-kube-controller.yaml.

alt text

Scp nirmata-kube-controller.yaml to a node with kubeconfig access to Nodeless cluster.

https://gist.github.com/f4abb1534f401594054518bedca8902f

Apply nirmata-kube-controller.yaml.

https://gist.github.com/81dcc49fb9e5dfcdefcd9b71f83903fd

Verify that Nirmata namespace components are up and running.

https://gist.github.com/ad6db87b2094e5c56d580dc251e95001

On Nirmata dashboard, click I have installed the Nirmata Kubernetes Cluster.

alt text

Your Nodeless k8s cluster is now fully managed by Nirmata!

alt text

Step 3: Deploy Nginx workload, manage via Nirmata dashboard

Deploy Nginx deployment with 3 replicas.

https://gist.github.com/680bc98b7b940572ebf5d4cc2741170e

All 3 replicas of Nginx will be deployed in a Nodeless fashion - just-in-time, right-sized, cost-effective compute will be started for each of the replicas, and the pods will be dispatched to the compute cells.

Nginx pods can be visualized through Nirmata dashboard.

alt text

alt text

Teardown

Follow teardown instructions from kubeadm repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment