CKA 하나의 파드에 여러개의 컨테이너 올리기

Lee Jinwook·2023년 3월 19일
0
vi multi-container.yaml

apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: multi-container
  name: multi-container
  namespace: edu18
spec:
  containers:
  - image: ghcr.io/shclub/nginx
    name: nginx
  - image: ghcr.io/shclub/redis
    name: redis
  - image: ghcr.io/shclub/memcached
    name: memcashed
    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Always
status: {}

kubectl create -f multi-container.yaml

kubectl get pod -n edu18

0개의 댓글