brunch

You can make anything
by writing

C.S.Lewis

by Master Seo Jul 09. 2021

EKS 2탄-9. ArgoCD로 업데이트-9/11

실습 2탄 = 9/11

<1>  EKS-ArgoCD로 app 업데이트


1

터미널2

kubens default


watch -d kubectl get ns,deploy,svc,ep,rs,pod





2

업데이트 spec.replicas: 2에


ecsdemo-nodejs/kubernetes/deployment.yaml



cat << EOF > deployment.yaml

apiVersion: apps/v1

kind: Deployment

metadata:

  name: ecsdemo-nodejs

  labels:

    app: ecsdemo-nodejs

  namespace: default

spec:

  replicas: 2

  selector:

    matchLabels:

      app: ecsdemo-nodejs

  strategy:

    rollingUpdate:

      maxSurge: 25%

      maxUnavailable: 25%

    type: RollingUpdate

  template:

    metadata:

      labels:

        app: ecsdemo-nodejs

    spec:

      containers:

      - image: brentley/ecsdemo-nodejs:latest

        imagePullPolicy: Always

        name: ecsdemo-nodejs

        ports:

        - containerPort: 3000

          protocol: TCP

EOF



kubectl apply -f deployment.yaml



3

# ArgoCD UI에 접속

echo $ARGOCD_SERVER



# LB URL로 접속

admin

echo $ARGO_PWD.



4

refresh




5

확인




#  AWS EKS 실습 2탄


https://brunch.co.kr/@topasvga/1882



https://brunch.co.kr/@topasvga/1679



다음 과정


https://brunch.co.kr/@topasvga/1701




브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari