Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

전공공부

[K8S - CKA] Multi Container Pods 본문

Study/K8S

[K8S - CKA] Multi Container Pods

monitor 2023. 11. 12. 12:38

1. Multi Container Pods


Log Agent와 Server가 같이 Pair로 업로드 되는 경우가 필요 할 것이다.

 

함께 생성되고 함께 파괴가 된다는 생각으로 바라보는것이 좋을 것 같다.

 

Volume Sharing 등의 설정을 하지 않아도 되니 편하다.

 

Pod의 spec.containers 아래에 배열 형태로 나누어서 container 1,2...로 나누어서 배포하면된다.

 

apiVersion: v1
kind: Pod
metadata:
  name: cpu-demo-2
  namespace: cpu-example
spec:
  containers:
  - name: cpu-demo-ctr-2
    image: vish/stress
  - name: test
  	image: nginx