Rebase ArgoCD;Reconfigure Argus;Upgrade Gitea

This commit is contained in:
Danny Bessems 2024-01-21 10:30:41 +11:00
parent d888a5e1f7
commit 44978d1e73
3 changed files with 15 additions and 38 deletions

View File

@ -147,16 +147,12 @@ kubectl apply -f ingress/Traefik2.x/helmchartconfig-traefik.yaml
```
### 4) GitOps
##### 4.1) Install Helm Chart
See [ArgoCD](https://argo-cd.readthedocs.io/en/stable/getting_started/#getting-started):
```shell
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
```
Expose endpoints (see [ArgoCD Ingress Configuration](https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#traefik-v22)):
```shell
kubectl patch deployment -n argocd argocd-server --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/0/command/-", "value": "--insecure"}]'
kubectl apply -f system/ArgoCD/ingressRoute-ArgoCD.yml
helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
helm install argo-cd -n argo-cd --create-namespace argo/argo-cd --values system/ArgoCD/chart-values.yml
```
Retrieve initial password:
@ -165,6 +161,10 @@ kubectl get secret -n argocd argocd-initial-admin-secret -o jsonpath='{.data.pas
```
Login with username `admin` and the initial password, browse to `User Info` and `Update Password`.
Create ArgoCD applicationset
```shell
kubectl apply -f system/ArgoCD/applicationset-homelab.yml
```
### 5) Services
##### 5.1) [Adminer](https://www.adminer.org/) <small>(SQL management)</small>
```shell

View File

@ -0,0 +1,7 @@
server:
extraArgs:
- --insecure
ingress:
enabled: true
hosts:
- gitops.spamasaurus.com

View File

@ -1,30 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: argocd-server
namespace: argocd
spec:
entryPoints:
- websecure
routes:
- match: Host(`gitops.spamasaurus.com`)
kind: Rule
priority: 10
services:
- name: argocd-server
port: 80
namespace: argocd
middlewares:
- name: security-headers@file
- name: compression@file
- match: Host(`gitops.spamasaurus.com`) && Headers(`Content-Type`, `application/grpc`)
kind: Rule
priority: 11
services:
- name: argocd-server
port: 80
namespace: argocd
scheme: h2c
middlewares:
- name: security-headers@file
- name: compression@file