Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 490 Bytes

01-pod-nginx.md

File metadata and controls

35 lines (29 loc) · 490 Bytes

Beispiel: Statischer Nginx Pod

Walkthrough

cd 
mkdir -p manifests
cd manifests
mkdir -p web
cd web
# vi nginx-static.yml 

apiVersion: v1
kind: Pod
metadata:
  name: nginx-static-web
  labels:
    webserver: nginx
spec:
  containers:
  - name: web
    image: nginx:1.25.1

kubectl apply -f nginx-static.yml 
kubectl describe pod nginx-static-web 
# Zeige die Konfiguration
kubectl get pod/nginx-static-web -o yaml
kubectl get pod/nginx-static-web -o wide