Compare commits
35
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96db9b3511 | ||
|
|
7b94d671e4 | ||
|
|
f553fd3cd9 | ||
|
|
ca90f591bd | ||
|
|
b91cc2409c | ||
|
|
e1da29adbe | ||
|
|
6a744d0525 | ||
|
|
b1224e0d5b | ||
|
|
db59b123df | ||
|
|
4afa2a1e87 | ||
|
|
a9b287d06c | ||
|
|
8659225f0d | ||
|
|
19810bb114 | ||
|
|
42e94b8d22 | ||
|
|
e69dced597 | ||
|
|
e460030099 | ||
|
|
c69767b489 | ||
|
|
538ed748a1 | ||
|
|
485db774f5 | ||
|
|
4c9ea9a8b8 | ||
|
|
a4c3bd4179 | ||
|
|
028069629f | ||
|
|
58e38d65ad | ||
|
|
9977e7a79a | ||
|
|
e7569913cc | ||
|
|
2340a6b133 | ||
|
|
3d2c6cdb35 | ||
|
|
640fe64bed | ||
|
|
026ca9c391 | ||
|
|
b9e2b6c6e8 | ||
|
|
c30ff48b13 | ||
|
|
9e0415e4d0 | ||
|
|
270a9fbbf0 | ||
|
|
bb8ffca00b | ||
|
|
afed78ee18 |
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Normalise staged manifests to their kubectl kustomize output, so what is
|
||||
# committed is exactly what Argo CD renders. Requires kubectl and yq.
|
||||
|
||||
identity='[.apiVersion, .kind, .metadata.name // ""] | join("|")'
|
||||
|
||||
git diff --cached --name-only --diff-filter=ACM -- '*.yaml' |
|
||||
while IFS= read -r file; do
|
||||
dir=$(dirname "$file")
|
||||
name=$(basename "$file")
|
||||
[ "$name" = kustomization.yaml ] && continue
|
||||
|
||||
# only normalise files the sibling kustomization lists as a resource, so
|
||||
# patches and components are never replaced with build output
|
||||
yq -r '.resources[]? // ""' "$dir/kustomization.yaml" 2>/dev/null |
|
||||
grep -Fxq "$name" || continue
|
||||
|
||||
rendered=$(mktemp)
|
||||
kubectl kustomize "$dir" |
|
||||
yq eval-all "select(($identity) == \"$(yq eval-all "$identity" "$file" | head -1)\")" - >"$rendered"
|
||||
|
||||
if [ -s "$rendered" ] && ! diff -q "$file" "$rendered" >/dev/null; then
|
||||
cat "$rendered" >"$file"
|
||||
git add "$file"
|
||||
echo "normalised $file"
|
||||
fi
|
||||
rm -f "$rendered"
|
||||
|
||||
# normalising may have reverted the change entirely
|
||||
if git diff --cached --quiet -- "$file"; then
|
||||
git reset -q HEAD -- "$file"
|
||||
fi
|
||||
done
|
||||
|
||||
# nothing left staged — prevent an empty commit
|
||||
if git diff --cached --quiet; then
|
||||
echo "pre-commit: no meaningful changes, aborting commit"
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,40 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cnpg
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
spec:
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://cloudnative-pg.github.io/charts
|
||||
chart: cloudnative-pg
|
||||
targetRevision: 0.28.2
|
||||
helm:
|
||||
values: |
|
||||
replicaCount: 1
|
||||
config:
|
||||
clusterWide: true
|
||||
- repoURL: https://cloudnative-pg.github.io/charts
|
||||
chart: cluster
|
||||
targetRevision: 0.6.1
|
||||
helm:
|
||||
values: |
|
||||
cluster:
|
||||
instances: 1
|
||||
enablePDB: false
|
||||
storage:
|
||||
size: 500Mi
|
||||
backups:
|
||||
enabled: false
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -1,18 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
# add-ons
|
||||
- add-ons/traefik.yaml
|
||||
- add-ons/cert-manager.yaml
|
||||
- add-ons/sealed-secrets.yaml
|
||||
- add-ons/cnpg.yaml
|
||||
# services
|
||||
- services/app-argocd-repos.yaml
|
||||
- services/app-autoregexbot.yaml
|
||||
- services/app-betterslcm.yaml
|
||||
- services/app-jellyfin.yaml
|
||||
- services/app-legislative-summarization.yaml
|
||||
- services/app-scriptscribe.yaml
|
||||
- services/app-seaweedfs.yaml
|
||||
- services/app-qbit.yaml
|
||||
- services/app-stirling-pdf.yaml
|
||||
@@ -1,36 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: seaweedfs
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://seaweedfs.github.io/seaweedfs/helm
|
||||
chart: seaweedfs
|
||||
targetRevision: 4.33.0
|
||||
helm:
|
||||
values: |
|
||||
allInOne:
|
||||
enabled: true
|
||||
master:
|
||||
enabled: false
|
||||
volume:
|
||||
enabled: false
|
||||
filer:
|
||||
enabled: false
|
||||
- repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: extras/services/seaweedfs
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: seaweedfs
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -1,40 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: stirling-pdf
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://docs.stirlingpdf.com/Stirling-PDF-chart
|
||||
chart: stirling-pdf-chart
|
||||
targetRevision: "3.1.0"
|
||||
helm:
|
||||
values: |
|
||||
fullnameOverride: stirling-pdf
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 512Mi
|
||||
deployment:
|
||||
extraVolumeMounts:
|
||||
- name: storage-volume
|
||||
mountPath: /configs
|
||||
probes:
|
||||
liveness:
|
||||
initialDelaySeconds: 90
|
||||
readiness:
|
||||
initialDelaySeconds: 60
|
||||
- repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: extras/services/stirling-pdf
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: stirling-pdf
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -0,0 +1,47 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bentopdf
|
||||
namespace: bentopdf
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: bentopdf
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: bentopdf
|
||||
spec:
|
||||
containers:
|
||||
- image: ghcr.io/alam00000/bentopdf-simple:latest@sha256:3d62b8f8eece5fe947026ac3925ff08fda245b3d6ba2c3916b94da91e0010c74
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
name: bentopdf
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 32Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
securityContext:
|
||||
runAsGroup: 101
|
||||
runAsNonRoot: true
|
||||
runAsUser: 101
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
@@ -1,24 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: stirling-pdf
|
||||
namespace: stirling-pdf
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: bentopdf
|
||||
namespace: bentopdf
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: traefik-gateway
|
||||
namespace: traefik
|
||||
kind: Gateway
|
||||
sectionName: websecure
|
||||
hostnames:
|
||||
- pdf.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- matches:
|
||||
- backendRefs:
|
||||
- name: bentopdf
|
||||
port: 8080
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: stirling-pdf
|
||||
port: 8080
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- httproute.yaml
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bentopdf
|
||||
namespace: bentopdf
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/name: bentopdf
|
||||
@@ -0,0 +1,37 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: garage-ui
|
||||
namespace: garage
|
||||
spec:
|
||||
hostnames:
|
||||
- garage.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: authentik-server
|
||||
namespace: authentik
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /outpost.goauthentik.io
|
||||
- backendRefs:
|
||||
- name: garage-ui
|
||||
port: 80
|
||||
filters:
|
||||
- extensionRef:
|
||||
group: traefik.io
|
||||
kind: Middleware
|
||||
name: authentik
|
||||
type: ExtensionRef
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- sealed-secret.yaml
|
||||
- middleware.yaml
|
||||
- httproute.yaml
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: authentik
|
||||
namespace: garage
|
||||
spec:
|
||||
forwardAuth:
|
||||
address: http://authentik-server.authentik.svc.cluster.local/outpost.goauthentik.io/auth/traefik
|
||||
authResponseHeaders:
|
||||
- X-authentik-username
|
||||
- X-authentik-groups
|
||||
- X-authentik-email
|
||||
- X-authentik-name
|
||||
- X-authentik-uid
|
||||
trustForwardHeader: true
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: garage-ui-secrets
|
||||
namespace: garage
|
||||
spec:
|
||||
encryptedData:
|
||||
admin-password: AgCQeGAvd1QdDC8IUwNYqHJxRES1jfPbonYTyutCklms6tjebQw1pRKnbDWGRaFmgWg5jFRPYf6TAMRnZnA/1dKJMOrV9vGjqx++r+khWbe5oqvcoQInqVdbkfulHoP/Bf6jc2mj9znGqpW6E7e6Z94pwwYkpaY2CIYhfcs7PiaTh7HiFMmoNWlGmHBh+lIZ//WJblgpFdQRWR9j7CiIJOLC3OmAvGV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TYwqy1NUcPfbJV7hbqV7oDUH8JrsoSk+xxB0WDE+Uh5P4MsQna6NWkWyFV4tvfK4QyMupQaxOAKOYV27DxBaTr
|
||||
template:
|
||||
metadata:
|
||||
name: garage-ui-secrets
|
||||
namespace: garage
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: garage-s3
|
||||
namespace: garage
|
||||
spec:
|
||||
hostnames:
|
||||
- s3.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: garage
|
||||
port: 3900
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- httproute-s3.yaml
|
||||
- sealed-secret.yaml
|
||||
- service-admin.yaml
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: garage-secrets
|
||||
namespace: garage
|
||||
spec:
|
||||
encryptedData:
|
||||
rpcSecret: AgDWvOoSUADQx+cExTUDmk6/BWR8a7U5HRGf+T38P24FrP4DJiKl3GJ3Ce9a3eF7SqO/1TXiaN80+c4NX0dMEmnaS8III2Zbaa7x/rOHP608Vh1z2Nnxly11X10okVy+Qym9O5/oA3cue2bu6K3eG8W38mn3hCA9kWC6g9OiAwjBTxJXYmsUFYbj69Iloo9moBBLEtztu8T9vYu8rGqcchKzzjnvcS91kiduq9rY9/ZvYC4zx469DgnV/di8cjGdU6JAtsoHwggDtCVf2hvkyOIHTyPM9Y/EVGCsOsIzhJnTdsyRGn4su3ruLmS8VqbKC22Q86pSHjwdlD5RoZJjYtMWr5Q5YAvFbnTH9/+d0r363BfxlNsVkINd5d2OwlPpagEQ9pg4oFnnk48tsVEoYz1RCy9x/bK3U4B0Jin6l0T2NJ3umXPriLxBQbODWVA9vcv6G1tQiiuOsbYCWigoxe3ACpuYQDV+XujfmEZr3pcIw0hwKXtUWHI079aUkICcMEbtE3gLc1dNVQpja1SimZOUlqf6pz3YLv6L1e2X+yR93p2rN6hc8IJh3KA8ZR1Ymbbq2LaOwdyla50uuhsOkE2TGDTGmf9NyXjGcUys5LgNpRruzXEm/KgUX4tP7iMjHu5HbnDe9oiv66qfuIORiR2P3lbOdx3s+XmPd/87afw6YHA896ccCRkGpGnFanbrR+Z7MRqCOZsSLnQd1JpjnWJJU/bzrSl4q+PUV1Bt+hvAf8wXUrDtES6MdpOKUe4XW8s3QbVHvCx1iOSzP+r59T4N
|
||||
template:
|
||||
metadata:
|
||||
name: garage-secrets
|
||||
namespace: garage
|
||||
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: garage-admin
|
||||
namespace: garage
|
||||
spec:
|
||||
ports:
|
||||
- name: admin
|
||||
port: 3903
|
||||
targetPort: admin
|
||||
selector:
|
||||
app.kubernetes.io/instance: garage
|
||||
app.kubernetes.io/name: garage
|
||||
+11
-11
@@ -1,23 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: jellyfin-local
|
||||
namespace: jellyfin
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: jellyfin-local
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: traefik-gateway
|
||||
namespace: traefik
|
||||
kind: Gateway
|
||||
sectionName: websecure
|
||||
hostnames:
|
||||
- jellyfin-local.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- matches:
|
||||
- backendRefs:
|
||||
- name: jellyfin
|
||||
port: 8096
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: jellyfin
|
||||
port: 8096
|
||||
@@ -1,23 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: traefik-gateway
|
||||
namespace: traefik
|
||||
kind: Gateway
|
||||
sectionName: websecure
|
||||
hostnames:
|
||||
- jellyfin.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- matches:
|
||||
- backendRefs:
|
||||
- name: jellyfin
|
||||
port: 8096
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: jellyfin
|
||||
port: 8096
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- httproute-local.yaml
|
||||
- httproute.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- sealed-secret.yaml
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: redoost-s3
|
||||
namespace: redoost
|
||||
spec:
|
||||
encryptedData:
|
||||
REDOOST_S3_ACCESS_KEY_ID: AgC0A+pQKuYKMLfMPRAtL6a3PBEkwgghd7IbH8ZGhgU086s23NvbOBM5sHHkApqOiQ9z2LarAfvvK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SiCDiF3kIqVUXo/sqlbgBNMvPb+NNqo19g27jcFZPh/AZZkuBSxsdmEYfgg1RAcYmwPGUxksRcj36yknYjX4pMxJNqVGDH1nLsplOa5b8h+evxMnjK6oNduRP96zHd+Qo4sC2ThBF3Ar8STJpbbJ+KgdW1HnHo38JYd0J8q/pcVq5xY3+VX8Gy8JSrb9wdFMZnb+iWmyL/GNwLIqqbZw1zcKF7Rru78fl8Y5VWDnrpbjn1buqDxwyFkDhcxX9WISoAPKXP9K2Cs5UOIKwu50cOAyA+cMOMsYbTnkvAuDMZ5aBPp80j0TQLu4luPPvKG1RumhYxGthmEpwQaPyXuJfhOBbuVrsiNlaCKe+d3Jv9l3Y4PVlTBJg7ZD7YpfLoyvt1Y9ELAI5qiUjZ4Ru5TxX2lIqZOoZ/G
|
||||
template:
|
||||
metadata:
|
||||
name: redoost-s3
|
||||
namespace: redoost
|
||||
type: Opaque
|
||||
@@ -0,0 +1,60 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rustbin
|
||||
namespace: rustbin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: rustbin
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: rustbin
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: DATABASE_URL
|
||||
value: sqlite:///data/rustbin.db?mode=rwc
|
||||
image: ghcr.io/whyredfire/rustbin:sha-75418bf
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
name: rustbin
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 64Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data
|
||||
securityContext:
|
||||
fsGroup: 65532
|
||||
runAsGroup: 65532
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65532
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: rustbin-data
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: rustbin
|
||||
namespace: rustbin
|
||||
spec:
|
||||
hostnames:
|
||||
- bin.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: rustbin
|
||||
port: 3000
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- httproute.yaml
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: rustbin-data
|
||||
namespace: rustbin
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: rustbin
|
||||
namespace: rustbin
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/name: rustbin
|
||||
@@ -0,0 +1,33 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: splitpro-db
|
||||
namespace: splitpro
|
||||
spec:
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: splitpro
|
||||
owner: splitpro
|
||||
postInitApplicationSQL:
|
||||
- CREATE EXTENSION IF NOT EXISTS pg_cron;
|
||||
- GRANT USAGE ON SCHEMA cron TO splitpro;
|
||||
- GRANT REFERENCES ON cron.job TO splitpro;
|
||||
- GRANT EXECUTE ON FUNCTION cron.alter_job(bigint, text, text, text, text, boolean) TO splitpro;
|
||||
enablePDB: false
|
||||
imageName: ghcr.io/whyredfire/postgres-cnpg:18-sha-62e724e
|
||||
instances: 1
|
||||
postgresql:
|
||||
parameters:
|
||||
cron.database_name: splitpro
|
||||
cron.timezone: UTC
|
||||
cron.use_background_workers: "on"
|
||||
shared_preload_libraries:
|
||||
- pg_cron
|
||||
resources:
|
||||
limits:
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
storage:
|
||||
size: 1Gi
|
||||
@@ -0,0 +1,108 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: splitpro
|
||||
namespace: splitpro
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: splitpro
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: splitpro
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
containers:
|
||||
- env:
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: uri
|
||||
name: splitpro-db-app
|
||||
- name: DEFAULT_HOMEPAGE
|
||||
value: /balances
|
||||
- name: HOSTNAME
|
||||
value: 0.0.0.0
|
||||
- name: INVITE_ONLY
|
||||
value: "false"
|
||||
- name: NEXTAUTH_URL
|
||||
value: https://split.whyredfire.dev
|
||||
- name: NEXTAUTH_URL_INTERNAL
|
||||
value: http://localhost:3000
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: splitpro
|
||||
image: ghcr.io/whyredfire/splitpro:529739ab7f506ce258f6d09596ed8bb0833c20c1
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/auth/providers
|
||||
port: http
|
||||
name: splitpro
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/auth/providers
|
||||
port: http
|
||||
resources:
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 256Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
startupProbe:
|
||||
failureThreshold: 60
|
||||
httpGet:
|
||||
path: /api/auth/providers
|
||||
port: http
|
||||
periodSeconds: 5
|
||||
volumeMounts:
|
||||
- mountPath: /app/uploads
|
||||
name: uploads
|
||||
- mountPath: /app/.next/cache
|
||||
name: cache
|
||||
- mountPath: /tmp
|
||||
name: tmp
|
||||
initContainers:
|
||||
- command:
|
||||
- sh
|
||||
- -c
|
||||
- until nc -z -w 2 splitpro-db-rw 5432; do echo waiting for database; sleep 2; done
|
||||
image: ghcr.io/whyredfire/splitpro:529739ab7f506ce258f6d09596ed8bb0833c20c1
|
||||
name: wait-for-db
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
runAsGroup: 1000
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumes:
|
||||
- emptyDir:
|
||||
sizeLimit: 256Mi
|
||||
name: cache
|
||||
- emptyDir:
|
||||
sizeLimit: 256Mi
|
||||
name: tmp
|
||||
- name: uploads
|
||||
persistentVolumeClaim:
|
||||
claimName: splitpro-uploads
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: splitpro
|
||||
namespace: splitpro
|
||||
spec:
|
||||
hostnames:
|
||||
- split.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: splitpro
|
||||
port: 3000
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- sealed-secret.yaml
|
||||
- cluster.yaml
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- httproute.yaml
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: splitpro-uploads
|
||||
namespace: splitpro
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: splitpro
|
||||
namespace: splitpro
|
||||
spec:
|
||||
encryptedData:
|
||||
GOOGLE_CLIENT_ID: AgDRctXaM2WUp9CYS1HQaxq1F6qJ6wyuV5PRK1hhSYCGCpZwId6mT/M+YCGiPnvAqR2W0L0cJ199ytZ5aV7UBrgbLG6XK7jN1txxpdWTSq0pONPj2jOrUvqdToA/6hUCsQBW6oqshbhjV/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6TMfwhofQz2zYdYQEWYmBgiG+zX7mwwh3awuA5uH+ooA5vFe/aHPvMYM2rbTYDihEISJt1b6cbCiE8+Iw==
|
||||
template:
|
||||
metadata:
|
||||
name: splitpro
|
||||
namespace: splitpro
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: splitpro
|
||||
namespace: splitpro
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/name: splitpro
|
||||
@@ -0,0 +1,28 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
name: anubis-operator
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: anubis-operator-system
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
kustomize:
|
||||
images:
|
||||
- public-registry.brunobernard.dev/techarohq/anubis-operator=ghcr.io/eznix86/anubis-kubernetes-operator:0.4.4
|
||||
path: config/default
|
||||
repoURL: https://github.com/eznix86/anubis-kubernetes-operator.git
|
||||
targetRevision: v0.4.4
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: argocd-dashboard
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: argocd
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: infra/argocd-dashboard
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: argocd-repos
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: argocd-repos
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: argocd
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: infra/argocd-repos
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: extras/add-ons/argocd-repos
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argocd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,55 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: authentik
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: authentik
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- chart: authentik
|
||||
helm:
|
||||
values: |
|
||||
authentik:
|
||||
error_reporting:
|
||||
enabled: false
|
||||
postgresql:
|
||||
host: postgres-rw.postgres.svc.cluster.local
|
||||
name: authentik
|
||||
user: authentik
|
||||
global:
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: authentik-secrets
|
||||
blueprints:
|
||||
configMaps:
|
||||
- authentik-blueprints
|
||||
server:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 512Mi
|
||||
worker:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 384Mi
|
||||
repoURL: https://charts.goauthentik.io
|
||||
targetRevision: 2026.8.3
|
||||
- path: infra/authentik
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -1,16 +1,17 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: cert-manager
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: cert-manager
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://charts.jetstack.io
|
||||
chart: cert-manager
|
||||
targetRevision: v1.19.3
|
||||
- chart: cert-manager
|
||||
helm:
|
||||
values: |
|
||||
crds:
|
||||
@@ -20,12 +21,11 @@ spec:
|
||||
kind: ControllerConfiguration
|
||||
featureGates:
|
||||
ExperimentalGatewayAPISupport: true
|
||||
- repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
repoURL: https://charts.jetstack.io
|
||||
targetRevision: v1.21.1
|
||||
- path: infra/cert-manager
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: extras/add-ons/cert-manager
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: cert-manager
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,28 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
name: cnpg
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: cnpg-system
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
chart: cloudnative-pg
|
||||
helm:
|
||||
values: |
|
||||
replicaCount: 1
|
||||
config:
|
||||
clusterWide: true
|
||||
repoURL: https://cloudnative-pg.github.io/charts
|
||||
targetRevision: 0.29.0
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- argocd-dashboard.yaml
|
||||
- argocd-repos.yaml
|
||||
- authentik.yaml
|
||||
- cert-manager.yaml
|
||||
- cnpg.yaml
|
||||
- postgres.yaml
|
||||
- sealed-secrets.yaml
|
||||
- traefik.yaml
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: postgres
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: postgres
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: infra/postgres
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: sealed-secrets
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
name: sealed-secrets
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: sealed-secrets
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://bitnami-labs.github.io/sealed-secrets
|
||||
chart: sealed-secrets
|
||||
targetRevision: 2.18.5
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: sealed-secrets
|
||||
repoURL: https://bitnami.github.io/sealed-secrets
|
||||
targetRevision: 2.19.1
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -1,27 +1,31 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: traefik
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: traefik
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://traefik.github.io/charts
|
||||
chart: traefik
|
||||
targetRevision: v39.0.2
|
||||
- chart: traefik
|
||||
helm:
|
||||
values: |
|
||||
ingressClass:
|
||||
enabled: false
|
||||
providers:
|
||||
kubernetesGateway:
|
||||
enabled: true
|
||||
kubernetesIngress:
|
||||
enabled: false
|
||||
service:
|
||||
type: ClusterIP
|
||||
externalIPs:
|
||||
- 192.168.2.5
|
||||
spec:
|
||||
type: ClusterIP
|
||||
externalIPs:
|
||||
- 192.168.2.5
|
||||
gateway:
|
||||
listeners:
|
||||
web:
|
||||
@@ -38,12 +42,22 @@ spec:
|
||||
- kind: Secret
|
||||
name: wildcard-whyredfire-dev
|
||||
group: ""
|
||||
- repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
websecure-dpdns:
|
||||
port: 8443
|
||||
protocol: HTTPS
|
||||
mode: Terminate
|
||||
hostname: "*.whyredfire.dpdns.org"
|
||||
namespacePolicy:
|
||||
from: All
|
||||
certificateRefs:
|
||||
- kind: Secret
|
||||
name: wildcard-whyredfire-dpdns-org
|
||||
group: ""
|
||||
repoURL: https://traefik.github.io/charts
|
||||
targetRevision: 41.6.0
|
||||
- path: infra/traefik
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: extras/add-ons/traefik
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: traefik
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- add-ons
|
||||
- services
|
||||
+5
-5
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: telegram-autoregexbot
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: telegram-autoregexbot
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: telegram-bot
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: k8s
|
||||
repoURL: https://github.com/santarl/telegram-autoregexbot
|
||||
targetRevision: main
|
||||
path: k8s
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: telegram-bot
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: bentopdf
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: bentopdf
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: apps/bentopdf
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: betterslcm
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: betterslcm
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: betterslcm
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: k8s
|
||||
repoURL: https://github.com/DK10WS/SLCM_APP.git
|
||||
targetRevision: web
|
||||
path: k8s
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: betterslcm
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,44 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "4"
|
||||
name: garage-ui
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: garage
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- chart: garage-ui
|
||||
repoURL: https://helm.noste.dev/
|
||||
targetRevision: 0.12.1
|
||||
helm:
|
||||
values: |
|
||||
config:
|
||||
server:
|
||||
domain: garage.whyredfire.dev
|
||||
protocol: https
|
||||
root_url: https://garage.whyredfire.dev
|
||||
garage:
|
||||
admin_endpoint: http://garage-admin:3903
|
||||
existingSecret:
|
||||
name: garage-ui-secrets
|
||||
auth:
|
||||
admin:
|
||||
enabled: false
|
||||
jwt_private_key_secret:
|
||||
name: garage-ui-secrets
|
||||
cors:
|
||||
enabled: false
|
||||
- path: apps/garage-ui
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -0,0 +1,90 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: garage
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: garage
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://git.deuxfleurs.fr/Deuxfleurs/garage.git
|
||||
targetRevision: v2.4.1
|
||||
path: script/helm/garage
|
||||
helm:
|
||||
values: |
|
||||
garage:
|
||||
singleNode: true
|
||||
existingRpcSecret: garage-secrets
|
||||
noClusterRole: true
|
||||
# No discovery is needed for a single node.
|
||||
garageTomlString: |
|
||||
metadata_dir = "/mnt/meta"
|
||||
data_dir = "/mnt/data"
|
||||
db_engine = "sqlite"
|
||||
metadata_fsync = true
|
||||
data_fsync = true
|
||||
replication_factor = 1
|
||||
rpc_bind_addr = "127.0.0.1:3901"
|
||||
rpc_public_addr = "127.0.0.1:3901"
|
||||
rpc_secret = "__RPC_SECRET_REPLACE__"
|
||||
|
||||
[s3_api]
|
||||
s3_region = "garage"
|
||||
api_bind_addr = "0.0.0.0:3900"
|
||||
|
||||
[s3_web]
|
||||
bind_addr = "0.0.0.0:3902"
|
||||
# Required; a bucket's full name also works as the Host
|
||||
root_domain = ".web.garage.internal"
|
||||
index = "index.html"
|
||||
|
||||
[admin]
|
||||
api_bind_addr = "0.0.0.0:3903"
|
||||
metrics_require_token = true
|
||||
image:
|
||||
repository: dxflrs/garage
|
||||
initImage:
|
||||
tag: "1.37.0"
|
||||
persistence:
|
||||
meta:
|
||||
storageClass: local-path
|
||||
size: 1Gi
|
||||
data:
|
||||
storageClass: local-path
|
||||
size: 9Gi
|
||||
podSecurityContext:
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: admin
|
||||
timeoutSeconds: 3
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: s3-api
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
memory: 1Gi
|
||||
- path: apps/garage
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -1,18 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: jellyfin
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: jellyfin
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: jellyfin
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://jellyfin.github.io/jellyfin-helm
|
||||
chart: jellyfin
|
||||
targetRevision: "2.7.0"
|
||||
- chart: jellyfin
|
||||
helm:
|
||||
values: |
|
||||
image:
|
||||
tag: "12.0"
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8096
|
||||
@@ -26,12 +29,11 @@ spec:
|
||||
enabled: true
|
||||
type: hostPath
|
||||
hostPath: /srv/media
|
||||
- repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
repoURL: https://jellyfin.github.io/jellyfin-helm
|
||||
targetRevision: 3.2.0
|
||||
- path: apps/jellyfin
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: extras/services/jellyfin
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: jellyfin
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,13 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- bentopdf.yaml
|
||||
- betterslcm.yaml
|
||||
- garage.yaml
|
||||
- garage-ui.yaml
|
||||
- jellyfin.yaml
|
||||
- legislative-summarization.yaml
|
||||
- qbit.yaml
|
||||
- redoost.yaml
|
||||
- rustbin.yaml
|
||||
- scriptscribe.yaml
|
||||
+5
-5
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: legislative-summarization
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: legislative-summarization
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: legislative-summarization
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: k8s
|
||||
repoURL: https://github.com/whyredfire/legislative-summarization
|
||||
targetRevision: main
|
||||
path: k8s
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: legislative-summarization
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: qbit
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: qbit
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: qbit
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: qbit
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops-private.git
|
||||
targetRevision: main
|
||||
path: qbit
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: qbit
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,63 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: redoost
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: redoost
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://github.com/whyredfire/redoost.git
|
||||
targetRevision: main
|
||||
path: chart
|
||||
helm:
|
||||
values: |
|
||||
appOrigin: https://redoost.whyredfire.dev
|
||||
sitesOrigin: https://whyredfire.dpdns.org
|
||||
httpRoute:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
app:
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
sites:
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure-dpdns
|
||||
s3:
|
||||
endpoint: http://garage.garage.svc.cluster.local:3900
|
||||
publicEndpoint: https://s3.whyredfire.dev
|
||||
websiteUpstream: garage.garage.svc.cluster.local:3902
|
||||
bucket: redoost-sites
|
||||
existingSecret: redoost-s3
|
||||
networkPolicy:
|
||||
enabled: true
|
||||
gateway:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: traefik
|
||||
s3:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: garage
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: garage
|
||||
- path: apps/redoost
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: rustbin
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: rustbin
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: apps/rustbin
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
+5
-5
@@ -1,19 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: scriptscribe
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: scriptscribe
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: scriptscribe
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: k8s
|
||||
repoURL: https://github.com/whyredfire/scriptscribe
|
||||
targetRevision: main
|
||||
path: k8s
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: scriptscribe
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
name: splitpro
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: splitpro
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: apps/splitpro
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm
|
||||
data:
|
||||
admin.enabled: "false"
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm
|
||||
data:
|
||||
oidc.config: |
|
||||
name: Authentik
|
||||
issuer: https://auth.whyredfire.dev/application/o/argocd/
|
||||
clientID: argocd
|
||||
clientSecret: $argocd-oidc:clientSecret
|
||||
enablePKCEAuthentication: true
|
||||
requestedScopes:
|
||||
- openid
|
||||
- profile
|
||||
- email
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm
|
||||
data:
|
||||
url: https://argo.whyredfire.dev
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cmd-params-cm
|
||||
data:
|
||||
server.insecure: "true"
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cmd-params-cm
|
||||
data:
|
||||
controller.diff.server.side: "true"
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-rbac-cm
|
||||
data:
|
||||
policy.csv: |
|
||||
g, admins, role:admin
|
||||
policy.default: ""
|
||||
scopes: "[groups]"
|
||||
@@ -4,14 +4,14 @@ metadata:
|
||||
name: root-app
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: argocd
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: argocd-apps
|
||||
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||
targetRevision: main
|
||||
path: applications
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argocd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: argocd-server
|
||||
spec:
|
||||
type: ClusterIP
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: argocd-server
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
nodePort: 30443
|
||||
@@ -2,14 +2,38 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: argocd
|
||||
resources:
|
||||
- https://raw.githubusercontent.com/argoproj/argo-cd/v3.2.6/manifests/install.yaml
|
||||
- https://raw.githubusercontent.com/argoproj/argo-cd/v3.5.2/manifests/install.yaml
|
||||
- argocd-root-app
|
||||
patches:
|
||||
- target:
|
||||
kind: Service
|
||||
name: argocd-server
|
||||
path: argocd-server-nodeport-patch.yaml
|
||||
path: argocd-server-clusterip-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-cm
|
||||
path: argocd-cm-application-health-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-cm
|
||||
path: argocd-cm-url-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-cm
|
||||
path: argocd-cm-oidc-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-cm
|
||||
path: argocd-cm-admin-disabled-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-rbac-cm
|
||||
path: argocd-rbac-cm-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-cmd-params-cm
|
||||
path: argocd-cmd-params-cm-server-side-diff-patch.yaml
|
||||
- target:
|
||||
kind: ConfigMap
|
||||
name: argocd-cmd-params-cm
|
||||
path: argocd-cmd-params-cm-server-insecure-patch.yaml
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: seaweedfs-filer
|
||||
namespace: seaweedfs
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
hostnames:
|
||||
- seaweedfs.whyredfire.dev
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: seaweedfs-all-in-one
|
||||
port: 8888
|
||||
weight: 1
|
||||
@@ -1,27 +0,0 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: seaweedfs-master
|
||||
namespace: seaweedfs
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
hostnames:
|
||||
- seaweedfs-master.whyredfire.dev
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: seaweedfs-all-in-one
|
||||
port: 9333
|
||||
weight: 1
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: argocd-dashboard
|
||||
namespace: argocd
|
||||
spec:
|
||||
hostnames:
|
||||
- argo.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: argocd-server
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- httproute.yaml
|
||||
- oidc-sealedsecret.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: argocd-oidc
|
||||
namespace: argocd
|
||||
spec:
|
||||
encryptedData:
|
||||
clientSecret: AgAuadGZNylY8/lomfIg8PybwBtfZ20BXDfNacgIMMdRanRgRnLhMghaZfcQbcGuKRaAIya/aIqbUKkQwat2elypOp374wvDHilnaQ0DQ4qCBGZlPLMSzyEoz+sSuB3c0YHLcj48DIF9b5b24jsysS9mllTQCeEBNsuXiEjEuSBUpu6EbR5ztRPnEi8OnuJYTMJtnMVX0iPEqEK4DsR/c7ActayVBG+sGDK/ZyACxyLg8cuhJ2p7SyxqCwqtaS4NaKC6d4WK+3LEQcAd65PWeSKbR7zv77EcUQ8yzaM3yDXIZMmgLMzynfPgyll9aLr31n2UOaNU2uZPT6JtlnPARU1WuzQHcRCdJBjuKneDahE2D3m7sClxUCNXTgXfZqsWl6/gSvZrREukQyJgIz6mmmN3rUjYRn0lG+0CU6o1uDFGHyn9GEmzTPT4zt/U0YD7LjwdR+tWHBUmzQCPbe2DcPQLb+OwyY0M9RC52btfJVyErjMXN7TP8ut1Gmf6p0phr9ebVH9hNAPWcfbWkNG4r8c4gzHDca9ULPrwjz1oJsNeHf6ZXu3Zu26xnFsLswSQqWSSpBrHA9F5bl3U3/ScNErD+wrP6lH6dqcGGJVpMMUhDDNBKkSsu8zL8M97x5MYZPwAI+EfNF5ijdzqZbgEU0iTjJv5fHX1i+rGhbzkfqvuI3ti/8CkcSB/dEAYQXwfmSrtPJISX1zEWhqzgIfIDuPk2BmD+rKmWL906+aff7M/Ns32wZlvN3eCPVjO9w80mkn6OJY11re0Si0eg4ksUZDH
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/part-of: argocd
|
||||
name: argocd-oidc
|
||||
namespace: argocd
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- repo-sealed-secret.yaml
|
||||
@@ -0,0 +1,69 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: authentik-blueprints
|
||||
namespace: authentik
|
||||
data:
|
||||
google-login.yaml: |
|
||||
version: 1
|
||||
metadata:
|
||||
name: Google login
|
||||
entries:
|
||||
- model: authentik_blueprints.metaapplyblueprint
|
||||
attrs:
|
||||
identifiers:
|
||||
path: default/flow-default-source-authentication.yaml
|
||||
required: true
|
||||
- model: authentik_core.group
|
||||
id: admins
|
||||
identifiers:
|
||||
name: admins
|
||||
attrs:
|
||||
is_superuser: true
|
||||
- model: authentik_core.user
|
||||
identifiers:
|
||||
username: whyredfire
|
||||
attrs:
|
||||
email: [email protected]
|
||||
groups:
|
||||
- !KeyOf admins
|
||||
name: Karan Parashar
|
||||
- model: authentik_sources_oauth.oauthsource
|
||||
id: google
|
||||
identifiers:
|
||||
slug: google
|
||||
attrs:
|
||||
authentication_flow: !Find [authentik_flows.flow, [slug, default-source-authentication]]
|
||||
consumer_key: !Env GOOGLE_CLIENT_ID
|
||||
consumer_secret: !Env GOOGLE_CLIENT_SECRET
|
||||
name: Google
|
||||
promoted: true
|
||||
provider_type: google
|
||||
user_matching_mode: email_link
|
||||
- model: authentik_stages_identification.identificationstage
|
||||
id: google-identification
|
||||
identifiers:
|
||||
name: google-identification
|
||||
attrs:
|
||||
sources:
|
||||
- !KeyOf google
|
||||
user_fields: []
|
||||
- model: authentik_flows.flow
|
||||
id: google-flow
|
||||
identifiers:
|
||||
slug: google-login
|
||||
attrs:
|
||||
authentication: require_unauthenticated
|
||||
designation: authentication
|
||||
name: Google login
|
||||
title: Welcome!
|
||||
- model: authentik_flows.flowstagebinding
|
||||
identifiers:
|
||||
order: 10
|
||||
stage: !KeyOf google-identification
|
||||
target: !KeyOf google-flow
|
||||
- model: authentik_brands.brand
|
||||
identifiers:
|
||||
domain: authentik-default
|
||||
attrs:
|
||||
flow_authentication: !KeyOf google-flow
|
||||
@@ -0,0 +1,37 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: authentik
|
||||
namespace: authentik
|
||||
spec:
|
||||
hostnames:
|
||||
- auth.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
# The ArgoCD Android app posts to the token endpoint without its trailing slash
|
||||
- backendRefs:
|
||||
- name: authentik-server
|
||||
port: 80
|
||||
filters:
|
||||
- type: URLRewrite
|
||||
urlRewrite:
|
||||
path:
|
||||
replaceFullPath: /application/o/token/
|
||||
type: ReplaceFullPath
|
||||
matches:
|
||||
- path:
|
||||
type: Exact
|
||||
value: /application/o/token
|
||||
- backendRefs:
|
||||
- name: authentik-server
|
||||
port: 80
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- sealed-secret.yaml
|
||||
- blueprints.yaml
|
||||
- httproute.yaml
|
||||
- referencegrant.yaml
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: ReferenceGrant
|
||||
metadata:
|
||||
name: outpost
|
||||
namespace: authentik
|
||||
spec:
|
||||
from:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: HTTPRoute
|
||||
namespace: garage
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: HTTPRoute
|
||||
namespace: qbit
|
||||
to:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: authentik-server
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: authentik-secrets
|
||||
namespace: authentik
|
||||
spec:
|
||||
encryptedData:
|
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=
|
||||
GOOGLE_CLIENT_SECRET: AgDNFpqV5LGekTMvOBtPE9c6ZVPtT6wN+nCFRhZnvBKIz4I7U9jzisEN7yhc4ud22XJXpS5oR8hN4H+V6Js/bCZMDJefYcdstmHku14kUvoLRUtwPV9tdjiihmb57VLTnT1s1OzbnOqZPwXoCAmGAPLDgZrghBi0id21GgjU41jCHDJCcH1j9RHhE20JwsVG2uz9Tcp6MVYh94aq53V4//bvFXz4xQgVlN8c1jJ/W4rrNM9vmYdMwKyB5509oVWJigowsRlji0FXurR8ovz1AXpMuGj6hUGxLp0uHsqz7FV/0lsd4B2BR9cVRChAR8zDCiiKb4TH2Kmn676/Z+gtJ8vcOQg/WDT1ENzOr6dyndCLVxJvJuvl1EqinzhSqJjUy11HxqULApKKbX1iRJIAIGb6dpeKVoHDKg5xtcWGwaD6epG/tz20agkWBMCFNq5aS80npz28W5GeOQ8aF4X/rpjuEHVLrN+n0pgyS4wjwniB6UJMYRIYk45r0ICUtqyFjOiNzpU70NsPmEjDyItW1EVo+6tb0lRmOI5apm/9yayZXjFISwTAFPdBMrQL+ij4AGw4HMWMmN0aqDO+Kd1c9Jg6wUKluN2Lb6CaxehWeSJiz2wTEhEz8KBkInfezgSekNkw4wjJiBEZ4/M3G6Y/C61ekuVFarRc87cY+S3SomVZDGQcPysfQlieMVpHlfXq/CSDgHhZV3Q+S/wqpy5ZcfsyaU+v4PmvyEc12MZxQ1RGngVJow==
|
||||
template:
|
||||
metadata:
|
||||
name: authentik-secrets
|
||||
namespace: authentik
|
||||
@@ -0,0 +1,13 @@
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: cloudflare-api-token
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
encryptedData:
|
||||
api-token: AgCqVfWKc3TVZOWN2kWfWcEe+5pf5lRMOzcQUjgI7Wd4/0cDogagn0fF3MR1+tcm4kaxXyn0GzZLoOT4mWetg/BoGYY6X4DYy6fsyFzpvpY8mtdwiTrYtzdORSz1qw2U3yerB1st//Cy90D+sw8V13MGDh0vD0OEtYG4Xf1foRTR5KClzHmy16gjp64d4dbFWLO1oa99drQkCGRPhHcDzcrT0bFOutjN52p8AVcjBlzDMpP2k/Wo9wT4MiDv+clrXwOVyvARk5DrN9KY+iRiB0NkBvHaVNkQ9M62sIUJ9asBwIWZCY/aV4xGEvx9LYxAWvzIqmXBy+DOlOo3gOavQCOBI7Gdz015V1oIsViLQXG3j+5m0PSbguCNCXQhF9zmgqoJgiEpC2aFcU9oCZ/JS/DTiD8Xq60JSyY8bQE/yMX3vHAnXm5HOe14WJ60GkjGXPsBWWjmtAeBltAUW1WJfkTnHm/aPBflpZBkuJgkCpL2iMERETi0e4UfOuvf06cN3testuFfR9sIn6aD9mMY4B9e+6TLbjFF5uSf/W9/aMhLLTG8Mh5pZneGDndfRm6IG3Lj506xLOo3CAOA9BYF7MiShrgtuLmDH/pd8YCRTxsboYigQ2LrobpaQnkKYjHqLWNJi/I1rXefmEXK1mR8zZKJzBIsz4NG9TTary9v34yL22n9L+RtWJhrsFDXQqz7C860J7ifa28VJObo1QZN9bzsWoTPzUjK/Yw1GvrVUVUAsNyzbCgUjFUbrydoPmpx4ntmj6fSxQ==
|
||||
template:
|
||||
metadata:
|
||||
name: cloudflare-api-token
|
||||
namespace: cert-manager
|
||||
type: Opaque
|
||||
+3
-3
@@ -1,18 +1,18 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-prod
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
name: letsencrypt-prod
|
||||
spec:
|
||||
acme:
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
email: [email protected]
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt-prod
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
solvers:
|
||||
- dns01:
|
||||
cloudflare:
|
||||
apiTokenSecretRef:
|
||||
name: cloudflare-api-token
|
||||
key: api-token
|
||||
name: cloudflare-api-token
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cloudflare-api-token-sealed-secret.yaml
|
||||
- cluster-issuer.yaml
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Database
|
||||
metadata:
|
||||
name: authentik
|
||||
namespace: postgres
|
||||
spec:
|
||||
cluster:
|
||||
name: postgres
|
||||
databaseReclaimPolicy: retain
|
||||
name: authentik
|
||||
owner: authentik
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
name: authentik-db
|
||||
namespace: postgres
|
||||
spec:
|
||||
encryptedData:
|
||||
password: AgALpscM7BiDoZuUSlAI39CZYz3DvSaHQwzOpZEKp4tqfEYQ1r2DALOAbi4l3+6LzsMo63RNv3SYlhxFcbjjrDMiiaaB47iKDEmbSW/LQTJibiaoy67rgTs8T3I4awQbHeylwJQr5nS0BN6MeYh87PCmqFc3Orc5kCokSL9j7gVwOqNkq27RMJkghulUxAEONQrixFOiCHTFWCD/IybR1olUUacz7nKxCTLmcqDfzimGlF92VBbFaUzZH5W+0yd59zNqjhnmslIRiqli/ZVB2Z5ECuqr4YmrSmaCQvR5mzRmNjpmAeqCF/byFjfanPM6ZZ4NM2x7flqu8sULzZfBdXWmhIy03jPFFDBIvznHHW6y0K2r8kqewkoUsKgJEgZcsEvwe/F/gode3ukI02LuD2dKMNjeDaf8A4xaRx6h9U9cDiggmpHPW2HjO3kLp6ViEGPlGm3JuisnqncsBgfIh1T8ZMpmuM0WgAe6E3hFHnR6vbWYfSIi6nrEcpfLL+F2bBGYdUFBfjflaxXzhPnGDJ29GEBuyJcHPVRTqBhybS9rl+77dhCbPEsC5GN9MdCdS3uVWyKN+xIV1f/cJNsUFhDyU2rbkbFAebJurjPbKi92HPDaEq6OK3kunN9nNEZ9rE7d6ouw/gQ5Uq3CmaNDiVDorFfaW5DHVbRnm3MLdbLoUuN1AlU96/cDuSqDZjfLB69iB/+nt8TQLHopwQxj9AajfMyF+y9c2XvYZWvZGaCE1fTEfpIJ2fV1McnwbFi0uHk=
|
||||
username: AgA9pxBlPvKPAX/NaHHFSN1ypRxKmd8CNcs92+l3JpDar81IYWaQPG0p99wYxrBp0414GIhojpkWks7+lVDSgmVzw9T+JQzow54lRxe7dHFOzfAQx1oQyGp8AkiGtjAIdUx9kgYhM01xQUDYtFDe3XnhVUkvjQNARctWyX+o/vyYTnK5BMHZB6viQOWrifNUmPQQRFnB9oEPGVqysYlJ2+o1sMyJYXOiTEMVkuk0rFp8AE2WGeyfR0pFwhSyn2g7bbFvUoQbECiG4y83AKmpmX4p25bAlzsIxb1kgUpYlqZXGMqLuQaVBJsBs3u7sDUjQZFRfz3rH2OLfNGZcCGT3c9Ueg05eRpAyWHP1kHWmkK2Yl4kPcyx54bBk2yv2h4lW7DmlsG6jE6bzKPtMTJOiJdkqkNSkerd062ktWYrpAg6iuGWB1A7Et+J07JaWd6xfANRknvH/D+CEQHuRM5qEtM8HVLuTlKSxX464d0nNKUw0rrSokWJWT5olroc+VjaHyXdF6LEYmgNXxtUwa95q6k8J78ZLidx7SawbFC5d5ErFbkq+6xOPWeKzcDExtcMd9UF1Ti90Ybp5ncyxoQLXCWhSV9SxjeS+f6H8Cs7JM39kxeOfLvvxw9qz2rSW6qbimh5KaXmO8KK3BFtrui+k5tlnv6qJaRbtMUV+p7WyK36wBk1fUMR0lfK8FRuWfnUuslP2wk17vlkvto=
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
cnpg.io/reload: "true"
|
||||
name: authentik-db
|
||||
namespace: postgres
|
||||
type: kubernetes.io/basic-auth
|
||||
@@ -0,0 +1,29 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: postgres
|
||||
namespace: postgres
|
||||
spec:
|
||||
enablePDB: false
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:18
|
||||
instances: 1
|
||||
managed:
|
||||
roles:
|
||||
- ensure: present
|
||||
login: true
|
||||
name: authentik
|
||||
passwordSecret:
|
||||
name: authentik-db
|
||||
postgresql:
|
||||
# Each app role may only connect to the database of the same name.
|
||||
pg_hba:
|
||||
- host sameuser all all scram-sha-256
|
||||
- host all all all reject
|
||||
resources:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
storage:
|
||||
size: 5Gi
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster.yaml
|
||||
- authentik-db-sealedsecret.yaml
|
||||
- authentik-database.yaml
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- wildcard-whyredfire-dev.yaml
|
||||
- wildcard-whyredfire-dpdns-org.yaml
|
||||
+6
-6
@@ -4,11 +4,11 @@ metadata:
|
||||
name: wildcard-whyredfire-dev
|
||||
namespace: traefik
|
||||
spec:
|
||||
secretName: wildcard-whyredfire-dev
|
||||
dnsNames:
|
||||
- '*.whyredfire.dev'
|
||||
issuerRef:
|
||||
kind: ClusterIssuer
|
||||
name: letsencrypt-prod
|
||||
privateKey:
|
||||
rotationPolicy: Always
|
||||
issuerRef:
|
||||
name: letsencrypt-prod
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- "*.whyredfire.dev"
|
||||
secretName: wildcard-whyredfire-dev
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: wildcard-whyredfire-dpdns-org
|
||||
namespace: traefik
|
||||
spec:
|
||||
dnsNames:
|
||||
- '*.whyredfire.dpdns.org'
|
||||
issuerRef:
|
||||
kind: ClusterIssuer
|
||||
name: letsencrypt-prod
|
||||
privateKey:
|
||||
rotationPolicy: Always
|
||||
secretName: wildcard-whyredfire-dpdns-org
|
||||
Reference in New Issue
Block a user