> Restart the Machine you used in the previous Lab & Access it via putty as we do
ubuntu
sudo su
minikube status
minikube start
minikube status
ls
vi pod5.yml
# EXAMPLE OF LABELS
kind: Pod
apiVersion: v1
metadata:
name: delhipod
labels: # **[Declarative Method]**
env: development
class: pods
love: devops
spec:
containers:
- name: c00
image: ubuntu
command: ["/bin/bash", "-c", "while true; do echo Hello-Bhupinder; sleep 5 ; done"]
kubectl apply -f pod5.yml
→ Applies the configuration from “pod5.yml” to create or update a pod.
kubectl get pods
→ Lists all pods.