Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 592 Bytes

File metadata and controls

38 lines (33 loc) · 592 Bytes
kubectl config use-context cluster1-admin@cluster1
k run multi-pod --image nginx:alpine-slim --env type=alpha -o yaml --dry-run=client >14.yaml

# vim 14.yaml

apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: multi-pod
  name: multi-pod
spec:
  containers:
  - env:
    - name: type
      value: alpha
    image: nginx:alpine-slim
    name: alpha

  - env:
    - name: type
      value: beta
    image: busybox
    name: beta
    command: ["sleep","4800"]

    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Always
status: {}