Advertisement
Guest User

Example pod with two container

a guest
Apr 15th, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.27 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4.   name: nginx-and-curl
  5.   namespace: default
  6.   labels:
  7.     app: nginx
  8. spec:
  9.   containers:
  10.   - name: nginx
  11.     image: nginx
  12.   - name: curl
  13.     image: rancher/curl
  14.     command:
  15.    - "/bin/sh"
  16.     args:
  17.    - "-c"
  18.     - "sleep 3600"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement