|
| 1 | +# ☁️ Phase 8 — Cloud & Orchestration |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +## 🖥️ Checkpoint 27 — Local Kubernetes Setup |
| 6 | + |
| 7 | +### 🎯 Objective |
| 8 | + |
| 9 | +Set up a local Kubernetes environment for development and experimentation. |
| 10 | + |
| 11 | +### ✅ Topics Covered |
| 12 | + |
| 13 | +- [x] Install kubectl |
| 14 | +- [x] Install Kind |
| 15 | +- [x] Create your first cluster |
| 16 | + |
| 17 | +--- |
| 18 | + |
| 19 | +### 🛠️ Tools Used |
| 20 | + |
| 21 | +#### kubectl |
| 22 | + |
| 23 | +The Kubernetes command-line tool used to interact with clusters. |
| 24 | + |
| 25 | +```bash |
| 26 | +kubectl version --client |
| 27 | +``` |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +#### Kind |
| 32 | + |
| 33 | +Kind (Kubernetes in Docker) allows you to create local Kubernetes clusters using Docker containers. |
| 34 | + |
| 35 | +```bash |
| 36 | +kind create cluster --name devops-lab |
| 37 | +``` |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +### 🔍 Verify the Cluster |
| 42 | + |
| 43 | +Check cluster information: |
| 44 | + |
| 45 | +```bash |
| 46 | +kubectl cluster-info |
| 47 | +``` |
| 48 | + |
| 49 | +Expected output: |
| 50 | + |
| 51 | +```text |
| 52 | +Kubernetes control plane is running |
| 53 | +CoreDNS is running |
| 54 | +``` |
| 55 | + |
| 56 | +--- |
| 57 | + |
| 58 | +List all system pods: |
| 59 | + |
| 60 | +```bash |
| 61 | +kubectl get pods --all-namespaces |
| 62 | +``` |
| 63 | + |
| 64 | +Example output: |
| 65 | + |
| 66 | +```text |
| 67 | +kube-apiserver |
| 68 | +etcd |
| 69 | +coredns |
| 70 | +kube-scheduler |
| 71 | +kube-controller-manager |
| 72 | +kube-proxy |
| 73 | +``` |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +### 🧠 Architecture Overview |
| 78 | + |
| 79 | +```text |
| 80 | +Laptop (Ubuntu) |
| 81 | + │ |
| 82 | + ▼ |
| 83 | +Docker Engine |
| 84 | + │ |
| 85 | + ▼ |
| 86 | +Kind Cluster Container |
| 87 | + │ |
| 88 | + ▼ |
| 89 | +Kubernetes Control Plane |
| 90 | + │ |
| 91 | + ▼ |
| 92 | +Pods and Applications |
| 93 | +``` |
| 94 | + |
| 95 | +--- |
| 96 | + |
| 97 | +### 🎉 Milestone Achieved |
| 98 | + |
| 99 | +At this point, the local Kubernetes cluster is running successfully. |
| 100 | + |
| 101 | +You can now: |
| 102 | + |
| 103 | +- Deploy Pods |
| 104 | +- Scale applications |
| 105 | +- Expose services |
| 106 | +- Manage configurations |
| 107 | +- Explore Kubernetes networking |
| 108 | + |
| 109 | +The next step is learning how Pods work inside the cluster. |
| 110 | + |
| 111 | +## 🖥️ Checkpoint 27 — Local Kubernetes Setup |
| 112 | + |
| 113 | +### 🎯 Objective |
| 114 | + |
| 115 | +Set up a local Kubernetes environment for development and experimentation. |
| 116 | + |
| 117 | +### ✅ Topics Covered |
| 118 | + |
| 119 | +- [x] Install kubectl |
| 120 | +- [x] Install Kind |
| 121 | +- [x] Create your first cluster |
| 122 | + |
| 123 | +--- |
| 124 | + |
| 125 | +### 🛠️ Tools Used |
| 126 | + |
| 127 | +#### kubectl |
| 128 | + |
| 129 | +The Kubernetes command-line tool used to interact with clusters. |
| 130 | + |
| 131 | +```bash |
| 132 | +kubectl version --client |
| 133 | +``` |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +#### Kind |
| 138 | + |
| 139 | +Kind (Kubernetes in Docker) allows you to create local Kubernetes clusters using Docker containers. |
| 140 | + |
| 141 | +```bash |
| 142 | +kind create cluster --name devops-lab |
| 143 | +``` |
| 144 | + |
| 145 | +--- |
| 146 | + |
| 147 | +### 🔍 Verify the Cluster |
| 148 | + |
| 149 | +Check cluster information: |
| 150 | + |
| 151 | +```bash |
| 152 | +kubectl cluster-info |
| 153 | +``` |
| 154 | + |
| 155 | +Expected output: |
| 156 | + |
| 157 | +```text |
| 158 | +Kubernetes control plane is running |
| 159 | +CoreDNS is running |
| 160 | +``` |
| 161 | + |
| 162 | +--- |
| 163 | + |
| 164 | +List all system pods: |
| 165 | + |
| 166 | +```bash |
| 167 | +kubectl get pods --all-namespaces |
| 168 | +``` |
| 169 | + |
| 170 | +Example output: |
| 171 | + |
| 172 | +```text |
| 173 | +kube-apiserver |
| 174 | +etcd |
| 175 | +coredns |
| 176 | +kube-scheduler |
| 177 | +kube-controller-manager |
| 178 | +kube-proxy |
| 179 | +``` |
| 180 | + |
| 181 | +--- |
| 182 | + |
| 183 | +### 🧠 Architecture Overview |
| 184 | + |
| 185 | +```text |
| 186 | +Laptop (Ubuntu) |
| 187 | + │ |
| 188 | + ▼ |
| 189 | +Docker Engine |
| 190 | + │ |
| 191 | + ▼ |
| 192 | +Kind Cluster Container |
| 193 | + │ |
| 194 | + ▼ |
| 195 | +Kubernetes Control Plane |
| 196 | + │ |
| 197 | + ▼ |
| 198 | +Pods and Applications |
| 199 | +``` |
| 200 | + |
| 201 | +--- |
| 202 | + |
| 203 | +### 🎉 Milestone Achieved |
| 204 | + |
| 205 | +At this point, the local Kubernetes cluster is running successfully. |
| 206 | + |
| 207 | +You can now: |
| 208 | + |
| 209 | +- Deploy Pods |
| 210 | +- Scale applications |
| 211 | +- Expose services |
| 212 | +- Manage configurations |
| 213 | +- Explore Kubernetes networking |
| 214 | + |
| 215 | +The next step is learning how Pods work inside the cluster. |
0 commit comments