ReplicaSet
- 간단 실습-
대시보드에서 레플리카셋 생성 (스펙 밑에 레플리카를 1로 지정했다)
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: replica1
spec:
replicas: 1
selector:
matchLabels:
type: web
template:
metadata:
name: pod
labels:
type: web
spec:
containers:
- name: container
image: mnstv/hello:8000
terminationGracePeriodSeconds: 0
'IT 매일매일' 카테고리의 다른 글
k8s Controller - Deployment? - RollingUpdate 방식 (0) | 2023.04.26 |
---|---|
k8s Controller - Deployment? -Recreate 방식 (0) | 2023.04.26 |
k8s Controller? (0) | 2023.04.26 |
k8s Service(LoadBalancer) (0) | 2023.04.25 |
k8s Servise? (Cluster IP) (0) | 2023.04.24 |