kamaok

test-image-cgamge

Sep 15th, 2021 (edited)
187
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat << EOF > nginx.yml
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5.   name: nginx
  6.   labels:
  7.     app: web
  8. spec:
  9.   containers:
  10.     - name: nginx
  11.       image: nginx:1.20
  12. EOF
  13.  
  14.  
  15. # kubectl apply -f  nginx.yml
  16. pod/nginx configured
  17.  
  18. # kubectl get pod | grep nginx
  19. nginx                                         1/1     Running   1          3m16s
  20.  
  21.  
  22. # kubectl describe pod nginx | grep Image:
  23.     Image:          nginx:1.20
  24.  
  25.  
  26. # cat << EOF > nginx.yml
  27. apiVersion: v1
  28. kind: Pod
  29. metadata:
  30.   name: nginx
  31.   labels:
  32.     app: web
  33. spec:
  34.   containers:
  35.     - name: nginx
  36.       image: nginx:1.21
  37. EOF
  38.  
  39.  
  40. # kubectl apply -f  nginx.yml
  41. pod/nginx configured
  42.  
  43. # kubectl get pod | grep nginx
  44. nginx                                         1/1     Running   1          3m43s
  45.  
  46.  
  47. # kubectl describe pod nginx | grep Image:
  48.     Image:          nginx:1.21
RAW Paste Data