실습 2탄 = 9/11
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
확인
https://brunch.co.kr/@topasvga/1882
https://brunch.co.kr/@topasvga/1679
https://brunch.co.kr/@topasvga/1701