[쿠버네티스 워크로드] 레플리카셋 개요와 연습문제

hi·2023년 7월 31일
0

쿠버네티스

목록 보기
28/64
post-custom-banner
kubectl get rs
kubectl describe rs http-go-rs
kubectl describe rs http-go-rs
kubectl delete rs http-go-rs
kubectl scale rs rs-nginx --replicas=10
kubectl edit rs rs-nginx


nginx-rs.yaml

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: rs-nginx
spec:
  # modify replicas according to your case
  replicas: 3
  selector:
    matchLabels:
      app: rs-nginx
  template:
    metadata:
      labels:
        app: rs-nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports: 
        - containerPort: 80


post-custom-banner

0개의 댓글