Skip to content

Commit c2521bc

Browse files
authored
Update Lab4-3-cloud-native-cicd-with-tekton-argocd.md
1 parent b821345 commit c2521bc

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

docs/Lab4-3-cloud-native-cicd-with-tekton-argocd.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
**1) Tekton Pipeline, Trigger, Dashboard 설치**
66

77
~~~bash
8+
89
$ kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.48.0/release.yaml
910
$ kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/previous/v0.24.0/release.yaml
1011
$ kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/previous/v0.24.0/interceptors.yaml
@@ -41,19 +42,31 @@ $ k apply -f tekton-ing.yml
4142
**2) 빌드 파이프라인 Task, Pipleines 설치**
4243

4344
~~~
44-
$ k create ns build
45-
$ k apply -f tekton-pipelines -n build
46-
# ArgoCD 사용자 패스워드를 시크릿을 통해서 등록합니다.
47-
$ kubectl create secret generic -n build argocd-credentials-secret --from-literal=argocd-user-password='QHVwmkghjz1q7D2A' --from-literal=argocd-user-id='admin'
4845
4946
# tekton cli를 설치합니다.
5047
$ wget https://github.com/tektoncd/cli/releases/download/v0.31.0/tkn_0.31.0_Linux_x86_64.tar.gz
5148
$ sudo tar xvf tkn_0.31.0_Linux_x86_64.tar.gz -C /usr/local/bin
5249
50+
# Tekton Pipeline 소스를 받아옵니다.
51+
$ git clone https://github.com/flytux/rancher-training
52+
$ cd rancher-training
53+
54+
# 빌드에 사용할 네임스페이스를 생성합니다.
55+
$ k create ns build
56+
57+
# ArgoCD 사용자 패스워드를 시크릿을 통해서 등록합니다.
58+
$ kubectl create secret generic -n build argocd-credentials-secret --from-literal=argocd-user-password='QHVwmkghjz1q7D2A' --from-literal=argocd-user-id='admin'
59+
60+
# pr / el에 이미지 경로를 자신의 레지스트리 경로로 변경합니다.
61+
62+
# 파이프라인 소스를 적용합니다.
63+
$ k apply -f tekton-pipelines -n build
64+
65+
# 파이프라인을 구동합니다.
5366
$ k create -f tekton-pipelines/pr-kw-build.yml -n build
5467
5568
# 파이프라인 구동 로그를 확인합니다.
56-
$ tkn pr logs -f
69+
$ tkn pr logs -f -n build
5770
~~~
5871

5972
---
@@ -83,4 +96,4 @@ $ tkn pr logs -f
8396
- 파이프라인 구동을 확인합니다.
8497
- ArgoCD 앱과 랜처의 배포 상태를 확인합니다.
8598
- 앱 접속 URL을 확인합니다.
86-
- http://10.214.156.101:30099/
99+
- http://마스터노드IP:30099/

0 commit comments

Comments
 (0)