리셋 되지 말자

Python Pod 예시... 본문

Kubernetes

Python Pod 예시...

kyeongjun-dev 2023. 7. 7. 23:51
apiVersion: v1
kind: Pod
metadata:
 name: python
spec:
  containers:
  - name: python
    image: python:3.10-slim
    command:
    - "sleep"
    - "infinity"

 

kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
 name: mongodb-client-c
spec:
  containers:
  - name: mongodb
    image: mongo:6.0.6
    command:
    - "sleep"
    - "infinity"
  nodeSelector:
    topology.kubernetes.io/zone: ap-northeast-2c
EOF

 

kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
 name: python-client-c
spec:
  containers:
  - name: python
    image: python:3.10-slim
    command:
    - "sleep"
    - "infinity"
  nodeSelector:
    topology.kubernetes.io/zone: ap-northeast-2c
EOF

 

'Kubernetes' 카테고리의 다른 글

Weaviate  (0) 2024.04.06
Grafana, Tempo 모니터링 간단 예시 - springboot, mongodb  (1) 2024.01.02
awscli irsa 테스트  (0) 2023.12.27
[Trino] 설치 및 맛보기  (0) 2023.08.10
[Mongodb] mongodb scaling on kubernetes  (2) 2023.06.09
Comments