mkdir -p ~/web && cd web
kubectl config set-context --current --namespace web
# Starten Sie eine einzelne Instanz von Nginx
kubectl create deployment nginx --image=nginx
# Zeigen Sie die Dokumentation für Pod und SVC Manifeste an
kubectl explain pods.spec
kubectl explain svc.spec
kubectl explain deployment.spec
kubectl create deployment web \
  --image=bee42/whoami:2.2.0 \
  --dry-run=client \
  --output=yaml >deployment.yaml
cat deployment.yaml
kubectl apply -f deployment.yaml
kubectl get deploy
kubectl get pods
kubectl get rs
kubectl delete deploy web
cat deployment.yaml | kubectl apply -f -

kubectl scale deployment nginx --replicas 1
