Skip to content

Commit

Permalink
organize guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mfanjie committed Nov 27, 2021
1 parent 9dc6122 commit 6a027c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions module10/tekton/local-gitlab/gitlab-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ kind: Secret
metadata:
name: cncamp-gitlab-secret
type: Opaque
stringData:
stringData:
### this secret token is to protect the webhook service
### when creating git lab webhook, this token need to be specified
secretToken: '1234567'
---
apiVersion: v1
Expand All @@ -17,10 +19,11 @@ metadata:
name: cncamp-gitlab-auth
annotations:
tekton.dev/git-1: http://gitlab.default.svc.cluster.local
type: kubernetes.io/basic-auth
type: kubernetes.io/basic-auth
### this is the user/password for gitlab when checkout code
stringData:
username: root
password: lzKyburULL0j4qnumSNI2fZycQCMkw8Is5t6D5iy790=
password: UNrTcQ+CfewcLlBu/PH86WTMzoVWj+1WWi3L8nb/jsE=
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: EventListener
Expand Down
2 changes: 1 addition & 1 deletion module10/tekton/local-gitlab/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ create a new project named test
### create webhook
go http://192.168.34.2:30370/root/test
browse settings->webhook
enter http://el-gitlab-listener:8080, and click add webhook
enter http://el-gitlab-listener:8080, and secret token as 1234567 and click add webhook
### test webhook
Test->Push Event
kubectl get po, you show see the taskrun pod
Expand Down
1 change: 1 addition & 0 deletions module11/drain-node/drain.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kubectl drain cadmin
```
### make a node scheduable again
```
kubectl cordon
kubectl uncordon
```

Expand Down
File renamed without changes.

0 comments on commit 6a027c7

Please sign in to comment.