Adding tekton
This commit is contained in:
+24
-4
@@ -22,7 +22,7 @@ NAMESPACE="datalab"
|
||||
kubectl patch deployment $DEPLOYMENT -n $NAMESPACE -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$( date +%s )\"}}}}}"
|
||||
```
|
||||
|
||||
# Deployment
|
||||
# Deployment (non persistent stuff)
|
||||
|
||||
## [ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx)
|
||||
|
||||
@@ -104,8 +104,6 @@ DATE=$( date +%Y%m%d )
|
||||
velero backup create $DATE --include-namespaces datalab,development,nextcloud,tt-rss,zebrium,mailu --wait
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Add private docker registry
|
||||
|
||||
**TODO: chart no longer exists. Check how to replace this someday.**
|
||||
@@ -202,7 +200,29 @@ Implement metrics-server:
|
||||
kubectl apply -n kube-system -f kube-system/metrics-server.yml
|
||||
```
|
||||
|
||||
# Persistent stuff
|
||||
## Tekton
|
||||
|
||||
Implementation as described [in the docs](https://tekton.dev/docs/getting-started/).
|
||||
|
||||
```sh
|
||||
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
|
||||
kubectl apply --filename https://github.com/tektoncd/dashboard/releases/latest/download/tekton-dashboard-release.yaml
|
||||
#basic-auth, see https://kubernetes.github.io/ingress-nginx/examples/auth/basic/
|
||||
htpasswd -c ./tekton-pipelines/auth tekton
|
||||
kubectl delete secret -n tekton-pipelines basic-auth
|
||||
kubectl create secret -n tekton-pipelines generic basic-auth --from-file=tekton-pipelines/auth
|
||||
kubectl apply -f tekton-pipelines/tekton-ingress.yml
|
||||
rm tekton-pipelines/auth
|
||||
```
|
||||
|
||||
Install client side tools:
|
||||
|
||||
```sh
|
||||
brew tap tektoncd/tools
|
||||
brew install tektoncd/tools/tektoncd-cli
|
||||
```
|
||||
|
||||
# Deployment (persistent stuff)
|
||||
|
||||
From here everything should be covered by the backup. Implenting those objects should already be performed by the velero backup.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user