Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| badd823e77 | |||
| d0b7364e9d | |||
| 88194e2149 | |||
| 6159e94a64 | |||
| ce5b76e498 | |||
| 173d307b2d | |||
| 9db4eb9a0b | |||
| b46dc07dbf | |||
| 0e933a50d6 | |||
| 7955561b98 | |||
| 28f6924218 | |||
| a2be6f6593 |
@@ -62,9 +62,11 @@ ArgoCD homelab project
|
|||||||
| **sonarr-stack** | [](https://ag.hexor.cy/applications/argocd/sonarr-stack) |
|
| **sonarr-stack** | [](https://ag.hexor.cy/applications/argocd/sonarr-stack) |
|
||||||
| **stirling-pdf** | [](https://ag.hexor.cy/applications/argocd/stirling-pdf) |
|
| **stirling-pdf** | [](https://ag.hexor.cy/applications/argocd/stirling-pdf) |
|
||||||
| **syncthing** | [](https://ag.hexor.cy/applications/argocd/syncthing) |
|
| **syncthing** | [](https://ag.hexor.cy/applications/argocd/syncthing) |
|
||||||
|
| **teamspeak** | [](https://ag.hexor.cy/applications/argocd/teamspeak) |
|
||||||
| **tg-bots** | [](https://ag.hexor.cy/applications/argocd/tg-bots) |
|
| **tg-bots** | [](https://ag.hexor.cy/applications/argocd/tg-bots) |
|
||||||
| **vaultwarden** | [](https://ag.hexor.cy/applications/argocd/vaultwarden) |
|
| **vaultwarden** | [](https://ag.hexor.cy/applications/argocd/vaultwarden) |
|
||||||
| **vpn** | [](https://ag.hexor.cy/applications/argocd/vpn) |
|
| **vpn** | [](https://ag.hexor.cy/applications/argocd/vpn) |
|
||||||
|
| **wedding** | [](https://ag.hexor.cy/applications/argocd/wedding) |
|
||||||
| **xandikos** | [](https://ag.hexor.cy/applications/argocd/xandikos) |
|
| **xandikos** | [](https://ag.hexor.cy/applications/argocd/xandikos) |
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ spec:
|
|||||||
value: "true"
|
value: "true"
|
||||||
- name: GITEA__service__CAPTCHA_TYPE
|
- name: GITEA__service__CAPTCHA_TYPE
|
||||||
value: "hcaptcha"
|
value: "hcaptcha"
|
||||||
|
- name: GITEA__webhook__ALLOWED_HOST_LIST
|
||||||
|
value: "*"
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: gitea-recapcha-creds
|
name: gitea-recapcha-creds
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ synapse:
|
|||||||
storage:
|
storage:
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
maxUploadSize: 100M
|
maxUploadSize: 100M
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Matrix Authentication Service
|
## Matrix Authentication Service
|
||||||
matrixAuthenticationService:
|
matrixAuthenticationService:
|
||||||
@@ -88,24 +88,24 @@ matrixAuthenticationService:
|
|||||||
1-oidc:
|
1-oidc:
|
||||||
configSecret: matrix-oidc-config
|
configSecret: matrix-oidc-config
|
||||||
configSecretKey: mas-oidc.yaml
|
configSecretKey: mas-oidc.yaml
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Element Web client
|
## Element Web client
|
||||||
elementWeb:
|
elementWeb:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingress:
|
ingress:
|
||||||
host: chat.matrix.hexor.cy
|
host: chat.matrix.hexor.cy
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Element Admin panel
|
## Element Admin panel
|
||||||
elementAdmin:
|
elementAdmin:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingress:
|
ingress:
|
||||||
host: admin.matrix.hexor.cy
|
host: admin.matrix.hexor.cy
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Well-known delegation on the base domain (host is derived from serverName)
|
## Well-known delegation on the base domain (host is derived from serverName)
|
||||||
wellKnownDelegation:
|
wellKnownDelegation:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
mountPath: /templates/subscription
|
mountPath: /templates/subscription
|
||||||
containers:
|
containers:
|
||||||
- name: pasarguard-web
|
- name: pasarguard-web
|
||||||
image: 'pasarguard/panel:dev'
|
image: 'pasarguard/panel:v3.0.1'
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
@@ -75,6 +75,9 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: pasarguard
|
name: pasarguard
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/service.serversscheme: https
|
||||||
|
traefik.ingress.kubernetes.io/service.serverstransport: pasarguard-pasarguard-transport@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: pasarguard
|
app: pasarguard
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: ServersTransport
|
||||||
|
metadata:
|
||||||
|
name: pasarguard-transport
|
||||||
|
spec:
|
||||||
|
insecureSkipVerify: true
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: pasarguard-ingress
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: ps.hexor.cy
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: pasarguard
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- secretName: pasarguard-tls
|
||||||
|
hosts:
|
||||||
|
- ps.hexor.cy
|
||||||
@@ -9,3 +9,4 @@ resources:
|
|||||||
- ./certificate.yaml
|
- ./certificate.yaml
|
||||||
- ./configmap-scripts.yaml
|
- ./configmap-scripts.yaml
|
||||||
- ./servicemonitor.yaml
|
- ./servicemonitor.yaml
|
||||||
|
- ./ingress.yaml
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: wedding
|
app: wedding
|
||||||
spec:
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: spb.tail2fe2d.ts.net
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: git-clone
|
- name: git-clone
|
||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
@@ -26,16 +28,17 @@ spec:
|
|||||||
- name: source
|
- name: source
|
||||||
mountPath: /src
|
mountPath: /src
|
||||||
- name: zola-build
|
- name: zola-build
|
||||||
image: ghcr.io/getzola/zola:v0.19.2
|
image: ghcr.io/getzola/zola:v0.22.1
|
||||||
command:
|
command:
|
||||||
- /bin/zola
|
- /bin/zola
|
||||||
args:
|
args:
|
||||||
- --root
|
- --root
|
||||||
- /src
|
- /src
|
||||||
- build
|
- build
|
||||||
|
- --base-url
|
||||||
|
- https://wedding.hexor.cy/
|
||||||
- --output-dir
|
- --output-dir
|
||||||
- /public
|
- /public/html
|
||||||
- --force
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: source
|
- name: source
|
||||||
mountPath: /src
|
mountPath: /src
|
||||||
@@ -50,6 +53,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: public
|
- name: public
|
||||||
mountPath: /usr/share/nginx/html
|
mountPath: /usr/share/nginx/html
|
||||||
|
subPath: html
|
||||||
readOnly: true
|
readOnly: true
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
@@ -7,3 +7,4 @@ resources:
|
|||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
- webhook.yaml
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: webhook-script
|
||||||
|
data:
|
||||||
|
serve.sh: |
|
||||||
|
#!/bin/sh
|
||||||
|
echo "Webhook server listening on :8080"
|
||||||
|
while true; do
|
||||||
|
echo -e "HTTP/1.1 200 OK\r\nContent-Length: 2\r\nConnection: close\r\n\r\nok" \
|
||||||
|
| nc -l -p 8080 > /dev/null
|
||||||
|
echo "Received webhook, restarting deployment..."
|
||||||
|
kubectl rollout restart deployment/wedding
|
||||||
|
done
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: wedding-webhook
|
||||||
|
labels:
|
||||||
|
app: wedding-webhook
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: wedding-webhook
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: wedding-webhook
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: spb.tail2fe2d.ts.net
|
||||||
|
serviceAccountName: wedding-deployer
|
||||||
|
containers:
|
||||||
|
- name: webhook
|
||||||
|
image: alpine/k8s:1.32.3
|
||||||
|
command: ["sh", "/scripts/serve.sh"]
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- name: script
|
||||||
|
mountPath: /scripts
|
||||||
|
readOnly: true
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 16Mi
|
||||||
|
cpu: 5m
|
||||||
|
limits:
|
||||||
|
memory: 32Mi
|
||||||
|
cpu: 50m
|
||||||
|
volumes:
|
||||||
|
- name: script
|
||||||
|
configMap:
|
||||||
|
name: webhook-script
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: wedding-webhook
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: wedding-webhook
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
protocol: TCP
|
||||||
Reference in New Issue
Block a user