실습 2탄 = 9/11
1
업데이트 spec.replicas: 2에
ecsdemo-nodejs/kubernetes/deployment.yaml
2
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
3
ArgoCD UI에 접속
echo $ARGOCD_SERVER
LB URL로 접속
admin
echo $ARGO_PWD.
4
refresh
5
확인
https://brunch.co.kr/@topasvga/1701
https://brunch.co.kr/@topasvga/1882
https://brunch.co.kr/@topasvga/1679
감사합니다.