Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 467 Bytes

01-pod-nginx.md

File metadata and controls

35 lines (29 loc) · 467 Bytes

Example: static pod nginx

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

kubectl apply -f nginx-static.yml 
kubectl describe pod nginx-static-web 
# show config 
kubectl get pod/nginx-static-web -o yaml
kubectl get pod/nginx-static-web -o wide