chore(gitea): run on k8s

This commit is contained in:
Michele Cereda
2024-08-28 18:33:04 +02:00
parent 753dadce19
commit 01b1508ab4
5 changed files with 15 additions and 0 deletions

4
snippets/cut.sh Normal file
View 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'

View File

@@ -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'

View File

@@ -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
View 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)

View File

@@ -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'