mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore(gitea): run on k8s
This commit is contained in:
4
snippets/cut.sh
Normal file
4
snippets/cut.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# limit strings to some length
|
||||
echo 'some string longer than 20 characters' | cut -c '1-20'
|
||||
@@ -1,3 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
docker exec -ti 'gitea-server-1' sh
|
||||
|
||||
kubectl --namespace 'gitea' create secret generic 'gitea-admin-secret' \
|
||||
--from-literal 'username=gitea_admin' --from-literal "password=Scribble0-Tray1-Finisher4"
|
||||
helm upgrade -i -n 'gitea' --create-namespace --repo 'https://dl.gitea.com/charts/' 'gitea' 'gitea' -f 'values.yaml'
|
||||
|
||||
@@ -27,3 +27,5 @@ helm get manifest 'wordpress'
|
||||
helm -n 'monitoring' delete 'grafana'
|
||||
|
||||
helm plugin list
|
||||
helm plugin install 'https://github.com/databus23/helm-diff'
|
||||
helm -n 'pocs' diff upgrade --repo 'https://dl.gitea.com/charts/' 'gitea' 'gitea' -f 'values.yaml'
|
||||
|
||||
3
snippets/jd.fish
Normal file
3
snippets/jd.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env fish
|
||||
|
||||
jd -yaml -color 'values.yaml' (helm show values --repo 'https://dl.gitea.com/charts/' 'gitea' | psub)
|
||||
@@ -5,6 +5,8 @@ kubectl create namespace 'gitlab'
|
||||
kubectl create --namespace 'gitlab' secret generic 'gitlab-runner-token' --dry-run='client' --output 'yaml' \
|
||||
--from-literal='runner-registration-token=""' --from-literal='runner-token=glrt-…'
|
||||
kubectl apply --namespace 'gitlab' --values 'secrets.yaml'
|
||||
kubectl --namespace 'gitea' create secret generic 'gitea-admin-secret' \
|
||||
--from-literal 'username=gitea_admin' --from-literal "password=$(pulumi config get 'giteaAdminPassword')"
|
||||
|
||||
|
||||
kubectl get nodes 'fargate-ip-172-31-83-147.eu-west-1.compute.internal' -o 'yaml' | yq -y '.metadata.labels'
|
||||
|
||||
Reference in New Issue
Block a user