From 60acf1808add8e09a4969a1900ebdcb9f1b4f992 Mon Sep 17 00:00:00 2001 From: shclub Date: Thu, 22 Sep 2022 10:47:10 +0900 Subject: [PATCH] argocd namespace removed --- README.md | 5 ++++- argocd_hands_on.md | 28 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ba8c75d..ccedca3 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,10 @@ oc login https://api.211-34-231-81.nip.io:6443 -u shclub-admin -p <비밀번호> ``` - 계정 : ( 예: edu1-admin ) -- 비밀번호 : 사전 공지 +- 비밀번호 : 사전 공지 + + +OKD WEB Console : https://console-openshift-console.apps.211-34-231-82.nip.io/
diff --git a/argocd_hands_on.md b/argocd_hands_on.md index 0185149..bcf2420 100644 --- a/argocd_hands_on.md +++ b/argocd_hands_on.md @@ -162,7 +162,7 @@ spec: ``` ArgoCD에서 New App를 클릭하고 아래와 같이 설정하고 Create 한다. -namespace 는 rollout-demo로 자동 생성되게 설정한다. +namespace 는 본인의 namespace 로 설정합니다. @@ -174,7 +174,7 @@ namespace 는 rollout-demo로 자동 생성되게 설정한다. 아래 명령어를 사용하여 서비스의 NodePort를 확인한다. ```bash -root@jakelee:~# kubectl get all -n rollout-demo +root@jakelee:~# kubectl get all NAME READY STATUS RESTARTS AGE pod/rollout-bluegreen-5ffd47b8d4-zlkfl 1/1 Running 0 16s pod/rollout-bluegreen-5ffd47b8d4-rttxs 1/1 Running 0 16s @@ -209,7 +209,7 @@ Blue Green이 배포되었으니 확인하기 위해서 active와 preview 서비 ```bash -root@jakelee:~# kubectl get po -n rollout-demo +root@jakelee:~# kubectl get po NAME READY STATUS RESTARTS AGE rollout-bluegreen-5ffd47b8d4-zlkfl 1/1 Running 0 11m rollout-bluegreen-5ffd47b8d4-rttxs 1/1 Running 0 11m @@ -242,7 +242,7 @@ Blue/Green yaml 파일에서 autoPromotionEnabled 옵션을 false로 주었기 - 명령 모드 에서 진행하는 방법 ```bash #rollout 상태 확인 : STATUS는 Paused - root@jakelee:~# kubectl argo rollouts list rollout -n rollout-demo + root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE rollout-bluegreen BlueGreen Paused - - 2/4 2 2 2 ``` @@ -251,7 +251,7 @@ Blue/Green yaml 파일에서 autoPromotionEnabled 옵션을 false로 주었기 ```bash #rollout 상태 확인 후 승인 - root@jakelee:~# kubectl argo rollouts promote rollout-bluegreen -n rollout-demo + root@jakelee:~# kubectl argo rollouts promote rollout-bluegreen rollout 'rollout-bluegreen' promoted ``` @@ -259,7 +259,7 @@ rollout 상태 확인 ```bash #rollout 상태 확인 (healthy) -root@jakelee:~# kubectl argo rollouts list rollout -n rollout-demo +root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE rollout-bluegreen BlueGreen Healthy - - 2/4 2 2 2 ``` @@ -268,13 +268,13 @@ promote 과정을 진행하면 rollouts의 상태가 healthy로 변하고 blue ```bash #pod 상태 확인 (healthy) -root@jakelee:~# kubectl get po -n rollout-demo +root@jakelee:~# kubectl get po NAME READY STATUS RESTARTS AGE rollout-bluegreen-75695867f-mnblz 1/1 Running 0 10m rollout-bluegreen-75695867f-rxw9k 1/1 Running 0 10m rollout-bluegreen-5ffd47b8d4-zlkfl 1/1 Terminating 0 20m rollout-bluegreen-5ffd47b8d4-rttxs 1/1 Terminating 0 20m -root@jakelee:~# kubectl get po -n rollout-demo +root@jakelee:~# kubectl get po NAME READY STATUS RESTARTS AGE rollout-bluegreen-75695867f-mnblz 1/1 Running 0 13m rollout-bluegreen-75695867f-rxw9k 1/1 Running 0 13m @@ -457,7 +457,7 @@ root@jakelee:~# while true; do curl http://210.106.105.165:30083 | jq .color; sl 배포가 정상적으로 이루어졌고, canary 버전이 문제가 없기 때문에 기존에 배포된 내용을 걷어내고, canary 버전을 완전히 배포해보겠습니다. ```bash -root@jakelee:~# kubectl argo rollouts list rollout -n canary +root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE canary-rollout Canary Paused 1/2 25 8/8 8 2 8 ``` @@ -467,18 +467,18 @@ Blue/Green 때처럼 Status가 Pause 상태인 것을 확인할 수 있습니다 Promote명령어를 이용하여 배포를 진행합니다. ```bash -root@jakelee:~# kubectl argo rollouts promote canary-rollout -n canary +root@jakelee:~# kubectl argo rollouts promote canary-rollout rollout 'canary-rollout' promoted -root@jakelee:~# kubectl argo rollouts list rollout -n canary +root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE canary-rollout Canary Progressing 2/2 100 8/10 8 4 8 -root@jakelee:~# kubectl argo rollouts list rollout -n canary +root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE canary-rollout Canary Progressing 2/2 100 8/10 8 6 8 -root@jakelee:~# kubectl argo rollouts list rollout -n canary +root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE canary-rollout Canary Progressing 2/2 100 8/10 8 8 8 -root@jakelee:~# kubectl argo rollouts list rollout -n canary +root@jakelee:~# kubectl argo rollouts list rollout NAME STRATEGY STATUS STEP SET-WEIGHT READY DESIRED UP-TO-DATE AVAILABLE canary-rollout Canary Healthy 2/2 100 8/8 8 8 8 ```