Complete Kubernetes Tutorial By School Of Devops Site

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml kubectl top nodes kubectl top pods

apiVersion: v1 kind: PersistentVolume metadata: name: pv-local spec: capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: /data/pv

apiVersion: v1 kind: PersistentVolumeClaim metadata: name: app-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi Complete Kubernetes Tutorial by School of Devops

apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: web-ingress spec: rules: - host: myapp.example.com http: paths: - path: / pathType: Prefix backend: service: name: web-service port: number: 80 kubectl apply -f ingress.yaml # Add to /etc/hosts: <minikube_ip> myapp.example.com Install Helm:

volumes: - name: storage persistentVolumeClaim: claimName: app-pvc Install NGINX Ingress: kubectl apply -f https://github

Copy the content above → Paste into Microsoft Word or Google Docs → File → Download as PDF.

# Install Minikube curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube minikube start --driver=docker Verify kubectl cluster-info kubectl get nodes Complete Kubernetes Tutorial by School of Devops

kubectl create secret generic db-secret --from-literal=password=supersecret env: - name: DB_PASSWORD valueFrom: secretKeyRef: name: db-secret key: password PersistentVolume (cluster storage):