{"id":18457969,"url":"https://github.com/alokkusingh/raspberrypi-kubernetes","last_synced_at":"2026-05-05T17:32:33.087Z","repository":{"id":95088484,"uuid":"400961983","full_name":"alokkusingh/RaspberryPi-Kubernetes","owner":"alokkusingh","description":"Kubernetes cluster setup on Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-09-22T01:42:30.000Z","size":172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T15:31:13.186Z","etag":null,"topics":["arm64","docker","kafka","kubernetes","kubernetes-cluster","kubernetes-dashboard","microk8s","raspberry-pi","ubuntu","zookeeper"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alokkusingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-29T05:49:48.000Z","updated_at":"2024-09-22T01:42:33.000Z","dependencies_parsed_at":"2024-12-25T05:41:02.002Z","dependency_job_id":"114f2945-40d9-483d-9f3f-60d9b67f324f","html_url":"https://github.com/alokkusingh/RaspberryPi-Kubernetes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alokkusingh/RaspberryPi-Kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2FRaspberryPi-Kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2FRaspberryPi-Kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2FRaspberryPi-Kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2FRaspberryPi-Kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokkusingh","download_url":"https://codeload.github.com/alokkusingh/RaspberryPi-Kubernetes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2FRaspberryPi-Kubernetes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arm64","docker","kafka","kubernetes","kubernetes-cluster","kubernetes-dashboard","microk8s","raspberry-pi","ubuntu","zookeeper"],"created_at":"2024-11-06T08:16:16.884Z","updated_at":"2026-05-05T17:32:33.064Z","avatar_url":"https://github.com/alokkusingh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# RaspberryPi-Kubernetes\nKubernetes cluster setup on Raspberry Pi 4B\n\n## Raspberry Pi Information\n| Item | Information |\n| :---: | :---: |\n| Number of Pi Server | 2 |\n| Pi1 Hostname | jgte - static IP assigned by router (192.168.0.200) |\n| Pi2 Hostname | khbr - static IP assigned by router (192.168.0.201) |\n| CPU Architecture | ARM64 (not AMD64) |\n| Processor | 1.5GHz quad-core processors |\n| RAM | 8GB |\n| Disk | SanDisk MicroSD 32GB |\n| OS | Linux jgte 5.4.0-1041-raspi #45-Ubuntu SMP PREEMPT Thu Jul 15 01:17:56 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux |\n\n## Table of contents\n\u003c!-- TOC --\u003e\n* [RaspberryPi-Kubernetes](#raspberrypi-kubernetes)\n  * [Raspberry Pi Information](#raspberry-pi-information)\n  * [Table of contents](#table-of-contents)\n  * [Raspberry Pi Setup](#raspberry-pi-setup)\n    * [Prepare Boot Card](#prepare-boot-card)\n  * [Dev OS update](#dev-os-update)\n    * [Add host entry](#add-host-entry)\n  * [OS Setup](#os-setup)\n    * [First Time Login](#first-time-login)\n    * [Enable Ethernet interface with Static IP](#enable-ethernet-interface-with-static-ip)\n    * [Enable Wifi interface with Static IP](#enable-wifi-interface-with-static-ip)\n    * [Set Hostname](#set-hostname)\n    * [Add User/Group](#add-usergroup)\n    * [Add user to sudor group](#add-user-to-sudor-group)\n    * [Create Password-less SSH Login](#create-password-less-ssh-login)\n    * [Install Net Tools](#install-net-tools)\n    * [Install Snap Package Manager](#install-snap-package-manager)\n    * [OS Configs](#os-configs)\n  * [Docker](#docker)\n    * [Install Docker Daemon](#install-docker-daemon)\n    * [Add user in group](#add-user-in-group)\n    * [Update Config](#update-config)\n  * [Microk8s](#microk8s)\n    * [Preparation](#preparation)\n    * [Installation](#installation)\n    * [Add user in group](#add-user-in-group-1)\n    * [Setup](#setup)\n      * [Create `kubectl` alias](#create-kubectl-alias)\n      * [Start Microk8s](#start-microk8s)\n      * [Enable DNS](#enable-dns)\n      * [Enable Ingress](#enable-ingress)\n      * [Enable RBAC](#enable-rbac)\n    * [Create Remote User - `alok`](#create-remote-user---alok)\n      * [Create CSR for user `alok` and copy to Kubernetes master node](#create-csr-for-user-alok-and-copy-to-kubernetes-master-node)\n      * [Sign User CSR on master node](#sign-user-csr-on-master-node)\n      * [Copy Signed User Certificate to local server](#copy-signed-user-certificate-to-local-server)\n      * [Copy CA Certificate to local server](#copy-ca-certificate-to-local-server)\n      * [Create User Credentials - `alok`](#create-user-credentials---alok)\n      * [Create Cluster - `home-cluster`](#create-cluster---home-cluster)\n      * [Bind User `alok` Context to Cluster `home-cluster` - `alok-home`](#bind-user-alok-context-to-cluster-home-cluster---alok-home)\n      * [Use the context - `alok-home`](#use-the-context---alok-home)\n    * [Setup Worker Node (not control plane HA)](#setup-worker-node-not-control-plane-ha)\n      * [Prerequisites](#prerequisites)\n      * [Join as worker node](#join-as-worker-node)\n      * [Leave cluster](#leave-cluster)\n      * [Extra](#extra)\n      * [Test command](#test-command)\n  * [Git](#git)\n    * [Configure Git](#configure-git)\n    * [Micro8s operation commands](#micro8s-operation-commands)\n  * [Kubernetes Setup](#kubernetes-setup)\n    * [Node Cluster Setup](#node-cluster-setup)\n    * [Setup Deployments - Kafka Cluster Setup](#setup-deployments---kafka-cluster-setup)\n      * [Create Namespaces](#create-namespaces)\n      * [Create Netwrok policy](#create-netwrok-policy)\n      * [Create Zookeeper - Pod/Deployment/Service](#create-zookeeper---poddeploymentservice)\n\n        * [In case want to delete](#in-case-want-to-delete)\n      * [Create Kafka Broker - Pod/Deployment/Service](#create-kafka-broker---poddeploymentservice)\n\n        * [In case want to delete](#in-case-want-to-delete-1)\n      * [Setup Kubernetes Dashboard](#setup-kubernetes-dashboard)\n\n        * [Change service type to LoadBalancer to access the dashboard externally](#change-service-type-to-loadbalancer-to-access-the-dashboard-externally)\n        * [Work arround for configuring Netwrok Load Balancing](#work-arround-for-configuring-netwrok-load-balancing)\n          * [Hard code the Node IPs - as below](#hard-code-the-node-ips---as-below)\n          * [Use one of the LoadBalancer implemented to olve this burpose. One of them is MetaLib.](#use-one-of-the-loadbalancer-implemented-to-olve-this-burpose-one-of-them-is-metalib)\n        * [Crete Service Account for Dashboard Login](#crete-service-account-for-dashboard-login)\n        * [Assign Role to Service Account](#assign-role-to-service-account)\n        * [Get Dashboard Login Admin Credential](#get-dashboard-login-admin-credential)\n\n  * [Misc Commands](#misc-commands)\n\n\n\n\n\n    * [](#)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    * [](#-1)\n\n\n\n\n\n\n    * [](#-2)\n\n\n\n\u003c!-- TOC --\u003e\n\n## Raspberry Pi Setup\n### Prepare Boot Card\nUbuntu Server Boot setup\n1. Choose Pi Version/OS/Storage\n2. EDIT SETTINGS\n   1. GENERAL \n      1. Set wireless LAN setting\n      2. Set locals setting\n      3. Enable SSH and User: aloksingh\n```\nhttps://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#2-prepare-the-sd-card\n```\n---\n## Dev OS update\n### Add host entry\nAdd below entry in `/etc/hosts`\n````\n192.168.1.200   jgte kubernetes\n192.168.1.201   khbr \n````\n```shell\nvim /etc/hosts\n```\n---\n## OS Setup\n### First Time Login\nxxx to be replaces by looking at the dynamic IP allocated for the Iefi interface\n```shell\nssh aloksingh@192.168.1.xxx\n```\n### Enable Ethernet interface with Static IP\nAdd below config in `/etc/netplan/50-cloud-init.yaml` to configure static IP for eth interface. You may leave Wifi config as is.\n```shell\nnetwork:\n    version: 2\n    renderer: networkd\n    ethernets:\n      eth0:\n        dhcp4: no\n        addresses:\n          - 192.168.1.200/24\n        nameservers:\n          addresses: [8.8.8.8,8.8.8.4]\n        routes:\n          - to: default\n            via: 192.168.1.1\n```\n### Enable Wifi interface with Static IP\nAdd below config in `/etc/netplan/50-cloud-init.yaml` to configure static IP for wifi interface.\n```shell\nnetwork:\n    version: 2\n    wifis:\n        renderer: networkd\n        wlan0:\n            access-points:\n                Alok_5GH:\n                    password: b885a9eea2d5fcfa6672ebca7bc92efcd64a2f5e51773f88c0fefd97b15682ea\n            dhcp4: false\n            addresses:\n              - 192.168.1.201/24\n            nameservers:\n              addresses: [8.8.8.8,8.8.8.4]\n            routes:\n              - to: default\n                via: 192.168.1.1\n```\n```shell\nsudo netplan apply\n```\n### Set Hostname\n```shell\nssh aloksingh@jgte sudo -S hostnamectl set-hostname jgte \n```\n### Add User/Group\n```shell\nssh aloksingh@jgte sudo -S groupadd -g 600 singh\n```\n```shell\nssh aloksingh@jgte sudo -S useradd -u 601 -g 600 -s /usr/bin/bash alok\n```\n```shell\nssh aloksingh@jgte sudo -S mkdir /home/alok\n```\n```shell\nssh aloksingh@jgte sudo -S chown -R alok:singh /home/alok/\n```\n```shell\nssh aloksingh@jgte sudo -S passwd alok\n```\n---\n### Add user to sudor group\n```shell\nssh aloksingh@jgte sudo -S usermod -aG sudo alok \n```\n---\n### Create Password-less SSH Login\n```shell\nssh-keygen\n```\nNote: Skip keygen if you want to reuse the key pair\n```shell\ncat ~/.ssh/id_rsa.pub | ssh alok@jgte \"mkdir -p ~/.ssh \u0026\u0026 cat \u003e\u003e  ~/.ssh/authorized_keys\"\n```\n---\n### Install Net Tools\n```shell\nssh alok@jgte sudo -S apt install net-tools\n```\n---\n### Install Snap Package Manager\n```shell\nssh alok@jgte sudo -S apt install snapd\n```\n---\n### OS Configs\nEnable IP forward\n````\nnet.ipv4.ip_forward=1\n````\n```shell\nssh alok@jgte sudo -S vim /etc/sysctl.conf\n```\nSet Timezone\n```shell\nssh alok@jgte sudo timedatectl set-timezone Asia/Kolkata\n```\n---\n## Docker\n### Install Docker Daemon\n```shell\nssh alok@jgte curl -fsSL https://get.docker.com -o get-docker.sh\n```\n```shell\nssh alok@jgte sh get-docker.sh\n```\n### Add user in group\n```shell\nssh alok@jgte sudo -S groupadd docker\n```\n```shell\nssh alok@jgte sudo -S usermod -a -G docker alok\n```\n### Update Config\nAdd below in `/etc/docker/daemon.json`\n````\n{\n    \"exec-opts\": [\"native, cgroupdriver=systemd\"],\n    \"log-driver\": \"json-file\",\n     \"log-opts\": {\n        \"max-size\": \"100m\"\n     },\n     \"storage-driver\": \"overlay2\"\n}\n````\n```shell\nssh alok@jgte sudo nano /etc/docker/daemon.json\n```\n---\n## Microk8s\n### Preparation\nAdd below line in file `/boot/firmware/cmdline.txt` (add in the same line from start)\n````\ncgroup_enable=memory cgroup_memory=1\n````\n```shell\nssh alok@jgte sudo -S nano /boot/firmware/cmdline.txt\n```\n---\n### Installation\n```shell\nssh alok@jgte sudo -S snap install microk8s --channel=1.25/stable --classic\n```\n### Add user in group\nBy adding user in microk8s group, user will have full access to the cluster \n```shell\nssh alok@jgte sudo -S usermod -a -G microk8s alok\n```\n```shell\nssh alok@jgte sudo -S chown -f -R alok ~/.kube\n```\n---\n### Setup\n#### Create `kubectl` alias\n```shell\nssh alok@jgte sudo -S snap alias microk8s.kubectl kubectl\n```\n---\n#### Start Microk8s\n```shell\nssh alok@jgte -S microk8s.start\n```\n---\n#### Enable DNS\n```shell\nssh alok@jgte -S microk8s enable dns\n```\n-----\n#### Enable Ingress\nEnable Nginx Ingress Controller. This will deploy a daemonset nginx-ingress-microk8s-controller.\n```shell\nssh alok@jgte -S microk8s enable ingress\n```\n-----\n#### Enable RBAC\n```shell\nssh alok@jgte microk8s enable rbac\n```\n---\n### Create Remote User - `alok`\n#### Create CSR for user `alok` and copy to Kubernetes master node\n```shell\ncd ~/cert/k8s\nopenssl genrsa -out alok.key 2048\nopenssl req -new -key alok.key -out alok-csr.pem -subj \"/CN=alok/O=home-stack/O=ingress\"\nssh alok@jgte mkdir cert\nscp alok-csr.pem alok@jgte:cert/\n```\n#### Sign User CSR on master node\n```shell\nssh alok@jgte \"openssl x509 -req -in ~/cert/alok-csr.pem -CA /var/snap/microk8s/current/certs/ca.crt -CAkey /var/snap/microk8s/current/certs/ca.key -CAcreateserial -out ~/cert/alok-crt.pem -days 365\"\n```\n#### Copy Signed User Certificate to local server\n```shell\nscp alok@jgte:cert/alok-crt.pem ~/cert/k8s\n```\n#### Copy CA Certificate to local server\n```shell\nscp alok@jgte:/var/snap/microk8s/current/certs/ca.crt ~/cert/k8s\n```\n#### Create User Credentials - `alok`\n```shell\nkubectl config set-credentials alok --client-certificate=/Users/aloksingh/cert/k8s/alok-crt.pem --client-key=/Users/aloksingh/cert/k8s/alok.key --embed-certs=true\n```\n---\n#### Create Cluster - `home-cluster`\n```shell\nkubectl config set-cluster home-cluster --server=https://kubernetes:16443 --certificate-authority=/Users/aloksingh/cert/k8s/ca.crt --embed-certs=true\n```\n#### Bind User `alok` Context to Cluster `home-cluster` - `alok-home`\n```shell\nkubectl config set-context alok-home --cluster=home-cluster --namespace=home-stack --user alok\n```\n#### Use the context - `alok-home`\n```shell\nkubectl config use-context alok-home\n```\n---\n### Setup Worker Node (not control plane HA)\n#### Prerequisites\n1. OS Setup\n2. User Setup\n3. Microk8s installation\n4. Start Microk8s\n   4.1 Do not enable DNS\n#### Join as worker node\nFrom master node\n```shell\nsudo microk8s.add-node\n```\nFrom worker node\n```shell\nmicrok8s join 192.168.1.200:25000/01fd669b595c650e243ac70c02eb3b54/d2301359744a --worker\n```\n#### Leave cluster\n```shell\nsudo microk8s.leave\n```\n#### Extra\nIf calico (CNI) not able to create IP routes you may have to upgrade kernal modules\n```shell\nsudo apt install linux-modules-extra-raspi\n```\n#### Test command\nNote: you will get permission denied as the role binding not done yet for the user `alok`\n```shell\nkubectl get nodes -o jsonpath='{}'\n```\nCheck if all pod ports (across nodes) are reachable\n```shell\nkubectl get pod --namespace home-stack -o json | jq .items[].status.podIP -r | fping\n```\n---\n## Git\n### Configure Git\n```shell\nssh alok@jgte \"git config --global user.email alok.ku.singh@gmail.com\"\n```\n```shell\nssh alok@jgte \"git config --global user.name alokkusingh\"\n```\n```shell\nssh alok@jgte \"ssh-keygen -t rsa -b 4096 -C alok.ku.singh@gmail.com\" \n```\nAdd the pub key to Github - SSH and GPG Key\n```shell\nssh alok@jgte \"mkdir data/git\"\n```\n```shell\nssh alok@jgte \"cd data/git; git clone git@github.com:alokkusingh/BankStatements.git\"\n```\n\n### Micro8s operation commands\n| Command Description | Command |\n| :---: | :--- |\n| Start Kubernetes services| ``microk8s.start`` |\n| The status of services| ``microk8s.inspect`` |\n| Stop all Kubernetes services| ``microk8s.stop`` |\n| Status of the cluster| ``microk8s.kubectl cluster-info`` |\n| Set up DNS microk8s enable dns| ``microk8s enable dns`` |\n\n\n## Kubernetes Setup\n### Node Cluster Setup\n| Command Description | Command |\n| :---: | :--- |\n| Add Master Node| ``sudo microk8s.add-node`` |\n| Add a Slave Node| ``microk8s join 192.168.0.200:25000/201afbfc67544696d01eed22a56d5030/4496beb91a5d`` |\n| Node List| ``kubectl get nodes`` |\n| Remove Node by Master| ``sudo microk8s remove-node \u003cnode name\u003e`` |\n| Leave Node by Slave| ``sudo microk8s.leave`` |\n\n\n### Setup Deployments - Kafka Cluster Setup\n#### Create Namespaces\n\tkubectl apply -f https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/namespace-kafka.yaml\n\n#### Create Netwrok policy\n\tkubectl apply -f https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/kafka-networkpolicy.yaml\n\n#### Create Zookeeper - Pod/Deployment/Service\n\tkubectl apply --validate=true --dry-run=client --filename=https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/zookeeper-cluster.yaml\n#####\n\tkubectl apply -f https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/zookeeper-cluster.yaml  --namespace=kafka-cluster\n\t\n##### In case want to delete\n\tkubectl delete -f https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/zookeeper-cluster.yaml  --namespace=kafka-cluster\n\n#### Create Kafka Broker - Pod/Deployment/Service\n\tkubectl apply --validate=true --dry-run=client --filename=https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/kafka-cluster.yaml \n#####\n\tkubectl apply -f https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/kafka-cluster.yaml  --namespace=kafka-cluster\n\n##### In case want to delete\n\tkubectl delete -f https://github.com/alokkusingh/kafka-experimental/blob/master/yaml/kafka-cluster.yaml  --namespace=kafka-cluster\n\n#### Setup Kubernetes Dashboard\n\tkubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml\n#####\n\tkubectl get svc -n kubernetes-dashboard\n##### Change service type to LoadBalancer to access the dashboard externally\n\tkubectl edit svc -n kubernetes-dashboard kubernetes-dashboard\n\n\t\tspec:\n\t\t  type: LoadBalancer\t# this has to be changed to LoadBalancer to access the dashboard externally \n\n##### Work arround for configuring Netwrok Load Balancing\nKubernetes does not offer an implementation of network load balancers (Services of type LoadBalancer) for bare-metal clusters. If you’re not running Kubernetes on a supported IaaS platform (GCP, AWS, Azure…), LoadBalancers will remain in the “pending” state indefinitely when created.\n\nBare-metal cluster operators are left with two lesser tools to bring user traffic into their clusters, “NodePort” and “externalIPs” services.\n\nFor LoadBalancer service type we left with 2 choices:\n###### Hard code the Node IPs - as below\n\tkubectl edit svc -n kubernetes-dashboard kubernetes-dashboard\n\n\t\tspec:\n\t\t  type: LoadBalancer\t# this has to be changed to LoadBalancer to access the dashboard externally \n\t\t  externalIPs:\n\t\t  - 192.168.0.200\t\t# this is needed because public IP cant be assigned automaic\n###### Use one of the LoadBalancer implemented to olve this burpose. One of them is MetaLib.\nMetalLB (https://metallb.universe.tf) aims to redress this imbalance by offering a network load balancer implementation that integrates with standard network equipment, so that external services on bare-metal clusters also “just work” as much as possible.\n\n##### Crete Service Account for Dashboard Login\n\tkubectl create serviceaccount dashboard -n kafka-cluster\n\t\n##### Assign Role to Service Account\n\tkubectl create clusterrolebinding dashboard-admin -n kafka-cluster --clusterrole=cluster-admin --serviceaccount=kafka-cluster:dashboard\n\n##### Get Dashboard Login Admin Credential\n\tkubectl get secrets -n kafka-cluster\n#####\n\tkubectl get secret dashboard-token-bspqw -n kafka-cluster -o jsonpath=\"{.data.token}\" | base64 --decode\n\nhttps://jgte\n\n![alt text](https://github.com/alokkusingh/RaspberryPi-Kubernetes/blob/master/media/k-dbd-rs.png?raw=true \"Kubernetes Dashboard\")\n\n\n## Misc Commands\nhttps://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#port-forward\n\n\tkubectl api-resources\n###\n\tkubectl explain pods\n###\n\tkubectl describe secret\n###\n\tsudo microk8s inspect\n###\n\tkubectl get all --namespace=kafka-cluster\n###\n\tkubectl get namespaces\n###\t\n\tkubectl get networkpolicy --namespace=kafka-cluster\n###\n\tkubectl top node\n###\n\tkubectl top pod --namespace=kafka-cluster\n###\n\tkubectl apply --validate=true --dry-run=client --filename=yaml/zookeeper-cluster.yaml \n###\n\tkubectl apply -f yaml/zookeeper-cluster.yaml  --namespace=kafka-cluster\n###\n\tkubectl delete -f yaml/zookeeper-cluster.yaml  --namespace=kafka-cluster\n###\n\tkubectl get all --namespace=kafka-cluster\n###\n\tkubectl get events --namespace=kafka-cluster\n###\n\tkubectl describe pod pod/zookeeper-deployment-65487b964b-ls6cg\n###\n\tkubectl get pod/zookeeper-deployment-65487b964b-ls6cg -o yaml --namespace=kafka-cluster\n###\n\tkubectl logs pod/zookeeper-deployment-7549748b46-x65fp zookeeper --namespace=kafka-cluster\n###\n\tkubectl logs --previous pod/zookeeper-deployment-7549748b46-jvvqk zookeeper --namespace=kafka-cluster\n###\n\tkubectl describe pod/zookeeper-deployment-65cb748c5c-fv545 --namespace=kafka-cluster\n###\n\tkubectl exec -it pod/zookeeper-deployment-7549748b46-9n9kb bash --namespace=kafka-cluster\n\tapt-get update\n\tapt-get install iputils-ping\n\tapt-get install net-tools\n###\n\tkubectl apply --validate=true --dry-run=client --filename=yaml/kafka-cluster.yaml \n###\n\tkubectl apply -f yaml/kafka-cluster.yaml  --namespace=kafka-cluster\n###\n\tkubectl delete -f yaml/kafka-cluster.yaml  --namespace=kafka-cluster\n###\n\tkubectl logs pod/kafka-b8bdd7bc8-w2qq4 kafka --namespace=kafka-cluster\n###\n\tkubectl exec -it pod/kafka-deployment-86559574cc-jpxwq bash --namespace=kafka-cluster\n###\t\n\tapt-get update\n###\n\tkubectl cluster-info dump --namespace=kafka-cluster\n###\n\tkubectl apply --validate=true --dry-run=client --filename=yaml/nginx-cluster.yaml\n###\n\tkubectl apply -f yaml/nginx-cluster.yaml  --namespace=kafka-cluster\n###\n\tkubectl delete -f yaml/nginx-cluster.yaml --namespace=kafka-cluster\n###\n\tkubectl logs pod/nginx-deployment-6d9d878b78-tst2b nginx --namespace=kafka-cluster\n###\n\tkubectl exec -it pod/nginx-6d9d878b78-kqlfb bash --namespace=kafka-cluster\n###\t\n\tnc -vz zookeeper-service 2181 -w 10\n###\n\tkubectl get ep nginx-service --namespace=kafka-cluster\n###\n\tkubectl describe svc nginx-service --namespace=kafka-cluster\n###\n\tkubectl get pods --show-labels --namespace=kafka-cluster\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fraspberrypi-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokkusingh%2Fraspberrypi-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fraspberrypi-kubernetes/lists"}