mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 06:29:09 +01:00
Compare commits
249
Commits
28e75498ff
...
requests
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bb1422594 | ||
|
|
72f49bed51 | ||
|
|
f4b42757cd | ||
|
|
f529bd99ee | ||
|
|
74dec430b8 | ||
|
|
6fe0acc061 | ||
|
|
bb34b601d9 | ||
|
|
e98668d5fa | ||
|
|
389f911823 | ||
|
|
8f1c6a5b6e | ||
|
|
770631fdc0 | ||
|
|
855317b84d | ||
|
|
d69f2638d1 | ||
|
|
90e552c9f5 | ||
|
|
ad14995ba0 | ||
|
|
c359384ade | ||
|
|
a4fc386ee8 | ||
|
|
0dc0bc4322 | ||
|
|
d843f31d86 | ||
|
|
da23357946 | ||
|
|
b9d88f41b9 | ||
|
|
3c4a8cc8db | ||
|
|
d17e78130d | ||
|
|
22c5a325d6 | ||
|
|
ef07307f93 | ||
|
|
aa940134ea | ||
|
|
f86ed09cd8 | ||
|
|
6d2bc379ba | ||
|
|
67c21c30d8 | ||
|
|
0c52d8a467 | ||
|
|
f2e4c5aff6 | ||
|
|
d836e4608c | ||
|
|
1f56e67e8b | ||
|
|
cadac4cebf | ||
|
|
bc71061db7 | ||
|
|
7d3a64e5c8 | ||
|
|
e137e79b75 | ||
|
|
67dc4f0783 | ||
|
|
684f536f2f | ||
|
|
1439466af4 | ||
|
|
57514c3c14 | ||
|
|
57851bf43a | ||
|
|
ada909ee02 | ||
|
|
345de16552 | ||
|
|
7396cc3ed6 | ||
|
|
26ca83457c | ||
|
|
4709194483 | ||
|
|
ad2d6fbae5 | ||
|
|
077711472e | ||
|
|
43f741141d | ||
|
|
cbee4955d3 | ||
|
|
a70dff6fdd | ||
|
|
ab0a09a356 | ||
|
|
b2649a682c | ||
|
|
ce3846bcd3 | ||
|
|
96c13c63f7 | ||
|
|
70151b0ef4 | ||
|
|
f5e8b1e633 | ||
|
|
ae2e5ad9fa | ||
|
|
8cf87483d6 | ||
|
|
c5d2ebaefc | ||
|
|
5f8394e0c0 | ||
|
|
396eb2665c | ||
|
|
858904384c | ||
|
|
9014898fc5 | ||
|
|
111a9ddcea | ||
|
|
a8296a514e | ||
|
|
712fa1fe65 | ||
|
|
c3505bc8e3 | ||
|
|
6c6f473f63 | ||
|
|
a5478d60e6 | ||
|
|
88f68cd698 | ||
|
|
f69b790a58 | ||
|
|
71af3a9342 | ||
|
|
348cce6d5d | ||
|
|
abed11dbaa | ||
|
|
86a0c59c6b | ||
|
|
ebf28c1bf1 | ||
|
|
135bca4a83 | ||
|
|
1c6b42b20b | ||
|
|
f3f36c3718 | ||
|
|
399387bfb7 | ||
|
|
48b0873ca3 | ||
|
|
278f6fc55f | ||
|
|
f4e74a9503 | ||
|
|
c270bcc12b | ||
|
|
14e61ee5ee | ||
|
|
e7696107c0 | ||
|
|
a8a186b4d3 | ||
|
|
8596e8a428 | ||
|
|
251f22c46f | ||
|
|
60ff978b1b | ||
|
|
6517c21937 | ||
|
|
8357d31f9c | ||
|
|
5208379310 | ||
|
|
f2936e69ec | ||
|
|
7c8cd28f71 | ||
|
|
f901beea4c | ||
|
|
04a2a2aed2 | ||
|
|
947a705016 | ||
|
|
416356b4d5 | ||
|
|
d747530f52 | ||
|
|
f0519d1b70 | ||
|
|
acc3d7eabb | ||
|
|
96870af92f | ||
|
|
a0fcf9ec3f | ||
|
|
b19c776728 | ||
|
|
514fcd8dd4 | ||
|
|
bd8643c00b | ||
|
|
1926ccc42a | ||
|
|
e3074b43ad | ||
|
|
04ac64f956 | ||
|
|
e490c79e78 | ||
|
|
e95d78e160 | ||
|
|
b60d3b5589 | ||
|
|
175769d36c | ||
|
|
c55b7ceab5 | ||
|
|
67abb0b972 | ||
|
|
a07ef664cb | ||
|
|
0a810817b6 | ||
|
|
1f04831a97 | ||
|
|
48f5c7d894 | ||
|
|
910b792452 | ||
|
|
009b8ce510 | ||
|
|
23aaf5ab26 | ||
|
|
b360483210 | ||
|
|
134774509d | ||
|
|
69a0661d09 | ||
|
|
d1efb91a4b | ||
|
|
f4377616e6 | ||
|
|
8e508080d7 | ||
|
|
7475199ca5 | ||
|
|
a20808b752 | ||
|
|
3a250b65cc | ||
|
|
43a62ff48f | ||
|
|
2c4164ad22 | ||
|
|
336c37ca50 | ||
|
|
5427666ff9 | ||
|
|
c3830cd9d7 | ||
|
|
6a782ff174 | ||
|
|
6508335914 | ||
|
|
69edd7ef4c | ||
|
|
01470a260c | ||
|
|
f174ddee8f | ||
|
|
62043940e8 | ||
|
|
8a60dbc5ea | ||
|
|
f9111bd17b | ||
|
|
0e6e9dc323 | ||
|
|
288714af21 | ||
|
|
66debf1e3c | ||
|
|
108455de9c | ||
|
|
69444a4ac0 | ||
|
|
30bc62a453 | ||
|
|
2b7b1799a4 | ||
|
|
00de7483d4 | ||
|
|
bde9245497 | ||
|
|
c2bece55d2 | ||
|
|
0bf2245c26 | ||
|
|
af99a17ff4 | ||
|
|
8cc26bb412 | ||
|
|
c6424cc4a5 | ||
|
|
12a1f80902 | ||
|
|
39cc61236f | ||
|
|
42fc278f74 | ||
|
|
94fc9aeb52 | ||
|
|
724afbf4f7 | ||
|
|
cef4466925 | ||
|
|
660cb82922 | ||
|
|
f31a31cfde | ||
|
|
4b7682f12e | ||
|
|
3b5708fd64 | ||
|
|
6cac51ebfa | ||
|
|
c5bb001287 | ||
|
|
7acb7eaa8c | ||
|
|
9e31727298 | ||
|
|
e62728027b | ||
|
|
183686ea34 | ||
|
|
950d4807f2 | ||
|
|
3db1ee84a5 | ||
|
|
04e862d453 | ||
|
|
096eb60f8c | ||
|
|
2a2594a987 | ||
|
|
b86942077a | ||
|
|
6b81033f70 | ||
|
|
e518e1368f | ||
|
|
9b9bd8bad0 | ||
|
|
7eb69b17e1 | ||
|
|
b0ed6fdad1 | ||
|
|
9cf0c7f9e9 | ||
|
|
8a409c6a5b | ||
|
|
8cb8b28cd9 | ||
|
|
bdbabde317 | ||
|
|
bd2606591e | ||
|
|
ce1115d4f9 | ||
|
|
f36b90557b | ||
|
|
629d137c1e | ||
|
|
1582f67cda | ||
|
|
b4d7845349 | ||
|
|
9d4c9c8296 | ||
|
|
822270d8b3 | ||
|
|
ce881ac7d7 | ||
|
|
0514a4248a | ||
|
|
d0b36b6542 | ||
|
|
7bb7813d1d | ||
|
|
53f01c65dc | ||
|
|
a73bdb8fb4 | ||
|
|
f390b3a70d | ||
|
|
fae03f3b8b | ||
|
|
f2c1b9ac06 | ||
|
|
119f7729f6 | ||
|
|
6da1b3e88e | ||
|
|
8aaf2ec8ec | ||
|
|
f2716e1169 | ||
|
|
a10dbecc94 | ||
|
|
2ce9c33dbd | ||
|
|
8a66913a54 | ||
|
|
1f736cd4c7 | ||
|
|
e5d82b69fd | ||
|
|
fe678d4b4b | ||
|
|
ff73f99d43 | ||
|
|
ea86611deb | ||
|
|
7820b8e0bf | ||
|
|
de7ca770a0 | ||
|
|
767facc5e2 | ||
|
|
746cd1283e | ||
|
|
345055e3e6 | ||
|
|
f52b6973e1 | ||
|
|
177dbef15b | ||
|
|
103aed46ed | ||
|
|
9a984c724c | ||
|
|
3e45ddaf4a | ||
|
|
842f087da7 | ||
|
|
307bd23500 | ||
|
|
6d9e405126 | ||
|
|
dfdc4451fb | ||
|
|
e19f4b8db5 | ||
|
|
8c2bd89444 | ||
|
|
400d46c462 | ||
|
|
25a6bf3a05 | ||
|
|
a507282103 | ||
|
|
19eacd35f7 | ||
|
|
bb7e2f2bac | ||
|
|
1efa132f9d | ||
|
|
054117ad6d | ||
|
|
ac61c346af | ||
|
|
e23779044f | ||
|
|
53a079dc22 | ||
|
|
3ffb10b627 | ||
|
|
145f4eaac4 |
No files matched your search
@@ -0,0 +1,56 @@
|
|||||||
|
# Renders every Argo CD app the way Argo CD does and validates the result
|
||||||
|
# (tools/ci/validate.py), so a broken manifest or a Renovate bump that no
|
||||||
|
# longer renders shows up on the PR instead of in a failed sync.
|
||||||
|
name: validate
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: validate-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
timeout-minutes: 20
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Install helm, kustomize and kubeconform
|
||||||
|
env:
|
||||||
|
# Helm 4.2, like Argo CD 3.5.
|
||||||
|
# renovate: datasource=github-releases depName=helm/helm
|
||||||
|
HELM_VERSION: v4.2.1
|
||||||
|
# renovate: datasource=github-releases depName=kubernetes-sigs/kustomize extractVersion=^kustomize/(?<version>.+)$
|
||||||
|
KUSTOMIZE_VERSION: v5.8.3
|
||||||
|
# renovate: datasource=github-releases depName=yannh/kubeconform
|
||||||
|
KUBECONFORM_VERSION: v0.8.0
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
cd "$RUNNER_TEMP"
|
||||||
|
curl -sSfLO "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz"
|
||||||
|
curl -sSfL "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz.sha256sum" | sha256sum -c -
|
||||||
|
k="https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}"
|
||||||
|
curl -sSfLO "$k/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz"
|
||||||
|
curl -sSfL "$k/checksums.txt" | grep " kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz$" | sha256sum -c -
|
||||||
|
c="https://github.com/yannh/kubeconform/releases/download/${KUBECONFORM_VERSION}"
|
||||||
|
curl -sSfLO "$c/kubeconform-linux-amd64.tar.gz"
|
||||||
|
curl -sSfL "$c/CHECKSUMS" | grep " kubeconform-linux-amd64.tar.gz$" | sha256sum -c -
|
||||||
|
mkdir -p bin
|
||||||
|
tar xzf "helm-${HELM_VERSION}-linux-amd64.tar.gz" -C bin --strip-components=1 linux-amd64/helm
|
||||||
|
tar xzf "kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz" -C bin kustomize
|
||||||
|
tar xzf kubeconform-linux-amd64.tar.gz -C bin kubeconform
|
||||||
|
echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH"
|
||||||
|
pip install --quiet pyyaml==6.0.3
|
||||||
|
|
||||||
|
- name: Render and validate
|
||||||
|
run: python3 tools/ci/validate.py
|
||||||
@@ -6,3 +6,4 @@ velero-credentials
|
|||||||
nix-infra-machine/ssh/
|
nix-infra-machine/ssh/
|
||||||
nix-infra-machine/.env
|
nix-infra-machine/.env
|
||||||
nix-infra-machine/nix/
|
nix-infra-machine/nix/
|
||||||
|
.DS_Store
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# The TLS certificate the Gateway serves for this app (see httproute.yaml).
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: actual-budget-tls
|
||||||
|
spec:
|
||||||
|
secretName: actual-budget-tls
|
||||||
|
dnsNames:
|
||||||
|
- ynab.rubenhensen.nl
|
||||||
|
issuerRef:
|
||||||
|
group: cert-manager.io
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: prod-cluster-issuer
|
||||||
|
usages:
|
||||||
|
- digital signature
|
||||||
|
- key encipherment
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: actualbudget-oidc-client-secret
|
name: actualbudget-oidc-client-secret
|
||||||
|
|||||||
@@ -36,29 +36,26 @@ spec:
|
|||||||
|
|
||||||
extraEnvVars:
|
extraEnvVars:
|
||||||
ACTUAL_OPENID_SERVER_HOSTNAME: https://ynab.rubenhensen.nl
|
ACTUAL_OPENID_SERVER_HOSTNAME: https://ynab.rubenhensen.nl
|
||||||
|
# Node trusts its built-in roots, which still include the ones
|
||||||
|
# above the compromised eMudhra intermediates. Use patched-ca-bundle
|
||||||
|
# through OpenSSL instead until Node ships a fix.
|
||||||
|
NODE_OPTIONS: --use-openssl-ca
|
||||||
|
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
|
||||||
# Service configuration
|
# Service configuration
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 5006
|
port: 5006
|
||||||
|
|
||||||
# Ingress configuration
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
className: nginx
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: 50m
|
|
||||||
hosts:
|
|
||||||
- host: ynab.rubenhensen.nl
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
tls:
|
|
||||||
- secretName: actual-budget-tls
|
|
||||||
hosts:
|
|
||||||
- ynab.rubenhensen.nl
|
|
||||||
|
|
||||||
# Persistence configuration
|
# Persistence configuration
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: actual-budget
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: homelab
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: https-ynab
|
||||||
|
hostnames:
|
||||||
|
- ynab.rubenhensen.nl
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: helm-actual-budget-actualbudget
|
||||||
|
port: 5006
|
||||||
|
# No limit on the whole request, as with nginx. Envoy's default of 15s
|
||||||
|
# cuts off uploads and long-lived connections.
|
||||||
|
timeouts:
|
||||||
|
request: 0s
|
||||||
|
---
|
||||||
|
# Lets the Gateway serve the certificate cert-manager keeps in this namespace.
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: ReferenceGrant
|
||||||
|
metadata:
|
||||||
|
name: gateway-tls
|
||||||
|
spec:
|
||||||
|
from:
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: Gateway
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
to:
|
||||||
|
- group: ""
|
||||||
|
kind: Secret
|
||||||
|
name: actual-budget-tls
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
# Actual faces the internet through Envoy, so its pods only reach each
|
||||||
|
# other, DNS and the internet: not the LAN (NAS, router), the Kubernetes
|
||||||
|
# API or other namespaces.
|
||||||
|
# The OIDC login goes through authentik's public address.
|
||||||
|
# Ingress comes from Envoy and the node itself (kubelet probes; 10.1.7.64
|
||||||
|
# is the node's Calico VXLAN address, projectcalico.org/IPv4VXLANTunnelAddr).
|
||||||
|
# Same layout as mbgwp/networkpolicy.yaml.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: default
|
||||||
|
spec:
|
||||||
|
podSelector: {}
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- podSelector: {}
|
||||||
|
- from:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 192.168.1.204/32
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 10.1.7.64/32
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: envoy-gateway-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: envoy
|
||||||
|
ports:
|
||||||
|
- port: 5006
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- podSelector: {}
|
||||||
|
- to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
port: 53
|
||||||
|
- protocol: TCP
|
||||||
|
port: 53
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 100.64.0.0/10
|
||||||
|
- 169.254.0.0/16
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
@@ -2,6 +2,9 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: argocd-folder
|
name: argocd-folder
|
||||||
|
annotations:
|
||||||
|
# Let the API server fill in Gateway API defaults before diffing.
|
||||||
|
argocd.argoproj.io/compare-options: ServerSideDiff=true
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
@@ -14,5 +17,8 @@ spec:
|
|||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
# From Argo CD 3.3 the ApplicationSet CRD is too big for client-side
|
||||||
|
# apply's last-applied annotation.
|
||||||
|
- ServerSideApply=true
|
||||||
automated:
|
automated:
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
sources:
|
sources:
|
||||||
- chart: authentik
|
- chart: authentik
|
||||||
repoURL: https://charts.goauthentik.io
|
repoURL: https://charts.goauthentik.io
|
||||||
targetRevision: 2026.2.1
|
targetRevision: 2026.8.5
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
authentik:
|
authentik:
|
||||||
@@ -86,8 +86,27 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: actualbudget-oidc-client-secret
|
name: actualbudget-oidc-client-secret
|
||||||
key: client_secret
|
key: client_secret
|
||||||
|
- name: LONGHORN_OIDC_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: longhorn-oidc-client-secret
|
||||||
|
key: client_secret
|
||||||
|
# Point OpenSSL and requests (which uses certifi otherwise) at
|
||||||
|
# patched-ca-bundle, mounted below until the image drops the
|
||||||
|
# compromised eMudhra intermediates.
|
||||||
|
- name: SSL_CERT_FILE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
|
- name: REQUESTS_CA_BUNDLE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
server:
|
server:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 70m
|
||||||
|
memory: 560Mi
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
- name: blueprint-vault
|
- name: blueprint-vault
|
||||||
configMap:
|
configMap:
|
||||||
name: authentik-blueprint-vault
|
name: authentik-blueprint-vault
|
||||||
@@ -109,6 +128,32 @@ spec:
|
|||||||
- name: blueprint-session
|
- name: blueprint-session
|
||||||
configMap:
|
configMap:
|
||||||
name: authentik-blueprint-session
|
name: authentik-blueprint-session
|
||||||
|
- name: blueprint-longhorn
|
||||||
|
configMap:
|
||||||
|
name: authentik-blueprint-longhorn
|
||||||
|
# Directory mounts, not subPath, so changes reach the pods
|
||||||
|
# without a restart. The secrets are optional: a blueprint
|
||||||
|
# that needs a missing one fails until it shows up.
|
||||||
|
- name: blueprint-scouting
|
||||||
|
configMap:
|
||||||
|
name: authentik-blueprint-scouting
|
||||||
|
- name: scouting-secrets
|
||||||
|
projected:
|
||||||
|
sources:
|
||||||
|
- secret:
|
||||||
|
name: immich-oidc-client-secret
|
||||||
|
optional: true
|
||||||
|
items:
|
||||||
|
- key: client_secret
|
||||||
|
path: immich-oidc-client-secret
|
||||||
|
- secret:
|
||||||
|
name: scouts-online-client
|
||||||
|
optional: true
|
||||||
|
items:
|
||||||
|
- key: client_id
|
||||||
|
path: scouts-online-client-id
|
||||||
|
- key: client_secret
|
||||||
|
path: scouts-online-client-secret
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: blueprint-vault
|
- name: blueprint-vault
|
||||||
mountPath: /blueprints/custom/vault-oidc.yaml
|
mountPath: /blueprints/custom/vault-oidc.yaml
|
||||||
@@ -131,19 +176,26 @@ spec:
|
|||||||
- name: blueprint-session
|
- name: blueprint-session
|
||||||
mountPath: /blueprints/custom/session-duration.yaml
|
mountPath: /blueprints/custom/session-duration.yaml
|
||||||
subPath: session-duration.yaml
|
subPath: session-duration.yaml
|
||||||
ingress:
|
- name: blueprint-longhorn
|
||||||
enabled: true
|
mountPath: /blueprints/custom/longhorn-oidc.yaml
|
||||||
ingressClassName: nginx
|
subPath: longhorn-oidc.yaml
|
||||||
annotations:
|
- name: blueprint-scouting
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
mountPath: /blueprints/custom/scouting
|
||||||
hosts:
|
- name: scouting-secrets
|
||||||
- authentik.rubenhensen.nl
|
mountPath: /secrets/scouting
|
||||||
tls:
|
readOnly: true
|
||||||
- secretName: authentik-tls
|
- name: patched-ca-bundle
|
||||||
hosts:
|
mountPath: /etc/ssl/certs
|
||||||
- authentik.rubenhensen.nl
|
readOnly: true
|
||||||
worker:
|
worker:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 336Mi
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
- name: blueprint-vault
|
- name: blueprint-vault
|
||||||
configMap:
|
configMap:
|
||||||
name: authentik-blueprint-vault
|
name: authentik-blueprint-vault
|
||||||
@@ -165,6 +217,32 @@ spec:
|
|||||||
- name: blueprint-session
|
- name: blueprint-session
|
||||||
configMap:
|
configMap:
|
||||||
name: authentik-blueprint-session
|
name: authentik-blueprint-session
|
||||||
|
- name: blueprint-longhorn
|
||||||
|
configMap:
|
||||||
|
name: authentik-blueprint-longhorn
|
||||||
|
# Directory mounts, not subPath, so changes reach the pods
|
||||||
|
# without a restart. The secrets are optional: a blueprint
|
||||||
|
# that needs a missing one fails until it shows up.
|
||||||
|
- name: blueprint-scouting
|
||||||
|
configMap:
|
||||||
|
name: authentik-blueprint-scouting
|
||||||
|
- name: scouting-secrets
|
||||||
|
projected:
|
||||||
|
sources:
|
||||||
|
- secret:
|
||||||
|
name: immich-oidc-client-secret
|
||||||
|
optional: true
|
||||||
|
items:
|
||||||
|
- key: client_secret
|
||||||
|
path: immich-oidc-client-secret
|
||||||
|
- secret:
|
||||||
|
name: scouts-online-client
|
||||||
|
optional: true
|
||||||
|
items:
|
||||||
|
- key: client_id
|
||||||
|
path: scouts-online-client-id
|
||||||
|
- key: client_secret
|
||||||
|
path: scouts-online-client-secret
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: blueprint-vault
|
- name: blueprint-vault
|
||||||
mountPath: /blueprints/custom/vault-oidc.yaml
|
mountPath: /blueprints/custom/vault-oidc.yaml
|
||||||
@@ -187,14 +265,19 @@ spec:
|
|||||||
- name: blueprint-session
|
- name: blueprint-session
|
||||||
mountPath: /blueprints/custom/session-duration.yaml
|
mountPath: /blueprints/custom/session-duration.yaml
|
||||||
subPath: session-duration.yaml
|
subPath: session-duration.yaml
|
||||||
|
- name: blueprint-longhorn
|
||||||
|
mountPath: /blueprints/custom/longhorn-oidc.yaml
|
||||||
|
subPath: longhorn-oidc.yaml
|
||||||
|
- name: blueprint-scouting
|
||||||
|
mountPath: /blueprints/custom/scouting
|
||||||
|
- name: scouting-secrets
|
||||||
|
mountPath: /secrets/scouting
|
||||||
|
readOnly: true
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: false
|
enabled: false
|
||||||
redis:
|
|
||||||
enabled: true
|
|
||||||
master:
|
|
||||||
persistence:
|
|
||||||
storageClass: longhorn
|
|
||||||
size: 2Gi
|
|
||||||
- repoURL: https://github.com/rubenhensen/k8scd.git
|
- repoURL: https://github.com/rubenhensen/k8scd.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: authentik
|
path: authentik
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: ip-updater
|
name: ca-bundle
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
finalizers:
|
finalizers:
|
||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
@@ -10,13 +10,12 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
repoURL: https://github.com/rubenhensen/k8scd.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: ip-updater
|
path: ca-bundle
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: ip-updater
|
# Every ConfigMap sets its own namespace.
|
||||||
|
namespace: argocd
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
automated:
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
prune: true
|
prune: true
|
||||||
@@ -12,12 +12,42 @@ spec:
|
|||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
repoURL: https://charts.jetstack.io
|
repoURL: https://charts.jetstack.io
|
||||||
targetRevision: v1.15.5
|
targetRevision: v1.21.2
|
||||||
chart: cert-manager
|
chart: cert-manager
|
||||||
helm:
|
helm:
|
||||||
parameters:
|
parameters:
|
||||||
- name: crds.enabled
|
- name: crds.enabled
|
||||||
value: 'true'
|
value: 'true'
|
||||||
|
# The controller talks ACME to Let's Encrypt. Give it a trust store
|
||||||
|
# without the compromised eMudhra intermediates, see ca-bundle/.
|
||||||
|
values: |
|
||||||
|
# Lets cert-manager solve HTTP-01 challenges with an HTTPRoute on
|
||||||
|
# the Gateway, see cert-manager/prod-cluster-issuer.yaml.
|
||||||
|
config:
|
||||||
|
gatewayAPI:
|
||||||
|
enabled: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 48Mi
|
||||||
|
cainjector:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 80Mi
|
||||||
|
webhook:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
|||||||
@@ -10,10 +10,24 @@ spec:
|
|||||||
source:
|
source:
|
||||||
chart: cloudnative-pg
|
chart: cloudnative-pg
|
||||||
repoURL: https://cloudnative-pg.github.io/charts
|
repoURL: https://cloudnative-pg.github.io/charts
|
||||||
targetRevision: 0.23.2
|
targetRevision: 0.29.1
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
# Default values are fine
|
config:
|
||||||
|
data:
|
||||||
|
# Swap the instance manager inside running pods on operator
|
||||||
|
# upgrades instead of restarting them. Both clusters have a
|
||||||
|
# single instance, so a restart means downtime.
|
||||||
|
ENABLE_INSTANCE_MANAGER_INPLACE_UPDATES: "true"
|
||||||
|
# Ride out dqlite stalls of up to ~40s instead of restarting when a
|
||||||
|
# lease renewal takes over 10s (docs/upgrade-k8s-1.33.md).
|
||||||
|
additionalArgs:
|
||||||
|
- --leader-lease-duration=60
|
||||||
|
- --leader-renew-deadline=40
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 48Mi
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: cnpg-system
|
namespace: cnpg-system
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: helm-envoy-gateway
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
# No scheme, so Argo CD pulls the chart from the OCI registry.
|
||||||
|
repoURL: docker.io/envoyproxy
|
||||||
|
chart: gateway-helm
|
||||||
|
# v1.9 supports Kubernetes 1.33 to 1.36
|
||||||
|
targetRevision: v1.9.2
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
config:
|
||||||
|
envoyGateway:
|
||||||
|
provider:
|
||||||
|
kubernetes:
|
||||||
|
# Ride out dqlite stalls of up to ~40s instead of restarting
|
||||||
|
# when a lease renewal takes over 10s
|
||||||
|
# (docs/upgrade-k8s-1.33.md).
|
||||||
|
leaderElection:
|
||||||
|
leaseDuration: 60s
|
||||||
|
renewDeadline: 40s
|
||||||
|
retryPeriod: 5s
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
# The bundled Gateway API CRDs are too big for client-side apply.
|
||||||
|
- ServerSideApply=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
@@ -9,13 +9,31 @@ spec:
|
|||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
# From 0.19 the ESO CRDs are too big for client-side apply.
|
||||||
|
- ServerSideApply=true
|
||||||
automated:
|
automated:
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
project: default
|
project: default
|
||||||
sources:
|
sources:
|
||||||
- chart: external-secrets
|
- chart: external-secrets
|
||||||
repoURL: https://charts.external-secrets.io
|
repoURL: https://charts.external-secrets.io
|
||||||
targetRevision: 0.10.7
|
targetRevision: 2.13.0
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 64Mi
|
||||||
|
certController:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 64Mi
|
||||||
|
webhook:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: external-secrets
|
namespace: external-secrets
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: phocas-lustrum
|
name: gateway-folder
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
# Let the API server fill in Gateway API defaults before diffing, or
|
||||||
|
# every defaulted field shows up as a difference.
|
||||||
|
argocd.argoproj.io/compare-options: ServerSideDiff=true
|
||||||
finalizers:
|
finalizers:
|
||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
@@ -10,12 +14,13 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
repoURL: https://github.com/rubenhensen/k8scd.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: phocas-lustrum
|
path: gateway
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: phocas-lustrum
|
namespace: envoy-gateway-system
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- ServerSideApply=true
|
||||||
automated:
|
automated:
|
||||||
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: ghost-blog
|
name: gatus-folder
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
finalizers:
|
finalizers:
|
||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
@@ -10,12 +10,15 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
repoURL: https://github.com/rubenhensen/k8scd.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: ghost-blog
|
path: gatus
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: ghost-blog
|
namespace: gatus
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
automated:
|
automated:
|
||||||
|
# Each config change generates a new gatus-config-<hash> ConfigMap;
|
||||||
|
# prune removes the old one.
|
||||||
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
@@ -5,6 +5,10 @@ metadata:
|
|||||||
namespace: argocd
|
namespace: argocd
|
||||||
finalizers:
|
finalizers:
|
||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
# Argo CD 3.x adds these for apps with PreDelete hooks (the Longhorn
|
||||||
|
# chart has one). Listed here so the parent app doesn't see a diff.
|
||||||
|
- pre-delete-finalizer.argocd.argoproj.io
|
||||||
|
- pre-delete-finalizer.argocd.argoproj.io/cleanup
|
||||||
spec:
|
spec:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
@@ -16,13 +20,38 @@ spec:
|
|||||||
sources:
|
sources:
|
||||||
- chart: longhorn
|
- chart: longhorn
|
||||||
repoURL: https://charts.longhorn.io/
|
repoURL: https://charts.longhorn.io/
|
||||||
targetRevision: 1.7.3 # Replace with the Longhorn version you'd like to install or upgrade to
|
# One minor at a time; each upgrade moves every volume to the new
|
||||||
|
# engine image before the next.
|
||||||
|
targetRevision: 1.13.0
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
persistence:
|
persistence:
|
||||||
defaultClassReplicaCount: 1
|
defaultClassReplicaCount: 1
|
||||||
preUpgradeChecker:
|
preUpgradeChecker:
|
||||||
jobEnabled: false
|
jobEnabled: false
|
||||||
|
# restrictInternalTraffic is on by default since 1.12: only Longhorn
|
||||||
|
# components may reach the longhorn-manager API (otherwise any pod
|
||||||
|
# could manage volumes unauthenticated). Since 1.13 iSCSI (3260)
|
||||||
|
# stays open to the host-side initiator.
|
||||||
|
# From 1.13 the CSI controller may read every Secret in the cluster,
|
||||||
|
# for provisioner-secret StorageClass parameters. Neither
|
||||||
|
# StorageClass here uses those.
|
||||||
|
csi:
|
||||||
|
allowControllerSecretAccess: false
|
||||||
|
# New in 1.13, three replicas by default; this cluster has one node.
|
||||||
|
longhornGlobalManager:
|
||||||
|
replicas: 1
|
||||||
|
# Since 1.8 the backup target is a BackupTarget resource instead of
|
||||||
|
# the backup-target setting.
|
||||||
|
defaultBackupStore:
|
||||||
|
backupTarget: nfs://192.168.1.99:/volume1/microk8s-nfs
|
||||||
|
# Every poll rewrites the backupvolume objects, about 8% of all
|
||||||
|
# datastore writes at 300s. Backups only run nightly.
|
||||||
|
pollInterval: 1800
|
||||||
|
defaultSettings:
|
||||||
|
# Move volumes to the new engine image after each Longhorn
|
||||||
|
# upgrade, one at a time. At 0 they stayed behind on 1.7.1/1.7.2.
|
||||||
|
concurrentAutomaticEngineUpgradePerNodeLimit: 1
|
||||||
parameters:
|
parameters:
|
||||||
- name: csi.kubeletRootDir
|
- name: csi.kubeletRootDir
|
||||||
value: "/var/snap/microk8s/common/var/lib/kubelet"
|
value: "/var/snap/microk8s/common/var/lib/kubelet"
|
||||||
|
|||||||
@@ -16,11 +16,13 @@ spec:
|
|||||||
chart: wordpress
|
chart: wordpress
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
# Official WordPress image configuration
|
# Official WordPress image configuration. WordPress core lives on the
|
||||||
|
# volume, so the tag only sets PHP and Apache; 7.1.3-php8.3-apache
|
||||||
|
# ships PHP 8.3.36, which fixes CVE-2026-109618 and CVE-2026-109619.
|
||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: wordpress
|
repository: wordpress
|
||||||
tag: "6.9.1-apache"
|
tag: "7.1.3-php8.3-apache"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# Disable embedded MariaDB
|
# Disable embedded MariaDB
|
||||||
@@ -66,29 +68,6 @@ spec:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
# Ingress configuration
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
className: nginx
|
|
||||||
maxBodySize: 1024m
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: 1G
|
|
||||||
hosts:
|
|
||||||
- host: scoutingmbg.nl
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
- host: www.scoutingmbg.nl
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
tls:
|
|
||||||
- secretName: scoutingmbg-nl-tls
|
|
||||||
hosts:
|
|
||||||
- scoutingmbg.nl
|
|
||||||
- www.scoutingmbg.nl
|
|
||||||
|
|
||||||
# Resource limits (matching Bitnami "small" preset)
|
# Resource limits (matching Bitnami "small" preset)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: metrics-server
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
chart: metrics-server
|
||||||
|
repoURL: https://kubernetes-sigs.github.io/metrics-server/
|
||||||
|
targetRevision: 3.14.0
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
# Resource usage for kubectl top and for sizing requests and limits.
|
||||||
|
# It keeps everything in memory, so it adds no writes to the SSD.
|
||||||
|
args:
|
||||||
|
# microk8s's kubelet serves a self-signed certificate; its own
|
||||||
|
# metrics-server addon passes the same flag.
|
||||||
|
- --kubelet-insecure-tls
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
memory: 256Mi
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: kube-system
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: nas
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: nas
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: nas
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: lingo
|
name: ntfy-folder
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
finalizers:
|
finalizers:
|
||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
@@ -10,10 +10,10 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
repoURL: https://github.com/rubenhensen/k8scd.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: lingo
|
path: ntfy
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: lingo
|
namespace: ntfy
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: secrets-folder
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: secrets
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: secrets
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -9,14 +9,29 @@ spec:
|
|||||||
repoURL: https://github.com/kubernetes-csi/external-snapshotter.git
|
repoURL: https://github.com/kubernetes-csi/external-snapshotter.git
|
||||||
targetRevision: v8.2.1
|
targetRevision: v8.2.1
|
||||||
path: deploy/kubernetes/snapshot-controller
|
path: deploy/kubernetes/snapshot-controller
|
||||||
|
kustomize:
|
||||||
|
patches:
|
||||||
|
# Ride out dqlite stalls of up to ~40s instead of restarting when a
|
||||||
|
# lease renewal takes over 10s (docs/upgrade-k8s-1.33.md).
|
||||||
|
- target:
|
||||||
|
kind: Deployment
|
||||||
|
name: snapshot-controller
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/args/-
|
||||||
|
value: --leader-election-lease-duration=60s
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/args/-
|
||||||
|
value: --leader-election-renew-deadline=40s
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/args/-
|
||||||
|
value: --leader-election-retry-period=5s
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
|
# Was listed twice, with and without prune; Argo CD kept the last one.
|
||||||
automated:
|
automated:
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
prune: true
|
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: stalwart
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: stalwart
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: stalwart
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
prune: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: whisper
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: whishper
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: whisper
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# The TLS certificate the Gateway serves for this app (see httproute.yaml).
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
spec:
|
||||||
|
secretName: letsencrypt-prod
|
||||||
|
dnsNames:
|
||||||
|
- argocd.rubenhensen.nl
|
||||||
|
issuerRef:
|
||||||
|
group: cert-manager.io
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: prod-cluster-issuer
|
||||||
|
usages:
|
||||||
|
- digital signature
|
||||||
|
- key encipherment
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: argocd
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: homelab
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: https-argocd
|
||||||
|
hostnames:
|
||||||
|
- argocd.rubenhensen.nl
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: argocd-server
|
||||||
|
port: 80
|
||||||
|
# No limit on the whole request, as with nginx. Envoy's default of 15s
|
||||||
|
# cuts off uploads and long-lived connections.
|
||||||
|
timeouts:
|
||||||
|
request: 0s
|
||||||
|
---
|
||||||
|
# Lets the Gateway serve the certificate cert-manager keeps in this namespace.
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: ReferenceGrant
|
||||||
|
metadata:
|
||||||
|
name: gateway-tls
|
||||||
|
spec:
|
||||||
|
from:
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: Gateway
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
to:
|
||||||
|
- group: ""
|
||||||
|
kind: Secret
|
||||||
|
name: letsencrypt-prod
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: argocd-server-ingress
|
|
||||||
annotations:
|
|
||||||
# nginx.ingress.kubernetes.io/rewrite-target: /
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
||||||
# If you encounter a redirect loop or are getting a 307 response code
|
|
||||||
# then you need to force the nginx ingress to connect to the backend using HTTPS.
|
|
||||||
#
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: argocd.rubenhensen.nl
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: argocd-server
|
|
||||||
port:
|
|
||||||
name: https
|
|
||||||
tls:
|
|
||||||
- secretName: letsencrypt-prod
|
|
||||||
hosts:
|
|
||||||
- argocd.rubenhensen.nl
|
|
||||||
|
|
||||||
@@ -4,10 +4,11 @@ kind: Kustomization
|
|||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
|
||||||
|
|
||||||
# additional resources like ingress rules, cluster and repository secrets.
|
# additional resources like the route, certificate and secrets.
|
||||||
resources:
|
resources:
|
||||||
- https://raw.githubusercontent.com/argoproj/argo-cd/refs/tags/v2.14.2/manifests/install.yaml
|
- https://raw.githubusercontent.com/argoproj/argo-cd/refs/tags/v3.5.6/manifests/install.yaml
|
||||||
- ingress.yaml
|
- certificate.yaml
|
||||||
|
- httproute.yaml
|
||||||
- oidc-secret.yaml
|
- oidc-secret.yaml
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
@@ -19,3 +20,6 @@ patches:
|
|||||||
path: overlays/argocd-notifications-controller-patch.yaml
|
path: overlays/argocd-notifications-controller-patch.yaml
|
||||||
- path: overlays/argocd-cm.patch.yaml
|
- path: overlays/argocd-cm.patch.yaml
|
||||||
- path: overlays/argocd-rbac-cm.patch.yaml
|
- path: overlays/argocd-rbac-cm.patch.yaml
|
||||||
|
- path: overlays/argocd-cmd-params-cm.patch.yaml
|
||||||
|
- path: overlays/patched-ca-bundle.patch.yaml
|
||||||
|
- path: overlays/resources.patch.yaml
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: argocd-oidc-secret
|
name: argocd-oidc-secret
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: argocd-cm
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: argocd-cm
|
|
||||||
app.kubernetes.io/part-of: argocd
|
|
||||||
data:
|
|
||||||
# kustomize.buildOptions: "--enable-helm"
|
|
||||||
resource.exclusions: |
|
|
||||||
- apiGroups:
|
|
||||||
- "velero.io"
|
|
||||||
kinds:
|
|
||||||
- "Backup"
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: argocd-cmd-params-cm
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argocd-cmd-params-cm
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
data:
|
||||||
|
# TLS ends at the Gateway, so argocd-server serves plain HTTP. The Gateway
|
||||||
|
# API has no simple way to trust argocd-server's self-signed cert.
|
||||||
|
server.insecure: "true"
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
# Mount patched-ca-bundle (from ca-bundle/) over /etc/ssl/certs so git, helm
|
||||||
|
# and the Go binaries stop trusting the compromised eMudhra intermediates.
|
||||||
|
# The whole directory is replaced because OpenSSL and Go also read the
|
||||||
|
# per-root files next to ca-certificates.crt. Drop this once Argo CD ships a
|
||||||
|
# fixed image.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-server
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-server
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-repo-server
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-repo-server
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: argocd-application-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-application-controller
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-applicationset-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-applicationset-controller
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-notifications-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-notifications-controller
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-dex-server
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: dex
|
||||||
|
volumeMounts:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
# Requests from what the components used on 2026-10-25 (kubectl top every
|
||||||
|
# 5 minutes; highest value plus 10%). No limits until there are daytime
|
||||||
|
# numbers, see docs/roadmap.md.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: argocd-application-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-application-controller
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 150m
|
||||||
|
memory: 704Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-repo-server
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-repo-server
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-server
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-server
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 64Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-redis
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: redis
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 96Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-applicationset-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-applicationset-controller
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 48Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-notifications-controller
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-notifications-controller
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 48Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: argocd-dex-server
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: dex
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 32Mi
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: webhook-es
|
name: webhook-es
|
||||||
|
|||||||
+26
-3
@@ -14,7 +14,11 @@ Authentik is deployed as the central identity provider, providing OIDC and LDAP
|
|||||||
- `blueprint-argocd-oidc.yaml` — OIDC provider for ArgoCD
|
- `blueprint-argocd-oidc.yaml` — OIDC provider for ArgoCD
|
||||||
- `blueprint-freshrss-oidc.yaml` — OIDC provider for FreshRSS
|
- `blueprint-freshrss-oidc.yaml` — OIDC provider for FreshRSS
|
||||||
- `blueprint-actualbudget-proxy.yaml` — Proxy provider for Actual Budget
|
- `blueprint-actualbudget-proxy.yaml` — Proxy provider for Actual Budget
|
||||||
|
- `blueprint-longhorn-oidc.yaml` — OIDC provider for Longhorn (Envoy Gateway SecurityPolicy)
|
||||||
|
- `blueprint-scouting.yaml` — immich's login with Scouts Online, see docs/immich-scouts-online.md
|
||||||
- `blueprint-session-duration.yaml` — Session lifetime of the default authentication flow
|
- `blueprint-session-duration.yaml` — Session lifetime of the default authentication flow
|
||||||
|
- **NetworkPolicies** (`networkpolicy.yaml`) — the pods reach each other, DNS and the internet,
|
||||||
|
not the LAN or other namespaces; the worker and the database also reach the API server
|
||||||
|
|
||||||
## Session lifetime
|
## Session lifetime
|
||||||
|
|
||||||
@@ -30,9 +34,23 @@ Apache mod_auth_openidc refreshes on every request.
|
|||||||
|
|
||||||
## LDAP Outpost
|
## LDAP Outpost
|
||||||
|
|
||||||
The LDAP outpost exposes Authentik's user directory over LDAP. It is used by:
|
The LDAP outpost exposes Authentik's user directory over LDAP. It is used by
|
||||||
- **SOGo-mail** (in-cluster) — connects via `ak-outpost-ldap-outpost.authentik.svc.cluster.local:3389`
|
**Stalwart** (NixOS on node001), which connects via `ldap.rubenhensen.nl:389`.
|
||||||
- **Stalwart** (NixOS, external) — connects via `ldap.rubenhensen.nl:389`
|
The outpost itself talks to the server through `https://authentik.rubenhensen.nl/`.
|
||||||
|
|
||||||
|
Authentik's worker deploys the outpost and keeps its version equal to the
|
||||||
|
server's. After the upgrades to 2026.5 and 2026.8 it didn't follow on its
|
||||||
|
own; this rolls it over:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl -n authentik exec deploy/authentik-worker -- ak shell -c '
|
||||||
|
from authentik.outposts.models import Outpost
|
||||||
|
from authentik.outposts.tasks import outpost_controller
|
||||||
|
outpost_controller.send(Outpost.objects.get(name="LDAP outpost").pk)'
|
||||||
|
```
|
||||||
|
|
||||||
|
Upgrades go one release at a time (2026.2 → 2026.5 → 2026.8); since 2026.8
|
||||||
|
authentik refuses to skip one.
|
||||||
|
|
||||||
### NodePort Service
|
### NodePort Service
|
||||||
|
|
||||||
@@ -87,3 +105,8 @@ microk8s config > ~/.kube/config
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Note:** This must be re-applied after MicroK8s upgrades or cert rotations, as MicroK8s may regenerate the CA without the extension. The fix needs to run on every node in the cluster.
|
**Note:** This must be re-applied after MicroK8s upgrades or cert rotations, as MicroK8s may regenerate the CA without the extension. The fix needs to run on every node in the cluster.
|
||||||
|
|
||||||
|
Checked 2026-10-25: the CA from this fix (`CN=microk8s-ca`, 2026-03-21, valid
|
||||||
|
until 2036) still has the extension after the refreshes to 1.34, 1.35 and
|
||||||
|
1.36. Check with
|
||||||
|
`openssl x509 -in /var/snap/microk8s/current/certs/ca.crt -noout -ext keyUsage`.
|
||||||
@@ -38,3 +38,12 @@ data:
|
|||||||
name: Actual Budget
|
name: Actual Budget
|
||||||
provider: !KeyOf actualbudget-provider
|
provider: !KeyOf actualbudget-provider
|
||||||
meta_launch_url: https://ynab.rubenhensen.nl
|
meta_launch_url: https://ynab.rubenhensen.nl
|
||||||
|
# Only admins: Scouts Online members get accounts in this authentik
|
||||||
|
# too (for immich) and must not reach personal apps.
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf actualbudget-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
@@ -38,3 +38,12 @@ data:
|
|||||||
name: ArgoCD
|
name: ArgoCD
|
||||||
provider: !KeyOf argocd-provider
|
provider: !KeyOf argocd-provider
|
||||||
meta_launch_url: https://argocd.rubenhensen.nl
|
meta_launch_url: https://argocd.rubenhensen.nl
|
||||||
|
# Only admins: Scouts Online members get accounts in this authentik
|
||||||
|
# too (for immich) and must not reach personal apps.
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf argocd-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
@@ -40,3 +40,12 @@ data:
|
|||||||
name: FreshRSS
|
name: FreshRSS
|
||||||
provider: !KeyOf freshrss-provider
|
provider: !KeyOf freshrss-provider
|
||||||
meta_launch_url: https://rss.rubenhensen.nl
|
meta_launch_url: https://rss.rubenhensen.nl
|
||||||
|
# Only admins: Scouts Online members get accounts in this authentik
|
||||||
|
# too (for immich) and must not reach personal apps.
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf freshrss-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: authentik-blueprint-longhorn
|
||||||
|
data:
|
||||||
|
longhorn-oidc.yaml: |
|
||||||
|
version: 1
|
||||||
|
metadata:
|
||||||
|
name: Longhorn OIDC
|
||||||
|
entries:
|
||||||
|
# Envoy Gateway does the login for Longhorn, which has no users of its
|
||||||
|
# own (see longhorn/httproute.yaml).
|
||||||
|
- model: authentik_providers_oauth2.oauth2provider
|
||||||
|
id: longhorn-provider
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: Longhorn
|
||||||
|
attrs:
|
||||||
|
name: Longhorn
|
||||||
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||||
|
authentication_flow: !Find [authentik_flows.flow, [slug, default-authentication-flow]]
|
||||||
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
||||||
|
client_type: confidential
|
||||||
|
client_id: longhorn
|
||||||
|
client_secret: !Env [LONGHORN_OIDC_CLIENT_SECRET, ""]
|
||||||
|
redirect_uris:
|
||||||
|
- matching_mode: strict
|
||||||
|
url: https://longhorn.rubenhensen.nl/oauth2/callback
|
||||||
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
||||||
|
property_mappings:
|
||||||
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-openid]]
|
||||||
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-email]]
|
||||||
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-profile]]
|
||||||
|
- model: authentik_core.application
|
||||||
|
id: longhorn-app
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
slug: longhorn
|
||||||
|
attrs:
|
||||||
|
name: Longhorn
|
||||||
|
provider: !KeyOf longhorn-provider
|
||||||
|
meta_launch_url: https://longhorn.rubenhensen.nl
|
||||||
|
# Longhorn can delete volumes, so only admins get in.
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf longhorn-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
@@ -38,3 +38,12 @@ data:
|
|||||||
name: Stalwart Mail
|
name: Stalwart Mail
|
||||||
provider: !KeyOf stalwart-provider
|
provider: !KeyOf stalwart-provider
|
||||||
meta_launch_url: https://mail.rubenhensen.nl
|
meta_launch_url: https://mail.rubenhensen.nl
|
||||||
|
# Only admins: Scouts Online members get accounts in this authentik
|
||||||
|
# too (for immich) and must not reach personal apps.
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf stalwart-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
@@ -0,0 +1,289 @@
|
|||||||
|
# Login for the Scouting MBG photos (immich on foto.scoutingmbg.nl).
|
||||||
|
# Mounted as a directory, unlike the other blueprints, so authentik picks up
|
||||||
|
# changes without a restart; secrets come from files in /secrets/scouting
|
||||||
|
# for the same reason (see apps/templates/authentik-helm.yaml).
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: authentik-blueprint-scouting
|
||||||
|
data:
|
||||||
|
immich-oidc.yaml: |
|
||||||
|
version: 1
|
||||||
|
metadata:
|
||||||
|
name: immich OIDC
|
||||||
|
entries:
|
||||||
|
# The source and the login flow below come from scouts-online.yaml.
|
||||||
|
- model: authentik_blueprints.metaapplyblueprint
|
||||||
|
attrs:
|
||||||
|
identifiers:
|
||||||
|
path: custom/scouting/scouts-online.yaml
|
||||||
|
required: true
|
||||||
|
# Filled by the Scouts Online source on every login: every member, and
|
||||||
|
# the members with an active Kaderlid role.
|
||||||
|
- model: authentik_core.group
|
||||||
|
id: mbg-leden
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: MBG leden
|
||||||
|
- model: authentik_core.group
|
||||||
|
id: mbg-kader
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: MBG kader
|
||||||
|
# immich syncs both claims on every login. A quota of 0 makes immich
|
||||||
|
# refuse uploads, -1 means unlimited.
|
||||||
|
- model: authentik_providers_oauth2.scopemapping
|
||||||
|
id: immich-scope
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: "immich: role and quota"
|
||||||
|
attrs:
|
||||||
|
name: "immich: role and quota"
|
||||||
|
scope_name: immich
|
||||||
|
description: Upload rights in the Scouting MBG photos
|
||||||
|
expression: |
|
||||||
|
admin = ak_is_group_member(request.user, name="authentik Admins")
|
||||||
|
uploader = admin or ak_is_group_member(request.user, name="MBG kader")
|
||||||
|
return {
|
||||||
|
"immich_role": "admin" if admin else "user",
|
||||||
|
"immich_quota": -1 if uploader else 0,
|
||||||
|
}
|
||||||
|
- model: authentik_providers_oauth2.oauth2provider
|
||||||
|
id: immich-provider
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: immich
|
||||||
|
attrs:
|
||||||
|
name: immich
|
||||||
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||||
|
# Straight on to Scouts Online. Admins with a password log in at
|
||||||
|
# authentik first.
|
||||||
|
authentication_flow: !Find [authentik_flows.flow, [slug, scouts-online-login]]
|
||||||
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
||||||
|
client_type: confidential
|
||||||
|
client_id: immich
|
||||||
|
client_secret: !File /secrets/scouting/immich-oidc-client-secret
|
||||||
|
redirect_uris:
|
||||||
|
- matching_mode: strict
|
||||||
|
url: https://foto.scoutingmbg.nl/auth/login
|
||||||
|
# "Link to OAuth" in immich's account settings
|
||||||
|
- matching_mode: strict
|
||||||
|
url: https://foto.scoutingmbg.nl/user-settings
|
||||||
|
- matching_mode: strict
|
||||||
|
url: app.immich:///oauth-callback
|
||||||
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
||||||
|
property_mappings:
|
||||||
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-openid]]
|
||||||
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-email]]
|
||||||
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-profile]]
|
||||||
|
- !KeyOf immich-scope
|
||||||
|
- model: authentik_core.application
|
||||||
|
id: immich-app
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
slug: immich
|
||||||
|
attrs:
|
||||||
|
name: Scouting MBG foto's
|
||||||
|
provider: !KeyOf immich-provider
|
||||||
|
meta_launch_url: https://foto.scoutingmbg.nl
|
||||||
|
policy_engine_mode: any
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf immich-app
|
||||||
|
attrs:
|
||||||
|
group: !KeyOf mbg-leden
|
||||||
|
# auth.scoutingmbg.nl: straight to Scouts Online, then on to the
|
||||||
|
# photos. Other domains keep the default brand.
|
||||||
|
- model: authentik_brands.brand
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
domain: auth.scoutingmbg.nl
|
||||||
|
attrs:
|
||||||
|
branding_title: Scouting MBG
|
||||||
|
flow_authentication: !Find [authentik_flows.flow, [slug, scouts-online-login]]
|
||||||
|
default_application: !KeyOf immich-app
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 1
|
||||||
|
target: !KeyOf immich-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
|
scouts-online.yaml: |
|
||||||
|
version: 1
|
||||||
|
metadata:
|
||||||
|
name: Scouts Online
|
||||||
|
entries:
|
||||||
|
- model: authentik_sources_oauth.oauthsourcepropertymapping
|
||||||
|
id: user-mapping
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: "Scouts Online: user"
|
||||||
|
attrs:
|
||||||
|
name: "Scouts Online: user"
|
||||||
|
expression: |
|
||||||
|
# info is the userinfo of Scouts Online (https://login.scouting.nl/docs/api).
|
||||||
|
# It only holds the roles within the organisations of this connection,
|
||||||
|
# which is just the group.
|
||||||
|
from datetime import date
|
||||||
|
|
||||||
|
today = date.today().isoformat()
|
||||||
|
roles = {role.get("id"): role for role in (info.get("roles") or {}).values()}
|
||||||
|
kader = False
|
||||||
|
for assignment in info.get("role_assignments") or []:
|
||||||
|
start = (assignment.get("start_date") or "")[:10]
|
||||||
|
end = (assignment.get("end_date") or "")[:10]
|
||||||
|
if (start and start > today) or (end and end < today):
|
||||||
|
continue
|
||||||
|
role = roles.get(assignment.get("role_id")) or {}
|
||||||
|
if "Kaderlid" in (role.get("member_type") or []):
|
||||||
|
kader = True
|
||||||
|
|
||||||
|
member_id = info.get("member_id")
|
||||||
|
email = info.get("email") or ""
|
||||||
|
# Family members can share an email address; immich needs one per account.
|
||||||
|
if email and info.get("multiple_accounts"):
|
||||||
|
local, _, domain = email.partition("@")
|
||||||
|
email = f"{local}+{member_id}@{domain}"
|
||||||
|
|
||||||
|
return {
|
||||||
|
"username": f"sol-{member_id}",
|
||||||
|
"email": email,
|
||||||
|
"name": info.get("name") or "",
|
||||||
|
"groups": ["MBG leden", "MBG kader"] if kader else ["MBG leden"],
|
||||||
|
"attributes": {"sol_member_id": member_id},
|
||||||
|
}
|
||||||
|
# The source's flows can only be reached through the source.
|
||||||
|
- model: authentik_policies_expression.expressionpolicy
|
||||||
|
id: sso-only
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: scouts-online-sso-only
|
||||||
|
attrs:
|
||||||
|
expression: return ak_is_sso_flow
|
||||||
|
# New members become external users: they can use the apps they are
|
||||||
|
# let into, not authentik's own interface.
|
||||||
|
- model: authentik_stages_user_write.userwritestage
|
||||||
|
id: user-write
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: scouts-online-user-write
|
||||||
|
attrs:
|
||||||
|
user_creation_mode: always_create
|
||||||
|
user_type: external
|
||||||
|
- model: authentik_stages_user_login.userloginstage
|
||||||
|
id: user-login
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: scouts-online-user-login
|
||||||
|
- model: authentik_flows.flow
|
||||||
|
id: enrollment-flow
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
slug: scouts-online-enrollment
|
||||||
|
attrs:
|
||||||
|
name: Scouts Online enrollment
|
||||||
|
title: Scouting MBG
|
||||||
|
designation: enrollment
|
||||||
|
authentication: none
|
||||||
|
- model: authentik_flows.flowstagebinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf enrollment-flow
|
||||||
|
stage: !KeyOf user-write
|
||||||
|
- model: authentik_flows.flowstagebinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 1
|
||||||
|
target: !KeyOf enrollment-flow
|
||||||
|
stage: !KeyOf user-login
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf enrollment-flow
|
||||||
|
policy: !KeyOf sso-only
|
||||||
|
- model: authentik_flows.flow
|
||||||
|
id: authentication-flow
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
slug: scouts-online-authentication
|
||||||
|
attrs:
|
||||||
|
name: Scouts Online authentication
|
||||||
|
title: Scouting MBG
|
||||||
|
designation: authentication
|
||||||
|
authentication: none
|
||||||
|
- model: authentik_flows.flowstagebinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf authentication-flow
|
||||||
|
stage: !KeyOf user-login
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf authentication-flow
|
||||||
|
policy: !KeyOf sso-only
|
||||||
|
# SOL only lets in members of the organisations picked in its
|
||||||
|
# connection, and only sends roles within them. The callback URL is
|
||||||
|
# https://auth.scoutingmbg.nl/source/oauth/callback/scouts-online/ (and
|
||||||
|
# authentik.rubenhensen.nl, from before auth.scoutingmbg.nl existed)
|
||||||
|
- model: authentik_sources_oauth.oauthsource
|
||||||
|
id: source
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
slug: scouts-online
|
||||||
|
attrs:
|
||||||
|
name: Scouts Online
|
||||||
|
slug: scouts-online
|
||||||
|
enabled: true
|
||||||
|
provider_type: openidconnect
|
||||||
|
consumer_key: !File /secrets/scouting/scouts-online-client-id
|
||||||
|
consumer_secret: !File /secrets/scouting/scouts-online-client-secret
|
||||||
|
authorization_url: https://login.scouting.nl/authorize
|
||||||
|
access_token_url: https://login.scouting.nl/token
|
||||||
|
profile_url: https://login.scouting.nl/oidc/userinfo
|
||||||
|
oidc_well_known_url: https://login.scouting.nl/.well-known/openid-configuration
|
||||||
|
oidc_jwks_url: https://login.scouting.nl/.well-known/openid-jwks.json
|
||||||
|
additional_scopes: membership roles
|
||||||
|
pkce: S256
|
||||||
|
authorization_code_auth_method: basic_auth
|
||||||
|
user_matching_mode: identifier
|
||||||
|
# Links to the groups that immich-oidc.yaml creates
|
||||||
|
group_matching_mode: name_link
|
||||||
|
user_path_template: goauthentik.io/sources/scouts-online
|
||||||
|
enrollment_flow: !KeyOf enrollment-flow
|
||||||
|
authentication_flow: !KeyOf authentication-flow
|
||||||
|
user_property_mappings:
|
||||||
|
- !KeyOf user-mapping
|
||||||
|
# Where immich sends people who aren't logged in. An identification
|
||||||
|
# stage without fields and with one source goes straight to it.
|
||||||
|
- model: authentik_stages_identification.identificationstage
|
||||||
|
id: identification
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
name: scouts-online-identification
|
||||||
|
attrs:
|
||||||
|
user_fields: []
|
||||||
|
sources:
|
||||||
|
- !KeyOf source
|
||||||
|
show_source_labels: true
|
||||||
|
- model: authentik_flows.flow
|
||||||
|
id: login-flow
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
slug: scouts-online-login
|
||||||
|
attrs:
|
||||||
|
name: Scouts Online login
|
||||||
|
title: Scouting MBG
|
||||||
|
designation: authentication
|
||||||
|
- model: authentik_flows.flowstagebinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf login-flow
|
||||||
|
stage: !KeyOf identification
|
||||||
@@ -40,3 +40,12 @@ data:
|
|||||||
name: Vault
|
name: Vault
|
||||||
provider: !KeyOf vault-provider
|
provider: !KeyOf vault-provider
|
||||||
meta_launch_url: https://vault.rubenhensen.nl
|
meta_launch_url: https://vault.rubenhensen.nl
|
||||||
|
# Only admins: Scouts Online members get accounts in this authentik
|
||||||
|
# too (for immich) and must not reach personal apps.
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
state: present
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf vault-app
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, "authentik Admins"]]
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# The TLS certificate the Gateway serves for this app (see httproute.yaml).
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: authentik-tls
|
||||||
|
spec:
|
||||||
|
secretName: authentik-tls
|
||||||
|
dnsNames:
|
||||||
|
- authentik.rubenhensen.nl
|
||||||
|
issuerRef:
|
||||||
|
group: cert-manager.io
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: prod-cluster-issuer
|
||||||
|
usages:
|
||||||
|
- digital signature
|
||||||
|
- key encipherment
|
||||||
|
---
|
||||||
|
# The login of the Scouting MBG photos (immich), see blueprint-scouting.yaml.
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: auth-scoutingmbg-tls
|
||||||
|
spec:
|
||||||
|
secretName: auth-scoutingmbg-tls
|
||||||
|
dnsNames:
|
||||||
|
- auth.scoutingmbg.nl
|
||||||
|
issuerRef:
|
||||||
|
group: cert-manager.io
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: prod-cluster-issuer
|
||||||
|
usages:
|
||||||
|
- digital signature
|
||||||
|
- key encipherment
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: authentik-secrets
|
name: authentik-secrets
|
||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
key: kv/authentik
|
key: kv/authentik
|
||||||
property: bootstrap_token
|
property: bootstrap_token
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: authentik-postgres-credentials
|
name: authentik-postgres-credentials
|
||||||
@@ -46,7 +46,7 @@ spec:
|
|||||||
key: kv/authentik
|
key: kv/authentik
|
||||||
property: postgres_password
|
property: postgres_password
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: vault-oidc-client-secret
|
name: vault-oidc-client-secret
|
||||||
@@ -64,7 +64,7 @@ spec:
|
|||||||
key: kv/vault-oidc
|
key: kv/vault-oidc
|
||||||
property: client_secret
|
property: client_secret
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: stalwart-oidc-client-secret
|
name: stalwart-oidc-client-secret
|
||||||
@@ -82,7 +82,7 @@ spec:
|
|||||||
key: kv/stalwart-oidc
|
key: kv/stalwart-oidc
|
||||||
property: client_secret
|
property: client_secret
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: argocd-oidc-client-secret
|
name: argocd-oidc-client-secret
|
||||||
@@ -100,7 +100,7 @@ spec:
|
|||||||
key: kv/argocd-oidc
|
key: kv/argocd-oidc
|
||||||
property: client_secret
|
property: client_secret
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: freshrss-oidc-client-secret
|
name: freshrss-oidc-client-secret
|
||||||
@@ -118,7 +118,7 @@ spec:
|
|||||||
key: kv/freshrss-oidc
|
key: kv/freshrss-oidc
|
||||||
property: client_secret
|
property: client_secret
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: actualbudget-oidc-client-secret
|
name: actualbudget-oidc-client-secret
|
||||||
@@ -135,3 +135,64 @@ spec:
|
|||||||
remoteRef:
|
remoteRef:
|
||||||
key: kv/actualbudget-oidc
|
key: kv/actualbudget-oidc
|
||||||
property: client_secret
|
property: client_secret
|
||||||
|
---
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: longhorn-oidc-client-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault-backend
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
refreshInterval: 15m
|
||||||
|
target:
|
||||||
|
name: longhorn-oidc-client-secret
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: client_secret
|
||||||
|
remoteRef:
|
||||||
|
key: kv/longhorn-oidc
|
||||||
|
property: client_secret
|
||||||
|
---
|
||||||
|
# Mounted as a file for blueprint-scouting.yaml, not as an env variable.
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: immich-oidc-client-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault-backend
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
refreshInterval: 15m
|
||||||
|
target:
|
||||||
|
name: immich-oidc-client-secret
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: client_secret
|
||||||
|
remoteRef:
|
||||||
|
key: kv/immich-oidc
|
||||||
|
property: client_secret
|
||||||
|
---
|
||||||
|
# The Scouts Online connection (login.scouting.nl, "Beheerde websites"),
|
||||||
|
# mounted as files for blueprint-scouting.yaml.
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: scouts-online-client
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault-backend
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
refreshInterval: 15m
|
||||||
|
target:
|
||||||
|
name: scouts-online-client
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: client_id
|
||||||
|
remoteRef:
|
||||||
|
key: kv/scouts-online
|
||||||
|
property: client_id
|
||||||
|
- secretKey: client_secret
|
||||||
|
remoteRef:
|
||||||
|
key: kv/scouts-online
|
||||||
|
property: client_secret
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: homelab
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: https-authentik
|
||||||
|
- name: homelab
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: https-auth-scoutingmbg
|
||||||
|
hostnames:
|
||||||
|
- authentik.rubenhensen.nl
|
||||||
|
- auth.scoutingmbg.nl
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: authentik-server
|
||||||
|
port: 80
|
||||||
|
# No limit on the whole request, as with nginx. Envoy's default of 15s
|
||||||
|
# cuts off uploads and long-lived connections.
|
||||||
|
timeouts:
|
||||||
|
request: 0s
|
||||||
|
---
|
||||||
|
# Lets the Gateway serve the certificate cert-manager keeps in this namespace.
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: ReferenceGrant
|
||||||
|
metadata:
|
||||||
|
name: gateway-tls
|
||||||
|
spec:
|
||||||
|
from:
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: Gateway
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
to:
|
||||||
|
- group: ""
|
||||||
|
kind: Secret
|
||||||
|
name: authentik-tls
|
||||||
|
- group: ""
|
||||||
|
kind: Secret
|
||||||
|
name: auth-scoutingmbg-tls
|
||||||
@@ -0,0 +1,137 @@
|
|||||||
|
# authentik faces the internet (the login for every member of the group),
|
||||||
|
# so its pods only reach each other, DNS and the internet: not the LAN
|
||||||
|
# (NAS, router) or other namespaces. Scouts Online, the apps' OIDC calls
|
||||||
|
# and the LDAP outpost's connection to the server all use public
|
||||||
|
# addresses. The worker and the CNPG instance manager also reach the API
|
||||||
|
# server (the node, port 16443). Ingress comes from Envoy, the CNPG
|
||||||
|
# operator, the node itself (kubelet probes; 10.1.7.64 is the node's
|
||||||
|
# Calico VXLAN address, projectcalico.org/IPv4VXLANTunnelAddr), and for
|
||||||
|
# the LDAP outpost from anywhere: Stalwart on node001 comes in through the
|
||||||
|
# router and the ldap-outpost-external NodePort.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: default
|
||||||
|
spec:
|
||||||
|
podSelector: {}
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- podSelector: {}
|
||||||
|
- from:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 192.168.1.204/32
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 10.1.7.64/32
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- podSelector: {}
|
||||||
|
- to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
port: 53
|
||||||
|
- protocol: TCP
|
||||||
|
port: 53
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 100.64.0.0/10
|
||||||
|
- 169.254.0.0/16
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: server-from-envoy
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: authentik
|
||||||
|
app.kubernetes.io/component: server
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: envoy-gateway-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: envoy
|
||||||
|
ports:
|
||||||
|
- port: 9000
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: ldap-outpost
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: authentik-outpost-ldap
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- ports:
|
||||||
|
- port: 3389
|
||||||
|
- port: 6636
|
||||||
|
---
|
||||||
|
# The outpost controller deploys and updates the LDAP outpost.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: worker-to-api
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: authentik
|
||||||
|
app.kubernetes.io/component: worker
|
||||||
|
policyTypes:
|
||||||
|
- Egress
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 192.168.1.204/32
|
||||||
|
ports:
|
||||||
|
- port: 16443
|
||||||
|
---
|
||||||
|
# The CNPG operator checks each instance on its status port and connects to
|
||||||
|
# PostgreSQL; the instance manager inside each pod watches its Cluster
|
||||||
|
# through the API server.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: postgres-cnpg
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: cnpg.io/cluster
|
||||||
|
operator: Exists
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: cnpg-system
|
||||||
|
ports:
|
||||||
|
- port: 8000
|
||||||
|
- port: 5432
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 192.168.1.204/32
|
||||||
|
ports:
|
||||||
|
- port: 16443
|
||||||
@@ -4,7 +4,14 @@ metadata:
|
|||||||
name: authentik-postgres
|
name: authentik-postgres
|
||||||
spec:
|
spec:
|
||||||
instances: 1
|
instances: 1
|
||||||
|
# Pinned so a new operator default (PostgreSQL 18 since CNPG 1.26.3) can't
|
||||||
|
# start an in-place major upgrade. CNPG filled this in at creation.
|
||||||
|
imageName: ghcr.io/cloudnative-pg/postgresql:17.4
|
||||||
primaryUpdateStrategy: unsupervised
|
primaryUpdateStrategy: unsupervised
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 256Mi
|
||||||
bootstrap:
|
bootstrap:
|
||||||
initdb:
|
initdb:
|
||||||
database: authentik
|
database: authentik
|
||||||
|
|||||||
@@ -1,5 +1,19 @@
|
|||||||
# Velero Backup Testing Guide
|
# Velero Backup Testing Guide
|
||||||
|
|
||||||
|
**Use `restore-test.sh`.** It restores a few namespaces from a real backup
|
||||||
|
into a throwaway k3s in Docker, from a read-only copy of the bucket, and
|
||||||
|
checks that every volume comes back with the bytes it was backed up with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
backup-testing/restore-test.sh # newest daily backup; ntfy, freshrss, actual-budget
|
||||||
|
backup-testing/restore-test.sh <backup> <namespace>... # something else
|
||||||
|
```
|
||||||
|
|
||||||
|
How it works and why it copies instead of pointing Velero at the NAS is at
|
||||||
|
the top of the script. The rest of this README describes the older k3d
|
||||||
|
scripts, which predate Envoy Gateway and still expect `*.hensen.io` and
|
||||||
|
sol-auth.
|
||||||
|
|
||||||
This guide explains how to test your Velero backups using a temporary K3d cluster.
|
This guide explains how to test your Velero backups using a temporary K3d cluster.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|||||||
Executable
+212
@@ -0,0 +1,212 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Restore a few namespaces from the real Velero backups into a throwaway
|
||||||
|
# k3s in Docker, to prove the backups can be restored. Nothing on the NAS
|
||||||
|
# changes:
|
||||||
|
# - one backup (backups/<name>/) and the kopia repositories of the chosen
|
||||||
|
# namespaces (kopia/<namespace>/) are copied read-only from MinIO with
|
||||||
|
# rclone into a Docker volume. A second Velero on the real bucket could
|
||||||
|
# run kopia maintenance on the same repositories as the cluster's own
|
||||||
|
# - `rclone serve s3` serves that copy to a Velero 1.18.2 in k3s, with a
|
||||||
|
# ReadOnly backup storage location
|
||||||
|
# - storage class longhorn becomes local-path; only core workload
|
||||||
|
# resources are restored (no routes, certificates, ExternalSecrets or
|
||||||
|
# NetworkPolicies)
|
||||||
|
# - every pod volume restore has to complete with as many bytes as its
|
||||||
|
# backup had, and the restored deployments have to become available
|
||||||
|
#
|
||||||
|
# Usage (on a machine with docker, kubectl and jq):
|
||||||
|
# backup-testing/restore-test.sh [backup] [namespace ...]
|
||||||
|
# Defaults: the newest Completed daily-backup, and ntfy freshrss
|
||||||
|
# actual-budget. Not gatus: a restored Gatus would start sending alerts.
|
||||||
|
#
|
||||||
|
# It reads Velero's MinIO key from the cluster (velero/cloud-credentials)
|
||||||
|
# into a temporary directory, and the copied backup holds every Secret of
|
||||||
|
# the cluster; all of it is deleted at the end. KEEP=1 keeps the test
|
||||||
|
# cluster (kubeconfig in the printed directory) until you run it with
|
||||||
|
# CLEANUP=1. FROM_VOLUME=<docker volume> takes the bucket from a volume
|
||||||
|
# instead of the NAS (for rehearsals; laid out as <bucket>/backups/...).
|
||||||
|
#
|
||||||
|
# Rehearsed on 2026-10-25 against a backup made in the test cluster itself,
|
||||||
|
# which is how two pitfalls showed up: Velero skips hostPath volumes, and
|
||||||
|
# k3s only provisions local PVs (which it can back up and restore) for a
|
||||||
|
# storage class with the annotation defaultVolumeType: local.
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
PROD_KUBECONFIG=${PROD_KUBECONFIG:-$HOME/.kube/homelab-config}
|
||||||
|
MINIO=${MINIO:-http://192.168.1.99:9000}
|
||||||
|
BUCKET=velero-backups
|
||||||
|
PORT=${PORT:-16443}
|
||||||
|
K3S=rancher/k3s:v1.34.9-k3s1
|
||||||
|
RCLONE=rclone/rclone:1.75.1
|
||||||
|
HELM=alpine/helm:3.19.0
|
||||||
|
VELERO_CHART=12.2.1
|
||||||
|
AWS_PLUGIN=velero/velero-plugin-for-aws:v1.14.4
|
||||||
|
NET=restore-test VOL=restore-test-s3
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
docker rm -f -v restore-k3s restore-s3 >/dev/null 2>&1 || true
|
||||||
|
docker volume rm "$VOL" >/dev/null 2>&1 || true
|
||||||
|
docker network rm "$NET" >/dev/null 2>&1 || true
|
||||||
|
[[ -n ${WORK:-} ]] && rm -rf "$WORK"
|
||||||
|
}
|
||||||
|
if [[ ${CLEANUP:-} == 1 ]]; then
|
||||||
|
cleanup; rm -rf "${TMPDIR:-/tmp}"/restore-test.*; echo "cleaned up"; exit 0
|
||||||
|
fi
|
||||||
|
if docker ps -a --format '{{.Names}}' | grep -qx restore-k3s; then
|
||||||
|
echo "A test cluster from an earlier run exists; run with CLEANUP=1 first." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
WORK=$(mktemp -d "${TMPDIR:-/tmp}/restore-test.XXXXXX")
|
||||||
|
chmod 700 "$WORK"
|
||||||
|
[[ ${KEEP:-} == 1 ]] || trap cleanup EXIT
|
||||||
|
|
||||||
|
pk() { kubectl --kubeconfig "$PROD_KUBECONFIG" "$@"; }
|
||||||
|
tk() { kubectl --kubeconfig "$WORK/kubeconfig" "$@"; }
|
||||||
|
# wait_for <seconds> <what> <command...>
|
||||||
|
wait_for() {
|
||||||
|
local limit=$1 what=$2; shift 2
|
||||||
|
local end=$((SECONDS + limit))
|
||||||
|
until "$@" >/dev/null 2>&1; do
|
||||||
|
if ((SECONDS > end)); then echo "timed out waiting for $what" >&2; exit 1; fi
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
backup=${1:-}
|
||||||
|
shift || true
|
||||||
|
namespaces=("$@")
|
||||||
|
[[ ${#namespaces[@]} -gt 0 ]] || namespaces=(ntfy freshrss actual-budget)
|
||||||
|
if [[ -z $backup ]]; then
|
||||||
|
backup=$(pk -n velero get backups.velero.io -o json | jq -r '[.items[]
|
||||||
|
| select(.metadata.labels["velero.io/schedule-name"] == "daily-backup" and .status.phase == "Completed")]
|
||||||
|
| max_by(.status.startTimestamp).metadata.name')
|
||||||
|
fi
|
||||||
|
echo "== backup $backup, namespaces: ${namespaces[*]}"
|
||||||
|
|
||||||
|
docker network create "$NET" >/dev/null
|
||||||
|
docker volume create "$VOL" >/dev/null
|
||||||
|
if [[ -n ${FROM_VOLUME:-} ]]; then
|
||||||
|
echo "== copy from the volume $FROM_VOLUME"
|
||||||
|
docker run --rm -v "$FROM_VOLUME:/from:ro" -v "$VOL:/data" alpine:3.22 cp -a /from/. /data/
|
||||||
|
else
|
||||||
|
echo "== copy from the NAS (read-only)"
|
||||||
|
(umask 077; pk -n velero get secret cloud-credentials -o jsonpath='{.data.cloud}' | base64 -d |
|
||||||
|
awk -F' *= *' '/aws_access_key_id/ {print "RCLONE_CONFIG_NAS_ACCESS_KEY_ID="$2}
|
||||||
|
/aws_secret_access_key/ {print "RCLONE_CONFIG_NAS_SECRET_ACCESS_KEY="$2}' > "$WORK/nas.env"
|
||||||
|
printf 'RCLONE_CONFIG_NAS_TYPE=s3\nRCLONE_CONFIG_NAS_PROVIDER=Minio\nRCLONE_CONFIG_NAS_ENDPOINT=%s\n' "$MINIO" >> "$WORK/nas.env")
|
||||||
|
copy() { docker run --rm --env-file "$WORK/nas.env" -v "$VOL:/data" "$RCLONE" copy --stats-one-line "nas:$BUCKET/$1" "/data/$BUCKET/$1"; }
|
||||||
|
copy "backups/$backup"
|
||||||
|
for ns in "${namespaces[@]}"; do copy "kopia/$ns"; done
|
||||||
|
rm -f "$WORK/nas.env"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "== local S3 and k3s"
|
||||||
|
docker run -d --name restore-s3 --network "$NET" -v "$VOL:/data" "$RCLONE" \
|
||||||
|
serve s3 /data --addr :8080 --auth-key test,restore-test-secret >/dev/null
|
||||||
|
s3ip=$(docker inspect -f "{{(index .NetworkSettings.Networks \"$NET\").IPAddress}}" restore-s3)
|
||||||
|
docker run -d --name restore-k3s --privileged --network "$NET" -p "127.0.0.1:$PORT:6443" "$K3S" \
|
||||||
|
server --disable traefik --disable metrics-server --tls-san 127.0.0.1 --tls-san restore-k3s >/dev/null
|
||||||
|
node_ready() { docker exec restore-k3s kubectl get nodes 2>/dev/null | grep -q ' Ready'; }
|
||||||
|
wait_for 180 "k3s" node_ready
|
||||||
|
docker exec restore-k3s cat /etc/rancher/k3s/k3s.yaml | sed "s#https://127.0.0.1:6443#https://127.0.0.1:$PORT#" > "$WORK/kubeconfig"
|
||||||
|
docker exec restore-k3s cat /etc/rancher/k3s/k3s.yaml | sed 's#https://127.0.0.1:6443#https://restore-k3s:6443#' > "$WORK/kubeconfig-net"
|
||||||
|
|
||||||
|
echo "== Velero"
|
||||||
|
cat > "$WORK/values.yaml" <<EOF
|
||||||
|
configuration:
|
||||||
|
backupStorageLocation:
|
||||||
|
- name: default
|
||||||
|
provider: aws
|
||||||
|
bucket: $BUCKET
|
||||||
|
accessMode: ReadOnly
|
||||||
|
config:
|
||||||
|
region: minio
|
||||||
|
s3ForcePathStyle: "true"
|
||||||
|
s3Url: http://$s3ip:8080
|
||||||
|
volumeSnapshotLocation: []
|
||||||
|
defaultRepoMaintainFrequency: 8760h
|
||||||
|
credentials:
|
||||||
|
secretContents:
|
||||||
|
cloud: |
|
||||||
|
[default]
|
||||||
|
aws_access_key_id=test
|
||||||
|
aws_secret_access_key=restore-test-secret
|
||||||
|
initContainers:
|
||||||
|
- name: velero-plugin-for-aws
|
||||||
|
image: $AWS_PLUGIN
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /target
|
||||||
|
name: plugins
|
||||||
|
deployNodeAgent: true
|
||||||
|
snapshotsEnabled: false
|
||||||
|
upgradeCRDs: false
|
||||||
|
EOF
|
||||||
|
docker run --rm --network "$NET" -e HOME=/tmp -e KC="$(base64 < "$WORK/kubeconfig-net")" \
|
||||||
|
-e VALUES="$(base64 < "$WORK/values.yaml")" --entrypoint sh "$HELM" -c '
|
||||||
|
echo "$KC" | base64 -d > /tmp/kc && echo "$VALUES" | base64 -d > /tmp/v.yaml &&
|
||||||
|
helm --kubeconfig /tmp/kc install velero velero --repo https://vmware-tanzu.github.io/helm-charts \
|
||||||
|
--version '"$VELERO_CHART"' -n velero --create-namespace -f /tmp/v.yaml >/dev/null'
|
||||||
|
tk apply -f - >/dev/null <<EOF
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: change-storage-class
|
||||||
|
namespace: velero
|
||||||
|
labels:
|
||||||
|
velero.io/plugin-config: ""
|
||||||
|
velero.io/change-storage-class: RestoreItemAction
|
||||||
|
data:
|
||||||
|
longhorn: local-path
|
||||||
|
EOF
|
||||||
|
wait_for 300 "Velero to sync $backup" tk -n velero get backups.velero.io "$backup"
|
||||||
|
echo " Velero sees $backup"
|
||||||
|
|
||||||
|
echo "== restore"
|
||||||
|
tk apply -f - >/dev/null <<EOF
|
||||||
|
apiVersion: velero.io/v1
|
||||||
|
kind: Restore
|
||||||
|
metadata:
|
||||||
|
name: restore-test
|
||||||
|
namespace: velero
|
||||||
|
spec:
|
||||||
|
backupName: $backup
|
||||||
|
includedNamespaces: [$(IFS=,; echo "${namespaces[*]}")]
|
||||||
|
# PersistentVolumes have to be included: only then does Velero clear the
|
||||||
|
# PVC's volumeName. It doesn't restore a PV whose data comes from kopia;
|
||||||
|
# k3s provisions a new one.
|
||||||
|
includedResources: [namespaces, persistentvolumeclaims, persistentvolumes, pods, deployments,
|
||||||
|
replicasets, statefulsets, services, configmaps, secrets, serviceaccounts]
|
||||||
|
restorePVs: true
|
||||||
|
EOF
|
||||||
|
restore_done() { [[ $(tk -n velero get restore restore-test -o jsonpath='{.status.phase}') =~ ^(Completed|PartiallyFailed|Failed|FailedValidation)$ ]]; }
|
||||||
|
wait_for 1800 "the restore" restore_done
|
||||||
|
phase=$(tk -n velero get restore restore-test -o jsonpath='{.status.phase}')
|
||||||
|
echo " restore: $phase"
|
||||||
|
|
||||||
|
echo "== check"
|
||||||
|
failed=0
|
||||||
|
expected=$(docker run --rm -v "$VOL:/data" alpine:3.22 zcat "/data/$BUCKET/backups/$backup/$backup-podvolumebackups.json.gz" |
|
||||||
|
jq -r --arg ns "$(IFS=,; echo "${namespaces[*]}")" '.[] | select(.spec.pod.namespace as $p | $ns | split(",") | index($p))
|
||||||
|
| "\(.spec.pod.namespace)/\(.spec.volume) \(.status.progress.totalBytes // 0)"' | sort -u)
|
||||||
|
restored=$(tk -n velero get podvolumerestores.velero.io -o json |
|
||||||
|
jq -r '.items[] | "\(.spec.pod.namespace)/\(.spec.volume) \(.status.progress.totalBytes // 0) \(.status.phase)"' | sort -u)
|
||||||
|
while read -r vol bytes; do
|
||||||
|
[[ -z $vol ]] && continue
|
||||||
|
got=$(awk -v v="$vol" '$1 == v {print $2, $3}' <<<"$restored")
|
||||||
|
if [[ $got == "$bytes Completed" ]]; then
|
||||||
|
echo " ok $vol ($bytes bytes)"
|
||||||
|
else
|
||||||
|
echo " FAILED $vol: backed up $bytes bytes, restore: ${got:-none}"; failed=1
|
||||||
|
fi
|
||||||
|
done <<<"$expected"
|
||||||
|
for ns in "${namespaces[@]}"; do
|
||||||
|
if tk -n "$ns" wait --for=condition=Available deployment --all --timeout=300s >/dev/null 2>&1; then
|
||||||
|
echo " ok $ns: deployments available"
|
||||||
|
else
|
||||||
|
echo " FAILED $ns: deployments not available"; tk -n "$ns" get pods; failed=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
[[ $phase == Completed ]] || failed=1
|
||||||
|
[[ ${KEEP:-} == 1 ]] && echo "Kept; kubeconfig: $WORK/kubeconfig. Remove with CLEANUP=1 $0"
|
||||||
|
if [[ $failed == 0 ]]; then echo "== restore test passed"; else echo "== restore test FAILED"; exit 1; fi
|
||||||
@@ -1,381 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# test-velero-backup.sh - Automated script to test Velero backups
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Configuration - customize these variables
|
|
||||||
BACKUP_NAME="" # Will list backups if empty
|
|
||||||
S3_BUCKET="velero-backups"
|
|
||||||
S3_REGION="minio"
|
|
||||||
S3_URL="http://192.168.1.99:9000" # Your NAS MinIO server
|
|
||||||
S3_ACCESS_KEY="" # Will be filled from credentials
|
|
||||||
S3_SECRET_KEY="" # Will be filled from credentials
|
|
||||||
ORIGINAL_NAMESPACE="" # Namespace in the original backup
|
|
||||||
TEST_NAMESPACE="default"
|
|
||||||
DEBUG=false # Set to true for verbose debugging
|
|
||||||
|
|
||||||
# Parse command line arguments
|
|
||||||
while [[ $# -gt 0 ]]; do
|
|
||||||
case $1 in
|
|
||||||
--backup-name)
|
|
||||||
BACKUP_NAME="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--s3-access-key)
|
|
||||||
S3_ACCESS_KEY="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--s3-secret-key)
|
|
||||||
S3_SECRET_KEY="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--s3-bucket)
|
|
||||||
S3_BUCKET="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--s3-region)
|
|
||||||
S3_REGION="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--s3-url)
|
|
||||||
S3_URL="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--original-namespace)
|
|
||||||
ORIGINAL_NAMESPACE="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--test-namespace)
|
|
||||||
TEST_NAMESPACE="$2"
|
|
||||||
shift 2
|
|
||||||
;;
|
|
||||||
--debug)
|
|
||||||
DEBUG=true
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
--help)
|
|
||||||
echo "Usage: $0 [options]"
|
|
||||||
echo "Options:"
|
|
||||||
echo " --backup-name NAME Name of the Velero backup to restore"
|
|
||||||
echo " --s3-bucket BUCKET S3 bucket containing backups"
|
|
||||||
echo " --s3-region REGION S3 region"
|
|
||||||
echo " --s3-url URL S3 endpoint URL"
|
|
||||||
echo " --s3-access-key KEY S3 access key"
|
|
||||||
echo " --s3-secret-key KEY S3 secret key"
|
|
||||||
echo " --original-namespace NS Namespace in the original backup"
|
|
||||||
echo " --test-namespace NS Namespace for restoration (default: default)"
|
|
||||||
echo " --debug Enable debug output"
|
|
||||||
echo " --help Show this help message"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Unknown option: $1"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Verify required variables
|
|
||||||
if [[ -z "$S3_BUCKET" || -z "$S3_REGION" || -z "$S3_ACCESS_KEY" || -z "$S3_SECRET_KEY" || -z "$ORIGINAL_NAMESPACE" || -z "$TEST_NAMESPACE" ]]; then
|
|
||||||
echo "Error: S3 configuration is incomplete"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Function to clean up resources
|
|
||||||
cleanup() {
|
|
||||||
echo "Cleaning up resources..."
|
|
||||||
k3d cluster delete backup-test || true
|
|
||||||
echo "Cleanup complete"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function for debugging output
|
|
||||||
debug() {
|
|
||||||
if [[ "$DEBUG" == "true" ]]; then
|
|
||||||
echo "[DEBUG] $*"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Register cleanup function to run on exit (ctrl+c, etc.)
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
echo "=== Starting Velero backup test process ==="
|
|
||||||
|
|
||||||
# 1. Create K3d cluster
|
|
||||||
echo "Creating K3d cluster..."
|
|
||||||
k3d cluster create backup-test \
|
|
||||||
--api-port 6443 \
|
|
||||||
--port "80:80@loadbalancer" \
|
|
||||||
--port "443:443@loadbalancer" \
|
|
||||||
--agents 0 \
|
|
||||||
--k3s-arg "--disable=traefik@server:0" \
|
|
||||||
--wait
|
|
||||||
# -v /mnt/longhorn:/var/lib/longhorn:shared@all \
|
|
||||||
# -i hebury/k3s:v1.32.2-k3s1 \
|
|
||||||
# --wait
|
|
||||||
|
|
||||||
# Verify cluster is running
|
|
||||||
kubectl config use-context k3d-backup-test
|
|
||||||
kubectl get nodes
|
|
||||||
|
|
||||||
# 2. Install Longhorn
|
|
||||||
# echo "Installing Longhorn..."
|
|
||||||
# kubectl create namespace longhorn-system
|
|
||||||
|
|
||||||
# helm repo add longhorn https://charts.longhorn.io
|
|
||||||
# helm repo update
|
|
||||||
|
|
||||||
# helm install longhorn longhorn/longhorn \
|
|
||||||
# --namespace longhorn-system \
|
|
||||||
# --set persistence.defaultClassReplicaCount=1 \
|
|
||||||
# --set defaultSettings.backupTarget="" \
|
|
||||||
# --set defaultSettings.defaultReplicaCount=1
|
|
||||||
|
|
||||||
# echo "Waiting for Longhorn to be ready..."
|
|
||||||
# kubectl -n longhorn-system rollout status deployment/longhorn-ui
|
|
||||||
# kubectl -n longhorn-system rollout status deployment/longhorn-driver-deployer
|
|
||||||
# kubectl -n longhorn-system rollout status daemonset/longhorn-manager
|
|
||||||
|
|
||||||
# 3. Install Velero with S3 provider
|
|
||||||
echo "Installing Velero..."
|
|
||||||
cat > velero-credentials <<EOF
|
|
||||||
[default]
|
|
||||||
aws_access_key_id=$S3_ACCESS_KEY
|
|
||||||
aws_secret_access_key=$S3_SECRET_KEY
|
|
||||||
EOF
|
|
||||||
|
|
||||||
helm repo add vmware-tanzu https://vmware-tanzu.github.io/helm-charts
|
|
||||||
helm repo update
|
|
||||||
|
|
||||||
debug "Installing Velero with S3 configuration:"
|
|
||||||
debug " Bucket: $S3_BUCKET"
|
|
||||||
debug " Region: $S3_REGION"
|
|
||||||
debug " URL: $S3_URL"
|
|
||||||
|
|
||||||
helm install velero vmware-tanzu/velero \
|
|
||||||
--namespace velero \
|
|
||||||
--create-namespace \
|
|
||||||
--set-file credentials.secretContents.cloud=velero-credentials \
|
|
||||||
--set configuration.backupStorageLocation[0].provider=aws \
|
|
||||||
--set configuration.backupStorageLocation[0].name=default \
|
|
||||||
--set configuration.backupStorageLocation[0].bucket=$S3_BUCKET \
|
|
||||||
--set configuration.backupStorageLocation[0].config.region=$S3_REGION \
|
|
||||||
--set configuration.backupStorageLocation[0].config.s3ForcePathStyle=true \
|
|
||||||
--set configuration.backupStorageLocation[0].config.s3Url=$S3_URL \
|
|
||||||
--set configuration.volumeSnapshotLocation[0].name=default \
|
|
||||||
--set configuration.volumeSnapshotLocation[0].provider=aws \
|
|
||||||
--set configuration.volumeSnapshotLocation[0].config.region=$S3_REGION \
|
|
||||||
--set configuration.features=EnableCSI \
|
|
||||||
--set initContainers[0].name=velero-plugin-for-aws \
|
|
||||||
--set initContainers[0].image=velero/velero-plugin-for-aws:v1.11.1 \
|
|
||||||
--set initContainers[0].volumeMounts[0].mountPath=/target \
|
|
||||||
--set initContainers[0].volumeMounts[0].name=plugins \
|
|
||||||
--set deployNodeAgent=true \
|
|
||||||
--set nodeAgent.containerSecurityContext.privileged=true \
|
|
||||||
--wait
|
|
||||||
|
|
||||||
rm velero-credentials
|
|
||||||
|
|
||||||
# Wait for Velero to be ready
|
|
||||||
echo "Waiting for Velero to be fully ready..."
|
|
||||||
kubectl -n velero rollout status deployment/velero --timeout=120s
|
|
||||||
|
|
||||||
echo "Install change-storage-class.yaml"
|
|
||||||
kubectl apply -f change-storage-class.yaml
|
|
||||||
|
|
||||||
# Check if velero CLI is installed and functioning
|
|
||||||
if ! command -v velero &> /dev/null; then
|
|
||||||
echo "Error: Velero CLI is not installed or not in PATH"
|
|
||||||
echo "Please install the Velero CLI by following instructions at: https://velero.io/docs/main/basic-install/"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Verify Velero is connected to the storage location
|
|
||||||
echo "Checking Velero backup storage location..."
|
|
||||||
kubectl -n velero get backupstoragelocation default -o jsonpath='{.status.phase}' | grep -q "Available" || {
|
|
||||||
echo "Warning: Backup storage location is not available, it may take a few minutes to initialize"
|
|
||||||
echo "Storage location status:"
|
|
||||||
kubectl -n velero get backupstoragelocation default -o yaml
|
|
||||||
|
|
||||||
# Wait a bit longer for the location to become available
|
|
||||||
echo "Waiting 30 seconds for backup storage location to become available..."
|
|
||||||
sleep 30
|
|
||||||
}
|
|
||||||
|
|
||||||
# 4. List backups
|
|
||||||
echo "Checking for available backups..."
|
|
||||||
if ! velero_output=$(velero backup get 2>&1); then
|
|
||||||
echo "Error listing backups: $velero_output"
|
|
||||||
|
|
||||||
# Try to verify S3 connectivity
|
|
||||||
echo "Checking S3 connectivity..."
|
|
||||||
|
|
||||||
# Install AWS CLI if needed
|
|
||||||
if ! command -v aws &> /dev/null; then
|
|
||||||
echo "AWS CLI not found, skipping S3 connectivity test"
|
|
||||||
else
|
|
||||||
# Create temporary AWS profile
|
|
||||||
mkdir -p ~/.aws
|
|
||||||
cat > ~/.aws/credentials <<EOF
|
|
||||||
[velero-test]
|
|
||||||
aws_access_key_id=$S3_ACCESS_KEY
|
|
||||||
aws_secret_access_key=$S3_SECRET_KEY
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > ~/.aws/config <<EOF
|
|
||||||
[profile velero-test]
|
|
||||||
region=$S3_REGION
|
|
||||||
output=json
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Try to list bucket contents
|
|
||||||
echo "Testing S3 connection to bucket $S3_BUCKET..."
|
|
||||||
if aws --profile velero-test --endpoint-url $S3_URL s3 ls s3://$S3_BUCKET/; then
|
|
||||||
echo "S3 connection successful, but Velero couldn't list backups."
|
|
||||||
echo "This might indicate that there are no backups in the bucket or the backups are in a different format than expected."
|
|
||||||
else
|
|
||||||
echo "Error connecting to S3. Please check your credentials and connectivity to $S3_URL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Cleanup AWS files
|
|
||||||
rm ~/.aws/credentials ~/.aws/config
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z "$BACKUP_NAME" ]]; then
|
|
||||||
echo "No backup name specified and no backups found. Exiting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Available backups:"
|
|
||||||
echo "$velero_output"
|
|
||||||
|
|
||||||
if [[ -z "$BACKUP_NAME" ]]; then
|
|
||||||
echo "Specify a backup name using --backup-name and run again."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 5. Create test namespace if needed
|
|
||||||
if [[ "$TEST_NAMESPACE" != "default" ]]; then
|
|
||||||
kubectl create namespace $TEST_NAMESPACE || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 6. Restore backup
|
|
||||||
echo "Restoring backup: $BACKUP_NAME"
|
|
||||||
if [[ -z "$ORIGINAL_NAMESPACE" ]]; then
|
|
||||||
# If no namespace specified, restore everything
|
|
||||||
velero restore create --from-backup $BACKUP_NAME \
|
|
||||||
--wait
|
|
||||||
else
|
|
||||||
# Restore specific namespace with mapping
|
|
||||||
velero restore create --from-backup $BACKUP_NAME \
|
|
||||||
--namespace-mappings $ORIGINAL_NAMESPACE:$TEST_NAMESPACE \
|
|
||||||
--include-namespaces $ORIGINAL_NAMESPACE \
|
|
||||||
--exclude-namespaces kube-system,kube-public,kube-node-lease,velero \
|
|
||||||
--exclude-resources certificates.cert-manager.io \
|
|
||||||
--wait
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 7. Check restore status
|
|
||||||
echo "Checking restore status:"
|
|
||||||
velero restore get
|
|
||||||
|
|
||||||
# Wait for pods to be ready
|
|
||||||
echo "Waiting for pods to be ready..."
|
|
||||||
kubectl wait --for=condition=ready pod --all -n $TEST_NAMESPACE --timeout=600s || true
|
|
||||||
|
|
||||||
# 8. Run validation script (create it first if it doesn't exist)
|
|
||||||
# if [[ ! -f ./validate-restore.sh ]]; then
|
|
||||||
# echo "Creating validation script..."
|
|
||||||
# cat > validate-restore.sh <<'EOF'
|
|
||||||
# #!/bin/bash
|
|
||||||
# # validate-restore.sh - Script to validate Velero backup restoration
|
|
||||||
|
|
||||||
# set -e
|
|
||||||
# echo "Starting validation of restored resources..."
|
|
||||||
|
|
||||||
# # Get namespace from command line or use default
|
|
||||||
# NAMESPACE="${1:-default}"
|
|
||||||
|
|
||||||
# # Check all deployments
|
|
||||||
# echo "Checking deployments..."
|
|
||||||
# deployments=$(kubectl get deployment -n $NAMESPACE -o name)
|
|
||||||
# if [[ -z "$deployments" ]]; then
|
|
||||||
# echo "❌ No deployments found in namespace $NAMESPACE"
|
|
||||||
# else
|
|
||||||
# echo "Found deployments: $deployments"
|
|
||||||
|
|
||||||
# # Check if pods are running for each deployment
|
|
||||||
# for deployment in $deployments; do
|
|
||||||
# name=$(echo $deployment | cut -d'/' -f2)
|
|
||||||
# echo -n "Checking deployment $name: "
|
|
||||||
|
|
||||||
# # Check if pods are running
|
|
||||||
# ready_replicas=$(kubectl get deployment -n $NAMESPACE $name -o jsonpath='{.status.readyReplicas}')
|
|
||||||
# if [[ -n "$ready_replicas" && "$ready_replicas" != "0" ]]; then
|
|
||||||
# echo "✅ $ready_replicas pods ready"
|
|
||||||
# else
|
|
||||||
# echo "❌ No pods running"
|
|
||||||
# fi
|
|
||||||
# done
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# # Check all services
|
|
||||||
# echo "Checking services..."
|
|
||||||
# services=$(kubectl get service -n $NAMESPACE -o name | grep -v "kubernetes")
|
|
||||||
# if [[ -z "$services" ]]; then
|
|
||||||
# echo "❌ No services found in namespace $NAMESPACE"
|
|
||||||
# else
|
|
||||||
# echo "Found services: $services"
|
|
||||||
|
|
||||||
# # Check if services have endpoints
|
|
||||||
# for service in $services; do
|
|
||||||
# name=$(echo $service | cut -d'/' -f2)
|
|
||||||
# echo -n "Checking service $name: "
|
|
||||||
|
|
||||||
# # Check if service has endpoints
|
|
||||||
# endpoints=$(kubectl get endpoints -n $NAMESPACE $name -o jsonpath='{.subsets[*].addresses[*].ip}')
|
|
||||||
# if [ -n "$endpoints" ]; then
|
|
||||||
# echo "✅ Has endpoints"
|
|
||||||
# else
|
|
||||||
# echo "❌ No endpoints"
|
|
||||||
# fi
|
|
||||||
# done
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# # Check PVCs
|
|
||||||
# echo "Checking PVCs..."
|
|
||||||
# pvcs=$(kubectl get pvc -n $NAMESPACE -o name)
|
|
||||||
# if [[ -z "$pvcs" ]]; then
|
|
||||||
# echo "No PVCs found in namespace $NAMESPACE"
|
|
||||||
# else
|
|
||||||
# pvc_count=$(echo "$pvcs" | wc -l)
|
|
||||||
# echo "Found $pvc_count PVCs"
|
|
||||||
|
|
||||||
# # Check if PVCs are bound
|
|
||||||
# bound_count=$(kubectl get pvc -n $NAMESPACE -o jsonpath='{.items[?(@.status.phase=="Bound")].metadata.name}' | wc -w)
|
|
||||||
# echo "$bound_count/$pvc_count PVCs are bound"
|
|
||||||
|
|
||||||
# if [ "$bound_count" -ne "$pvc_count" ]; then
|
|
||||||
# echo "❌ Not all PVCs are bound"
|
|
||||||
# else
|
|
||||||
# echo "✅ All PVCs are bound"
|
|
||||||
# fi
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# echo "Validation complete!"
|
|
||||||
# exit 0
|
|
||||||
# EOF
|
|
||||||
# chmod +x validate-restore.sh
|
|
||||||
# fi
|
|
||||||
|
|
||||||
echo "Running validation tests..."
|
|
||||||
./validate-restore.sh $TEST_NAMESPACE
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "=== Backup test process completed ==="
|
|
||||||
echo "The cluster will be deleted when you close this terminal or press Ctrl+C"
|
|
||||||
echo "To access the cluster manually, use: kubectl config use-context k3d-backup-test"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Keep the script running until user terminates it
|
|
||||||
read -p "Press Enter to clean up and exit..."
|
|
||||||
@@ -69,6 +69,13 @@ spec:
|
|||||||
optional: true
|
optional: true
|
||||||
- name: VAPID_SUBJECT
|
- name: VAPID_SUBJECT
|
||||||
value: mailto:ruben.hensen@protonmail.com
|
value: mailto:ruben.hensen@protonmail.com
|
||||||
|
# Node trusts its built-in roots, which still include the ones
|
||||||
|
# above the compromised eMudhra intermediates. Use
|
||||||
|
# patched-ca-bundle through OpenSSL instead until Node ships a fix.
|
||||||
|
- name: NODE_OPTIONS
|
||||||
|
value: --use-openssl-ca
|
||||||
|
- name: SSL_CERT_FILE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
@@ -91,8 +98,14 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/data
|
- mountPath: /app/data
|
||||||
name: data
|
name: data
|
||||||
|
- mountPath: /etc/ssl/certs
|
||||||
|
name: patched-ca-bundle
|
||||||
|
readOnly: true
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: bolletjestrui-data
|
claimName: bolletjestrui-data
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# The TLS certificate the Gateway serves for this app (see httproute.yaml).
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
spec:
|
||||||
|
secretName: letsencrypt-prod
|
||||||
|
dnsNames:
|
||||||
|
- vic.rubenhensen.nl
|
||||||
|
issuerRef:
|
||||||
|
group: cert-manager.io
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: prod-cluster-issuer
|
||||||
|
usages:
|
||||||
|
- digital signature
|
||||||
|
- key encipherment
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: bolletjestrui-secrets
|
name: bolletjestrui-secrets
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: bolletjestrui
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: homelab
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: https-vic
|
||||||
|
hostnames:
|
||||||
|
- vic.rubenhensen.nl
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: bolletjestrui
|
||||||
|
port: 3000
|
||||||
|
# No limit on the whole request, as with nginx. Envoy's default of 15s
|
||||||
|
# cuts off uploads and long-lived connections.
|
||||||
|
timeouts:
|
||||||
|
request: 0s
|
||||||
|
---
|
||||||
|
# Lets the Gateway serve the certificate cert-manager keeps in this namespace.
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: ReferenceGrant
|
||||||
|
metadata:
|
||||||
|
name: gateway-tls
|
||||||
|
spec:
|
||||||
|
from:
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: Gateway
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
to:
|
||||||
|
- group: ""
|
||||||
|
kind: Secret
|
||||||
|
name: letsencrypt-prod
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: bolletjestrui-ingress
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
|
||||||
# matches the app's BODY_SIZE_LIMIT: a bulk route import posts every GPX at once
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "25m"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: vic.rubenhensen.nl
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: bolletjestrui
|
|
||||||
port:
|
|
||||||
number: 3000
|
|
||||||
tls:
|
|
||||||
- secretName: letsencrypt-prod
|
|
||||||
hosts:
|
|
||||||
- vic.rubenhensen.nl
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
# Bolletjestrui faces the internet through Envoy, so its pods only reach each
|
||||||
|
# other, DNS and the internet: not the LAN (NAS, router), the Kubernetes
|
||||||
|
# API or other namespaces.
|
||||||
|
# Ingress comes from Envoy and the node itself (kubelet probes; 10.1.7.64
|
||||||
|
# is the node's Calico VXLAN address, projectcalico.org/IPv4VXLANTunnelAddr).
|
||||||
|
# Same layout as mbgwp/networkpolicy.yaml.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: default
|
||||||
|
spec:
|
||||||
|
podSelector: {}
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- podSelector: {}
|
||||||
|
- from:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 192.168.1.204/32
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 10.1.7.64/32
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: envoy-gateway-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: envoy
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- podSelector: {}
|
||||||
|
- to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
port: 53
|
||||||
|
- protocol: TCP
|
||||||
|
port: 53
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 100.64.0.0/10
|
||||||
|
- 169.254.0.0/16
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: ca-bundle
|
||||||
|
description: Puts the patched-ca-bundle ConfigMap in every namespace listed in values.yaml
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,20 @@
|
|||||||
|
{{- /*
|
||||||
|
Temporary CA bundle: ca-certificates.crt is /etc/ssl/certs/ca-certificates.crt
|
||||||
|
from Alpine ca-certificates-bundle 20261020-r0, which drops the roots above
|
||||||
|
the compromised eMudhra intermediates (https://emudhra.we-have-a-problem.com).
|
||||||
|
Workloads mount it over /etc/ssl/certs until their images ship a fixed
|
||||||
|
bundle. Server-side apply keeps the bundle out of the last-applied annotation.
|
||||||
|
*/}}
|
||||||
|
{{- range .Values.namespaces }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
namespace: {{ . }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: ServerSideApply=true
|
||||||
|
data:
|
||||||
|
ca-certificates.crt: |
|
||||||
|
{{ $.Files.Get "ca-certificates.crt" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# Namespaces that get the patched-ca-bundle ConfigMap.
|
||||||
|
namespaces:
|
||||||
|
- actual-budget
|
||||||
|
- argocd
|
||||||
|
- authentik
|
||||||
|
- bolletjestrui
|
||||||
|
- cert-manager
|
||||||
|
- gatus
|
||||||
|
- gitea
|
||||||
|
- immich
|
||||||
|
- ntfy
|
||||||
|
- serpbear
|
||||||
@@ -14,5 +14,8 @@ spec:
|
|||||||
# Enable the HTTP-01 challenge provider
|
# Enable the HTTP-01 challenge provider
|
||||||
solvers:
|
solvers:
|
||||||
- http01:
|
- http01:
|
||||||
ingress:
|
gatewayHTTPRoute:
|
||||||
ingressClassName: nginx
|
parentRefs:
|
||||||
|
- name: homelab
|
||||||
|
namespace: envoy-gateway-system
|
||||||
|
sectionName: http
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
apiVersion: velero.io/v1
|
|
||||||
kind: Schedule
|
|
||||||
metadata:
|
|
||||||
name: daily-backup
|
|
||||||
namespace: velero
|
|
||||||
annotations:
|
|
||||||
velero.io/csi-volumesnapshot-class_driver.longhorn.io: "longhorn-backup-vsc"
|
|
||||||
spec:
|
|
||||||
schedule: "0 1 * * *" # Daily at 1 AM
|
|
||||||
template:
|
|
||||||
# includedNamespaces:
|
|
||||||
# - immich
|
|
||||||
# - nextcloud
|
|
||||||
# - home-assistant
|
|
||||||
# - ttrss
|
|
||||||
ttl: 30d # 30 days
|
|
||||||
defaultVolumesToFsBackup: true
|
|
||||||
---
|
|
||||||
apiVersion: velero.io/v1
|
|
||||||
kind: Schedule
|
|
||||||
metadata:
|
|
||||||
name: weekly-backup
|
|
||||||
namespace: velero
|
|
||||||
annotations:
|
|
||||||
velero.io/csi-volumesnapshot-class_driver.longhorn.io: "longhorn-backup-vsc"
|
|
||||||
spec:
|
|
||||||
schedule: "0 0 * * 0" # Weekly on Sunday at midnight
|
|
||||||
template:
|
|
||||||
# includedNamespaces:
|
|
||||||
# - immich
|
|
||||||
# - nextcloud
|
|
||||||
# - home-assistant
|
|
||||||
# - ttrss
|
|
||||||
ttl: 90d # 90 days
|
|
||||||
defaultVolumesToFsBackup: true
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
# apiVersion: argoproj.io/v1alpha1
|
|
||||||
# kind: Application
|
|
||||||
# metadata:
|
|
||||||
# name: blog-helm
|
|
||||||
# namespace: argocd
|
|
||||||
# finalizers:
|
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
|
||||||
# spec:
|
|
||||||
# destination:
|
|
||||||
# namespace: blog
|
|
||||||
# server: https://kubernetes.default.svc
|
|
||||||
# project: default
|
|
||||||
# source:
|
|
||||||
# repoURL: registry-1.docker.io/bitnamicharts
|
|
||||||
# targetRevision: 19.9.0
|
|
||||||
# chart: ghost
|
|
||||||
# helm:
|
|
||||||
# values: |
|
|
||||||
# image:
|
|
||||||
# # repository: ghost
|
|
||||||
# # tag: 5.114.1
|
|
||||||
# debug: true
|
|
||||||
# ghostUsername: Ruben
|
|
||||||
# ## @param existingSecret Name of existing secret containing Ghost credentials
|
|
||||||
# ## NOTE: Must contain key `ghost-password`
|
|
||||||
# ## NOTE: When it's set, the `ghostPassword` parameter is ignored
|
|
||||||
# existingSecret: ghost-es
|
|
||||||
# ghostEmail: ruben@hensen.io
|
|
||||||
# ghostBlogTitle: Catch && Compile
|
|
||||||
# ghostHost: "blog.hensen.io"
|
|
||||||
# ghostPath: /
|
|
||||||
# ghostEnableHttps: true
|
|
||||||
# ## SMTP mail delivery configuration
|
|
||||||
# ## ref: https://github.com/bitnami/containers/tree/main/bitnami/ghost/#smtp-configuration
|
|
||||||
# ## @param smtpHost SMTP server host
|
|
||||||
# ## @param smtpPort SMTP server port
|
|
||||||
# ## @param smtpUser SMTP username
|
|
||||||
# ## @param smtpPassword SMTP user password
|
|
||||||
# ## @param smtpService SMTP service
|
|
||||||
# ## @param smtpProtocol SMTP protocol (ssl or tls)
|
|
||||||
# ##
|
|
||||||
# smtpHost: smtp.hostinger.com
|
|
||||||
# smtpPort: 587
|
|
||||||
# smtpUser: ruben@hensen.io
|
|
||||||
# smtpPassword: "ignored-but-hast-to-exist-else-password-isnt-passed"
|
|
||||||
# smtpProtocol: tls
|
|
||||||
# smtpService: hostinger
|
|
||||||
# ## @param smtpExistingSecret The name of an existing secret with SMTP credentials
|
|
||||||
# ## NOTE: Must contain key `smtp-password`
|
|
||||||
# ## NOTE: When it's set, the `smtpPassword` parameter is ignored
|
|
||||||
# ##
|
|
||||||
# ## @param extraEnvVars Array with extra environment variables to add to the Ghost container
|
|
||||||
# ## e.g:
|
|
||||||
# ## extraEnvVars:
|
|
||||||
# ## - name: FOO
|
|
||||||
# ## value: "bar"
|
|
||||||
# ##
|
|
||||||
# # extraEnvVars:
|
|
||||||
# # - name: mail__options__secure
|
|
||||||
# # value: "false"
|
|
||||||
# ## @param allowEmptyPassword Allow the container to be started with blank passwords
|
|
||||||
# allowEmptyPassword: false
|
|
||||||
# resourcesPreset: "micro"
|
|
||||||
# containerPorts:
|
|
||||||
# http: 2368
|
|
||||||
# https: 2368
|
|
||||||
# service:
|
|
||||||
# type: ClusterIP
|
|
||||||
# ports:
|
|
||||||
# http: 80
|
|
||||||
# https: 443
|
|
||||||
# ingress:
|
|
||||||
# enabled: true
|
|
||||||
# ingressClassName: nginx
|
|
||||||
# hostname: blog.hensen.io
|
|
||||||
# path: /
|
|
||||||
# annotations:
|
|
||||||
# cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: 1G
|
|
||||||
# tls: true
|
|
||||||
# tlsWwwPrefix: false
|
|
||||||
# selfSigned: false
|
|
||||||
# persistence:
|
|
||||||
# enabled: true
|
|
||||||
# accessModes:
|
|
||||||
# - ReadWriteOnce
|
|
||||||
# size: 8Gi
|
|
||||||
# mysql:
|
|
||||||
# enabled: true
|
|
||||||
# architecture: standalone
|
|
||||||
# ## MySQL Authentication parameters
|
|
||||||
# ## @param mysql.auth.rootPassword MySQL root password
|
|
||||||
# ## @param mysql.auth.database MySQL custom database
|
|
||||||
# ## @param mysql.auth.username MySQL custom user name
|
|
||||||
# ## @param mysql.auth.password MySQL custom user password
|
|
||||||
# ## @param mysql.auth.existingSecret Existing secret with MySQL credentials
|
|
||||||
# ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mysql#setting-the-root-password-on-first-run
|
|
||||||
# ## https://github.com/bitnami/containers/tree/main/bitnami/mysql/#creating-a-database-on-first-run
|
|
||||||
# ## https://github.com/bitnami/containers/tree/main/bitnami/mysql/#creating-a-database-user-on-first-run
|
|
||||||
# auth:
|
|
||||||
# database: bitnami_ghost
|
|
||||||
# username: bn_ghost
|
|
||||||
# existingSecret: ghost-es
|
|
||||||
# primary:
|
|
||||||
# ## MySQL Primary Persistence parameters
|
|
||||||
# ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
|
|
||||||
# ## @param mysql.primary.persistence.enabled Enable persistence on MySQL using PVC(s)
|
|
||||||
# ## @param mysql.primary.persistence.storageClass Persistent Volume storage class
|
|
||||||
# ## @param mysql.primary.persistence.accessModes [array] Persistent Volume access modes
|
|
||||||
# ## @param mysql.primary.persistence.size Persistent Volume size
|
|
||||||
# ##
|
|
||||||
# persistence:
|
|
||||||
# enabled: true
|
|
||||||
# storageClass: ""
|
|
||||||
# accessModes:
|
|
||||||
# - ReadWriteOnce
|
|
||||||
# size: 8Gi
|
|
||||||
# ## MySQL primary container's resource requests and limits
|
|
||||||
# ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
|
||||||
# ## We usually recommend not to specify default resources and to leave this as a conscious
|
|
||||||
# ## choice for the user. This also increases chances charts run on environments with little
|
|
||||||
# ## resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
||||||
# ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
||||||
# ## @param mysql.primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production)
|
|
||||||
# resourcesPreset: "small"
|
|
||||||
|
|
||||||
# syncPolicy:
|
|
||||||
# syncOptions:
|
|
||||||
# - CreateNamespace=true
|
|
||||||
# automated:
|
|
||||||
# selfHeal: true
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: velero.io/v1
|
|
||||||
kind: Schedule
|
|
||||||
metadata:
|
|
||||||
name: daily-backup3
|
|
||||||
spec:
|
|
||||||
schedule: "*/1 * * * *" # Daily at 1 AM
|
|
||||||
template:
|
|
||||||
ttl: 1h # 30 days
|
|
||||||
defaultVolumesToFsBackup: true
|
|
||||||
snapshotVolumes: true
|
|
||||||
snapshotMoveData: true
|
|
||||||
includedNamespaces:
|
|
||||||
- ttrss
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: ente-photos-folder
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: ente-photos
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: ente-photos
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
io.kompose.service: custom-logs
|
|
||||||
name: custom-logs
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 100Mi
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: museum
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: ente
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: ente
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: ENTE_DB_HOST
|
|
||||||
value: "helm-postgresql"
|
|
||||||
- name: ENTE_DB_PORT
|
|
||||||
value: "5432"
|
|
||||||
- name: ENTE_DB_NAME
|
|
||||||
value: "ente_db"
|
|
||||||
- name: ENTE_DB_USER
|
|
||||||
value: "pguser"
|
|
||||||
- name: ENTE_DB_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: ente-photos-config
|
|
||||||
key: pgpass
|
|
||||||
- name: ENTE_S3_ARE_LOCAL_BUCKETS
|
|
||||||
value: "false"
|
|
||||||
- name: ENTE_S3_ENTE-PHOTOS_KEY
|
|
||||||
value: "ente-photos-user"
|
|
||||||
- name: ENTE_S3_ENTE-PHOTOS_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: ente-photos-config
|
|
||||||
key: miniopass
|
|
||||||
- name: ENTE_S3_ENTE-PHOTOS_ENDPOINT
|
|
||||||
value: "minio.hensen.io:3200"
|
|
||||||
- name: ENTE_S3_ENTE-PHOTOS_REGION
|
|
||||||
value: "nl"
|
|
||||||
- name: ENTE_S3_ENTE-PHOTOS_BUCKET
|
|
||||||
value: "ente-photos"
|
|
||||||
image: ghcr.io/ente-io/server
|
|
||||||
name: museum
|
|
||||||
# command: [ "sh", "-c"]
|
|
||||||
# # loop forever, outputting "yo" every 5 seconds
|
|
||||||
# args: ["while true; do echo 'yo' && sleep 5; done;"]
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 2112
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/logs
|
|
||||||
name: custom-logs
|
|
||||||
- mountPath: /museum.yaml
|
|
||||||
name: museum-claim1
|
|
||||||
readOnly: true
|
|
||||||
- mountPath: /data
|
|
||||||
name: museum-claim3
|
|
||||||
readOnly: true
|
|
||||||
# - args:
|
|
||||||
# - TCP-LISTEN:3200,fork,reuseaddr
|
|
||||||
# - TCP:minio:3200
|
|
||||||
# image: alpine/socat
|
|
||||||
# name: socat
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- name: custom-logs
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: custom-logs
|
|
||||||
- name: museum-claim1
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: museum-claim1
|
|
||||||
readOnly: true
|
|
||||||
- name: museum-claim3
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: museum-claim3
|
|
||||||
readOnly: true
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: ente-server-ingress
|
|
||||||
annotations:
|
|
||||||
# nginx.ingress.kubernetes.io/rewrite-target: /
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
||||||
nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000/"
|
|
||||||
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE"
|
|
||||||
# If you encounter a redirect loop or are getting a 307 response code
|
|
||||||
# then you need to force the nginx ingress to connect to the backend using HTTPS.
|
|
||||||
#
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
||||||
namespace: ente-photos
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: ente-server.hensen.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: ente-service
|
|
||||||
port:
|
|
||||||
name: "eightyeighty"
|
|
||||||
|
|
||||||
# TLS configuration for HTTPS
|
|
||||||
tls:
|
|
||||||
# TLS secretName used on ClusterIssuer
|
|
||||||
- secretName: letsencrypt-prod
|
|
||||||
hosts:
|
|
||||||
- ente-server.hensen.io
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: template
|
|
||||||
spec:
|
|
||||||
refreshInterval: "15s"
|
|
||||||
secretStoreRef:
|
|
||||||
name: vault-backend
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
target:
|
|
||||||
name: ente-photos-config
|
|
||||||
data:
|
|
||||||
- secretKey: pgpass
|
|
||||||
remoteRef:
|
|
||||||
key: ente-photos-postgres
|
|
||||||
property: password
|
|
||||||
- secretKey: miniopass
|
|
||||||
remoteRef:
|
|
||||||
key: minio-ente-photos-user
|
|
||||||
property: password
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
kind: Deployment
|
|
||||||
apiVersion: apps/v1
|
|
||||||
metadata:
|
|
||||||
name: ente-web
|
|
||||||
labels:
|
|
||||||
app: ente-web
|
|
||||||
# docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: ente-web
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: ente-web
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: ente-web
|
|
||||||
image: hebury/ente-web:0.2
|
|
||||||
ports:
|
|
||||||
- containerPort: 3000
|
|
||||||
protocol: TCP
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: ente-web-ingress
|
|
||||||
annotations:
|
|
||||||
# nginx.ingress.kubernetes.io/rewrite-target: /
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
|
||||||
# nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
||||||
# nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000/"
|
|
||||||
# nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE"
|
|
||||||
# If you encounter a redirect loop or are getting a 307 response code
|
|
||||||
# then you need to force the nginx ingress to connect to the backend using HTTPS.
|
|
||||||
#
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
||||||
namespace: ente-photos
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: ente.hensen.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: ente-service
|
|
||||||
port:
|
|
||||||
name: "https"
|
|
||||||
|
|
||||||
# TLS configuration for HTTPS
|
|
||||||
tls:
|
|
||||||
# TLS secretName used on ClusterIssuer
|
|
||||||
- secretName: letsencrypt-prod2
|
|
||||||
hosts:
|
|
||||||
- ente.hensen.io
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: ente-web-service
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: https
|
|
||||||
port: 3000
|
|
||||||
targetPort: 3000
|
|
||||||
selector:
|
|
||||||
app: ente-web
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: helm-postgresql
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
project: default
|
|
||||||
sources:
|
|
||||||
- chart: postgresql
|
|
||||||
repoURL: registry-1.docker.io/bitnamicharts
|
|
||||||
targetRevision: 15.5.29
|
|
||||||
helm:
|
|
||||||
valueFiles:
|
|
||||||
- $values/ente-photos/postgres-values.yaml
|
|
||||||
- repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
ref: values
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: ente-photos
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
io.kompose.service: museum-claim1
|
|
||||||
name: museum-claim1
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 100Mi
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
io.kompose.service: museum-claim3
|
|
||||||
name: museum-claim3
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 100Mi
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: ente-service
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: ente
|
|
||||||
ports:
|
|
||||||
- name: "eightyeighty"
|
|
||||||
port: 8080
|
|
||||||
targetPort: 8080
|
|
||||||
- name: "2112"
|
|
||||||
port: 2112
|
|
||||||
targetPort: 2112
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: pgadmin-es
|
|
||||||
namespace: ente-photos
|
|
||||||
spec:
|
|
||||||
refreshInterval: "15s"
|
|
||||||
secretStoreRef:
|
|
||||||
name: vault-backend
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
target:
|
|
||||||
name: pgadmin-secret
|
|
||||||
|
|
||||||
dataFrom:
|
|
||||||
- extract:
|
|
||||||
key: pgadmin
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: pgadmin
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: pgadmin
|
|
||||||
replicas: 1
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: pgadmin
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
|
|
||||||
- name: pgadmin4
|
|
||||||
image: dpage/pgadmin4
|
|
||||||
env:
|
|
||||||
- name: PGADMIN_DEFAULT_EMAIL
|
|
||||||
value: "admin@admin.com"
|
|
||||||
- name: PGADMIN_DEFAULT_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: pgadmin-secret
|
|
||||||
key: pgadmin-default-password
|
|
||||||
- name: PGADMIN_PORT
|
|
||||||
value: "80"
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
name: pgadminport
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: pgadmin
|
|
||||||
labels:
|
|
||||||
app: pgadmin
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: pgadmin
|
|
||||||
type: NodePort
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
nodePort: 30200
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: postgresql-es
|
|
||||||
namespace: ente-photos
|
|
||||||
spec:
|
|
||||||
refreshInterval: "15s"
|
|
||||||
secretStoreRef:
|
|
||||||
name: vault-backend
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
target:
|
|
||||||
name: postgres-config
|
|
||||||
|
|
||||||
dataFrom:
|
|
||||||
- extract:
|
|
||||||
key: ente-photos-postgres
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
# apiVersion: argoproj.io/v1alpha1
|
|
||||||
# kind: Application
|
|
||||||
# metadata:
|
|
||||||
# name: mbg-helm
|
|
||||||
# namespace: argocd
|
|
||||||
# finalizers:
|
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
|
||||||
# spec:
|
|
||||||
# destination:
|
|
||||||
# namespace: mbg
|
|
||||||
# server: https://kubernetes.default.svc
|
|
||||||
# project: default
|
|
||||||
# source:
|
|
||||||
# repoURL: registry-1.docker.io/bitnamicharts
|
|
||||||
# targetRevision: 24.1.13
|
|
||||||
# chart: wordpress
|
|
||||||
# helm:
|
|
||||||
# values: |
|
|
||||||
# service:
|
|
||||||
# ## @param service.type WordPress service type
|
|
||||||
# ##
|
|
||||||
# type: ClusterIP
|
|
||||||
# ingress:
|
|
||||||
# enabled: true
|
|
||||||
# ingressClassName: nginx
|
|
||||||
# hostname: scoutingmbg.nl
|
|
||||||
# path: /
|
|
||||||
# annotations:
|
|
||||||
# cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: 1G
|
|
||||||
# tls: true
|
|
||||||
# tlsWwwPrefix: false
|
|
||||||
# selfSigned: false
|
|
||||||
# extraHosts:
|
|
||||||
# - name: www.scoutingmbg.nl
|
|
||||||
# extraPaths: []
|
|
||||||
# extraTls:
|
|
||||||
# - secretName: letsencrypt-prod
|
|
||||||
# hosts:
|
|
||||||
# - scoutingmbg.nl
|
|
||||||
# - www.scoutingmbg.nl
|
|
||||||
# secrets: []
|
|
||||||
# extraRules: []
|
|
||||||
|
|
||||||
# persistence:
|
|
||||||
# ## @param persistence.enabled Enable persistence using Persistent Volume Claims
|
|
||||||
# ##
|
|
||||||
# enabled: true
|
|
||||||
# ## @param persistence.storageClass Persistent Volume storage class
|
|
||||||
# ## If defined, storageClassName: <storageClass>
|
|
||||||
# ## If set to "-", storageClassName: "", which disables dynamic provisioning
|
|
||||||
# ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
|
|
||||||
# ##
|
|
||||||
# storageClass: ""
|
|
||||||
# ## @param persistence.accessModes [array] Persistent Volume access modes
|
|
||||||
# ##
|
|
||||||
# accessModes:
|
|
||||||
# - ReadWriteOnce
|
|
||||||
# ## @param persistence.accessMode Persistent Volume access mode (DEPRECATED: use `persistence.accessModes` instead)
|
|
||||||
# ##
|
|
||||||
# accessMode: ReadWriteOnce
|
|
||||||
# ## @param persistence.size Persistent Volume size
|
|
||||||
# ##
|
|
||||||
# size: 10Gi
|
|
||||||
# ## @param persistence.dataSource Custom PVC data source
|
|
||||||
# ##
|
|
||||||
# dataSource: {}
|
|
||||||
# ## @param persistence.existingClaim The name of an existing PVC to use for persistence
|
|
||||||
# ##
|
|
||||||
# existingClaim: ""
|
|
||||||
# ## @param persistence.selector Selector to match an existing Persistent Volume for WordPress data PVC
|
|
||||||
# ## If set, the PVC can't have a PV dynamically provisioned for it
|
|
||||||
# ## E.g.
|
|
||||||
# ## selector:
|
|
||||||
# ## matchLabels:
|
|
||||||
# ## app: my-app
|
|
||||||
# ##
|
|
||||||
# selector: {}
|
|
||||||
# ## @param persistence.annotations Persistent Volume Claim annotations
|
|
||||||
# ##
|
|
||||||
# annotations: {}
|
|
||||||
# allowEmptyPassword: false
|
|
||||||
# existingSecret: wordpress-credentials
|
|
||||||
# wordpressUsername: rubenhensen
|
|
||||||
# smtpExistingSecret: wordpress-credentials
|
|
||||||
# customHTAccessCM: prod-wordpress-cm
|
|
||||||
# resourcesPreset: "large"
|
|
||||||
# livenessProbe:
|
|
||||||
# enabled: false
|
|
||||||
|
|
||||||
# syncPolicy:
|
|
||||||
# syncOptions:
|
|
||||||
# - CreateNamespace=true
|
|
||||||
# automated:
|
|
||||||
# selfHeal: true
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: minio-folder
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: minio
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: minio
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: minio-operator
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
prune: true
|
|
||||||
project: default
|
|
||||||
sources:
|
|
||||||
- chart: operator
|
|
||||||
repoURL: https://operator.min.io
|
|
||||||
targetRevision: 6.0.3
|
|
||||||
helm:
|
|
||||||
valueFiles:
|
|
||||||
- $values/minio/values-operator.yaml
|
|
||||||
- repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
ref: values
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: minio-operator
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: minio-tenant
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
prune: true
|
|
||||||
project: default
|
|
||||||
sources:
|
|
||||||
- chart: tenant
|
|
||||||
repoURL: https://operator.min.io
|
|
||||||
targetRevision: 6.0.3
|
|
||||||
helm:
|
|
||||||
valueFiles:
|
|
||||||
- $values/minio/values-tenant.yaml
|
|
||||||
- repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
ref: values
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: minio-tenant
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: minio-tenant-es
|
|
||||||
namespace: minio-tenant
|
|
||||||
spec:
|
|
||||||
refreshInterval: "15s"
|
|
||||||
secretStoreRef:
|
|
||||||
name: vault-backend
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
target:
|
|
||||||
name: minio-env-configuration
|
|
||||||
|
|
||||||
data:
|
|
||||||
- secretKey: config.env
|
|
||||||
remoteRef:
|
|
||||||
key: minio-tenant-root
|
|
||||||
property: config.env
|
|
||||||
|
|
||||||
# # metadataPolicy to fetch all the labels in JSON format
|
|
||||||
# - secretKey: tags
|
|
||||||
# remoteRef:
|
|
||||||
# metadataPolicy: Fetch
|
|
||||||
# key: foo
|
|
||||||
|
|
||||||
# # metadataPolicy to fetch a specific label (dev) from the source secret
|
|
||||||
# - secretKey: developer
|
|
||||||
# remoteRef:
|
|
||||||
# metadataPolicy: Fetch
|
|
||||||
# key: foo
|
|
||||||
# property: dev
|
|
||||||
@@ -1,319 +0,0 @@
|
|||||||
###
|
|
||||||
# Root key for Operator Helm Chart
|
|
||||||
operator:
|
|
||||||
###
|
|
||||||
# An array of environment variables to pass to the Operator deployment.
|
|
||||||
# Pass an empty array to start Operator with defaults.
|
|
||||||
#
|
|
||||||
# For example:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# env:
|
|
||||||
# - name: MINIO_OPERATOR_DEPLOYMENT_NAME
|
|
||||||
# valueFrom:
|
|
||||||
# fieldRef:
|
|
||||||
# fieldPath: metadata.labels['app.kubernetes.io/name']
|
|
||||||
# - name: MINIO_CONSOLE_TLS_ENABLE
|
|
||||||
# value: "off"
|
|
||||||
# - name: CLUSTER_DOMAIN
|
|
||||||
# value: "cluster.domain"
|
|
||||||
# - name: WATCHED_NAMESPACE
|
|
||||||
# value: ""
|
|
||||||
# - name: MINIO_OPERATOR_RUNTIME
|
|
||||||
# value: "OpenShift"
|
|
||||||
#
|
|
||||||
# See `Operator environment variables <https://github.com/minio/operator/blob/master/docs/env-variables.md>`__ for a list of all supported values.
|
|
||||||
env:
|
|
||||||
- name: OPERATOR_STS_ENABLED
|
|
||||||
value: "on"
|
|
||||||
###
|
|
||||||
# Specify the Operator container image to use for the deployment.
|
|
||||||
# ``image.tag``
|
|
||||||
# For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.11 tag.
|
|
||||||
# The container pulls the image if not already present:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# image:
|
|
||||||
# repository: quay.io/minio/operator
|
|
||||||
# tag: v5.0.11
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
#
|
|
||||||
# The chart also supports specifying an image based on digest value:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# image:
|
|
||||||
# repository: quay.io/minio/operator@sha256
|
|
||||||
# digest: 28c80b379c75242c6fe793dfbf212f43c602140a0de5ebe3d9c2a3a7b9f9f983
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
#
|
|
||||||
image:
|
|
||||||
repository: quay.io/minio/operator
|
|
||||||
tag: v5.0.11
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# An array of Kubernetes secrets to use for pulling images from a private ``image.repository``.
|
|
||||||
# Only one array element is supported at this time.
|
|
||||||
imagePullSecrets: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The name of a custom `Container Runtime <https://kubernetes.io/docs/concepts/containers/runtime-class/>`__ to use for the Operator pods.
|
|
||||||
runtimeClassName: ~
|
|
||||||
###
|
|
||||||
# An array of `initContainers <https://kubernetes.io/docs/concepts/workloads/pods/init-containers/>`__ to start up before the Operator pods.
|
|
||||||
# Exercise care as ``initContainer`` failures prevent Operator pods from starting.
|
|
||||||
# Pass an empty array to start the Operator normally.
|
|
||||||
initContainers: [ ]
|
|
||||||
###
|
|
||||||
# The number of Operator pods to deploy.
|
|
||||||
# Higher values increase availability in the event of worker node failures.
|
|
||||||
#
|
|
||||||
# The cluster must have sufficient number of available worker nodes to fulfill the request.
|
|
||||||
# Operator pods deploy with pod anti-affinity by default, preventing Kubernetes from scheduling multiple pods onto a single Worker node.
|
|
||||||
replicaCount: 1
|
|
||||||
###
|
|
||||||
# The Kubernetes `SecurityContext <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`__ to use for deploying Operator resources.
|
|
||||||
#
|
|
||||||
# You may need to modify these values to meet your cluster's security and access settings.
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsNonRoot: true
|
|
||||||
fsGroup: 1000
|
|
||||||
###
|
|
||||||
# The Kubernetes `SecurityContext <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`__ to use for deploying Operator containers.
|
|
||||||
# You may need to modify these values to meet your cluster's security and access settings.
|
|
||||||
containerSecurityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsNonRoot: true
|
|
||||||
###
|
|
||||||
# An array of `Volumes <https://kubernetes.io/docs/concepts/storage/volumes/>`__ which the Operator can mount to pods.
|
|
||||||
#
|
|
||||||
# The volumes must exist *and* be accessible to the Operator pods.
|
|
||||||
volumes: [ ]
|
|
||||||
###
|
|
||||||
# An array of volume mount points associated to each Operator container.
|
|
||||||
#
|
|
||||||
# Specify each item in the array as follows:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: volumename
|
|
||||||
# mountPath: /path/to/mount
|
|
||||||
#
|
|
||||||
# The ``name`` field must correspond to an entry in the ``volumes`` array.
|
|
||||||
volumeMounts: [ ]
|
|
||||||
###
|
|
||||||
# Any `Node Selectors <https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/>`__ to apply to Operator pods.
|
|
||||||
#
|
|
||||||
# The Kubernetes scheduler uses these selectors to determine which worker nodes onto which it can deploy Operator pods.
|
|
||||||
#
|
|
||||||
# If no worker nodes match the specified selectors, the Operator deployment will fail.
|
|
||||||
nodeSelector: { }
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The `Pod Priority <https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/>`__ to assign to Operator pods.
|
|
||||||
priorityClassName: ""
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The `affinity <https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/>`__ or anti-affinity settings to apply to Operator pods.
|
|
||||||
#
|
|
||||||
# These settings determine the distribution of pods across worker nodes and can help prevent or allow colocating pods onto the same worker nodes.
|
|
||||||
affinity:
|
|
||||||
podAntiAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: name
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- minio-operator
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# An array of `Toleration labels <https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/>`__ to associate to Operator pods.
|
|
||||||
#
|
|
||||||
# These settings determine the distribution of pods across worker nodes.
|
|
||||||
tolerations: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# An array of `Topology Spread Constraints <https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/>`__ to associate to Operator pods.
|
|
||||||
#
|
|
||||||
# These settings determine the distribution of pods across worker nodes.
|
|
||||||
topologySpreadConstraints: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The `Requests or Limits <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>`__ for resources to associate to Operator pods.
|
|
||||||
#
|
|
||||||
# These settings can control the minimum and maximum resources requested for each pod.
|
|
||||||
# If no worker nodes can meet the specified requests, the Operator may fail to deploy.
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 256Mi
|
|
||||||
ephemeral-storage: 500Mi
|
|
||||||
|
|
||||||
###
|
|
||||||
# Root key for Operator Console
|
|
||||||
console:
|
|
||||||
###
|
|
||||||
# Specify ``false`` to disable the Operator Console.
|
|
||||||
#
|
|
||||||
# If the Operator Console is disabled, all management of Operator Tenants must be done through the Kubernetes API.
|
|
||||||
enabled: true
|
|
||||||
###
|
|
||||||
# Specify the Operator Console container image to use for the deployment.
|
|
||||||
# ``image.tag``
|
|
||||||
# For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v5.0.11 tag.
|
|
||||||
# The container pulls the image if not already present:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# image:
|
|
||||||
# repository: quay.io/minio/operator
|
|
||||||
# tag: v5.0.11
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
#
|
|
||||||
# The chart also supports specifying an image based on digest value:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# image:
|
|
||||||
# repository: quay.io/minio/operator@sha256
|
|
||||||
# digest: 28c80b379c75242c6fe793dfbf212f43c602140a0de5ebe3d9c2a3a7b9f9f983
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
#
|
|
||||||
# The specified values should match that of ``operator.image`` to ensure predictable operations.
|
|
||||||
image:
|
|
||||||
repository: quay.io/minio/operator
|
|
||||||
tag: v5.0.11
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
###
|
|
||||||
# An array of environment variables to pass to the Operator Console deployment.
|
|
||||||
# Pass an empty array to start Operator Console with defaults.
|
|
||||||
env: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# An array of Kubernetes secrets to use for pulling images from a private ``image.repository``.
|
|
||||||
imagePullSecrets: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The name of a custom `Container Runtime <https://kubernetes.io/docs/concepts/containers/runtime-class/>`__ to use for the Operator Console pods.
|
|
||||||
runtimeClassName: ~
|
|
||||||
###
|
|
||||||
# An array of `initContainers <https://kubernetes.io/docs/concepts/workloads/pods/init-containers/>`__ to start up before the Operator Console pods.
|
|
||||||
# Exercise care as ``initContainer`` failures prevent Console pods from starting.
|
|
||||||
# Pass an empty array to start the Console normally.
|
|
||||||
initContainers: [ ]
|
|
||||||
###
|
|
||||||
# The number of Operator Console pods to deploy.
|
|
||||||
# Higher values increase availability in the event of worker node failures.
|
|
||||||
#
|
|
||||||
# The cluster must have sufficient number of available worker nodes to fulfill the request.
|
|
||||||
# Console pods deploy with pod anti-affinity by default, preventing Kubernetes from scheduling multiple pods onto a single Worker node.
|
|
||||||
replicaCount: 1
|
|
||||||
###
|
|
||||||
# Any `Node Selectors <https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/>`__ to apply to Operator Console pods.
|
|
||||||
#
|
|
||||||
# The Kubernetes scheduler uses these selectors to determine which worker nodes onto which it can deploy Console pods.
|
|
||||||
#
|
|
||||||
# If no worker nodes match the specified selectors, the Console deployment will fail.
|
|
||||||
nodeSelector: { }
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The `affinity <https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/>`__ or anti-affinity settings to apply to Operator Console pods.
|
|
||||||
#
|
|
||||||
# These settings determine the distribution of pods across worker nodes and can help prevent or allow colocating pods onto the same worker nodes.
|
|
||||||
affinity:
|
|
||||||
podAntiAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: name
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- minio-operator
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# An array of `Toleration labels <https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/>`__ to associate to Operator Console pods.
|
|
||||||
#
|
|
||||||
# These settings determine the distribution of pods across worker nodes.
|
|
||||||
tolerations: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# An array of `Topology Spread Constraints <https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/>`__ to associate to Operator Console pods.
|
|
||||||
#
|
|
||||||
# These settings determine the distribution of pods across worker nodes.
|
|
||||||
topologySpreadConstraints: [ ]
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The `Requests or Limits <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>`__ for resources to associate to Operator Console pods.
|
|
||||||
#
|
|
||||||
# These settings can control the minimum and maximum resources requested for each pod.
|
|
||||||
# If no worker nodes can meet the specified requests, the Console may fail to deploy.
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 0.25
|
|
||||||
memory: 512Mi
|
|
||||||
###
|
|
||||||
# The Kubernetes `SecurityContext <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`__ to use for deploying Operator Console resources.
|
|
||||||
#
|
|
||||||
# You may need to modify these values to meet your cluster's security and access settings.
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsNonRoot: true
|
|
||||||
###
|
|
||||||
# The Kubernetes `SecurityContext <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`__ to use for deploying Operator Console containers.
|
|
||||||
# You may need to modify these values to meet your cluster's security and access settings.
|
|
||||||
containerSecurityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsNonRoot: true
|
|
||||||
###
|
|
||||||
# Configures `Ingress <https://kubernetes.io/docs/concepts/services-networking/ingress/>`__ for the Operator Console.
|
|
||||||
#
|
|
||||||
# Set the keys to conform to the Ingress controller and configuration of your choice.
|
|
||||||
# ingress:
|
|
||||||
# enabled: true
|
|
||||||
# ingressClassName: nginx
|
|
||||||
# labels: { }
|
|
||||||
# annotations:
|
|
||||||
# cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# # nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
||||||
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
|
||||||
# tls:
|
|
||||||
# # TLS secretName used on ClusterIssuer
|
|
||||||
# - secretName: letsencrypt-prod
|
|
||||||
# hosts:
|
|
||||||
# - minio-console.hensen.io
|
|
||||||
# host: minio-console.hensen.io
|
|
||||||
# path: /
|
|
||||||
# pathType: Prefix
|
|
||||||
###
|
|
||||||
# An array of `Volumes <https://kubernetes.io/docs/concepts/storage/volumes/>`__ which the Operator Console can mount to pods.
|
|
||||||
#
|
|
||||||
# The volumes must exist *and* be accessible to the Console pods.
|
|
||||||
volumes:
|
|
||||||
- name: tmp
|
|
||||||
emptyDir: {}
|
|
||||||
###
|
|
||||||
# An array of volume mount points associated to each Operator Console container.
|
|
||||||
#
|
|
||||||
# Specify each item in the array as follows:
|
|
||||||
#
|
|
||||||
# .. code-block:: yaml
|
|
||||||
#
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: volumename
|
|
||||||
# mountPath: /path/to/mount
|
|
||||||
#
|
|
||||||
# The ``name`` field must correspond to an entry in the ``volumes`` array.
|
|
||||||
volumeMounts:
|
|
||||||
- name: tmp
|
|
||||||
readOnly: false
|
|
||||||
mountPath: /tmp/certs/CAs
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
tenant:
|
|
||||||
name: myminio
|
|
||||||
image:
|
|
||||||
repository: quay.io/minio/minio
|
|
||||||
tag: RELEASE.2024-08-17T01-24-54Z
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
imagePullSecret: { }
|
|
||||||
scheduler: { }
|
|
||||||
configuration:
|
|
||||||
name: minio-env-configuration
|
|
||||||
|
|
||||||
configSecret:
|
|
||||||
existingSecret: true
|
|
||||||
|
|
||||||
pools:
|
|
||||||
- servers: 1
|
|
||||||
name: pool-0
|
|
||||||
volumesPerServer: 1
|
|
||||||
size: 10Gi
|
|
||||||
storageAnnotations: { }
|
|
||||||
annotations: { }
|
|
||||||
labels: { }
|
|
||||||
tolerations: [ ]
|
|
||||||
nodeSelector: { }
|
|
||||||
affinity: { }
|
|
||||||
resources: { }
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
|
||||||
runAsNonRoot: true
|
|
||||||
containerSecurityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsNonRoot: true
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
seccompProfile:
|
|
||||||
type: RuntimeDefault
|
|
||||||
topologySpreadConstraints: [ ]
|
|
||||||
mountPath: /export
|
|
||||||
subPath: /data
|
|
||||||
metrics:
|
|
||||||
enabled: false
|
|
||||||
port: 9000
|
|
||||||
protocol: http
|
|
||||||
|
|
||||||
certificate:
|
|
||||||
externalCaCertSecret: [ ]
|
|
||||||
externalCertSecret: [ ]
|
|
||||||
requestAutoCert: true
|
|
||||||
certConfig: { }
|
|
||||||
features:
|
|
||||||
bucketDNS: false
|
|
||||||
domains: { }
|
|
||||||
enableSFTP: false
|
|
||||||
buckets: [ ]
|
|
||||||
users: [ ]
|
|
||||||
podManagementPolicy: Parallel
|
|
||||||
liveness: { }
|
|
||||||
readiness: { }
|
|
||||||
startup: { }
|
|
||||||
lifecycle: { }
|
|
||||||
exposeServices: { }
|
|
||||||
serviceAccountName: ""
|
|
||||||
prometheusOperator: false
|
|
||||||
logging: { }
|
|
||||||
serviceMetadata: { }
|
|
||||||
env: [ ]
|
|
||||||
priorityClassName: ""
|
|
||||||
additionalVolumes: [ ]
|
|
||||||
additionalVolumeMounts: [ ]
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
api:
|
|
||||||
enabled: true
|
|
||||||
ingressClassName: nginx
|
|
||||||
# labels: { }
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
|
||||||
tls:
|
|
||||||
- secretName: letsencrypt-prod
|
|
||||||
hosts:
|
|
||||||
- minio.hensen.io
|
|
||||||
host: minio.hensen.io
|
|
||||||
path: /
|
|
||||||
pathType: Prefix
|
|
||||||
console:
|
|
||||||
enabled: true
|
|
||||||
ingressClassName: nginx
|
|
||||||
# labels: { }
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
|
||||||
tls:
|
|
||||||
- secretName: letsencrypt-prod-2
|
|
||||||
hosts:
|
|
||||||
- minio-console.hensen.io
|
|
||||||
host: minio-console.hensen.io
|
|
||||||
path: /
|
|
||||||
pathType: Prefix
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: mist-folder
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: mist
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: mist
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: rowing-webcam-ingress
|
|
||||||
namespace: default
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: "nginx"
|
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# Add basic auth to protect the webcam
|
|
||||||
# nginx.ingress.kubernetes.io/auth-type: basic
|
|
||||||
# nginx.ingress.kubernetes.io/auth-secret: rowing-webcam-auth
|
|
||||||
# nginx.ingress.kubernetes.io/auth-realm: "Rowing Club Webcam"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: mist.hensen.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: rowing-webcam-service
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- mist.hensen.io
|
|
||||||
secretName: mist-hensen-io-tls # Make sure this TLS secret exists
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: rowing-webcam-service
|
|
||||||
namespace: default
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
# This is an ExternalName service that points to your Raspberry Pi
|
|
||||||
type: ExternalName
|
|
||||||
externalName: 192.168.1.201
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
# apiVersion: argoproj.io/v1alpha1
|
|
||||||
# kind: Application
|
|
||||||
# metadata:
|
|
||||||
# name: nextcloud-helm
|
|
||||||
# namespace: argocd
|
|
||||||
# finalizers:
|
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
|
||||||
# spec:
|
|
||||||
# destination:
|
|
||||||
# namespace: nextcloud
|
|
||||||
# server: https://kubernetes.default.svc
|
|
||||||
# project: default
|
|
||||||
# source:
|
|
||||||
# repoURL: https://nextcloud.github.io/helm/
|
|
||||||
# targetRevision: 6.6.3
|
|
||||||
# chart: nextcloud
|
|
||||||
# helm:
|
|
||||||
# values: |
|
|
||||||
# persistence:
|
|
||||||
# # Nextcloud Data (/var/www/html)
|
|
||||||
# enabled: true
|
|
||||||
# accessMode: ReadWriteOnce
|
|
||||||
# size: 100Gi
|
|
||||||
|
|
||||||
|
|
||||||
# resources: {}
|
|
||||||
# # We usually recommend not to specify default resources and to leave this as a conscious
|
|
||||||
# # choice for the user. This also increases chances charts run on environments with little
|
|
||||||
# # resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
||||||
# # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
||||||
# # limits:
|
|
||||||
# # cpu: 100m
|
|
||||||
# # memory: 128Mi
|
|
||||||
# # requests:
|
|
||||||
# # cpu: 100m
|
|
||||||
# # memory: 128Mi
|
|
||||||
# nextcloud:
|
|
||||||
# host: drive.hensen.io
|
|
||||||
# configs:
|
|
||||||
# proxy.config.php: |
|
|
||||||
# <?php
|
|
||||||
# $CONFIG = array (
|
|
||||||
# 'trusted_proxies' => ['10.0.0.0/8', '192.168.1.1/32'],
|
|
||||||
# );
|
|
||||||
# phone.config.php: |
|
|
||||||
# <?php
|
|
||||||
# $CONFIG = array (
|
|
||||||
# 'default_phone_region' => 'NL',
|
|
||||||
# );
|
|
||||||
# phpConfigs:
|
|
||||||
# user.ini: |-
|
|
||||||
# upload_max_filesize=16G
|
|
||||||
# post_max_size=16G
|
|
||||||
# livenessProbe:
|
|
||||||
# enabled: false
|
|
||||||
# readinessProbe:
|
|
||||||
# enabled: false
|
|
||||||
# phpClientHttpsFix:
|
|
||||||
# enabled: true
|
|
||||||
# protocol: https
|
|
||||||
# ingress:
|
|
||||||
# enabled: true
|
|
||||||
# className: nginx
|
|
||||||
# annotations:
|
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: 100G
|
|
||||||
# nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
||||||
# more_set_headers "Strict-Transport-Security: max-age=15768000; includeSubDomains";
|
|
||||||
# # kubernetes.io/tls-acme: "true"
|
|
||||||
# cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# # # Keep this in sync with the README.md:
|
|
||||||
# # nginx.ingress.kubernetes.io/server-snippet: |
|
|
||||||
# # server_tokens off
|
|
||||||
# # proxy_hide_header X-Powered-By;
|
|
||||||
# # rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last;
|
|
||||||
# # rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last;
|
|
||||||
# # rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
|
||||||
# # rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
|
|
||||||
# # location = /.well-known/carddav {
|
|
||||||
# # return 301 $scheme://$host/remote.php/dav;
|
|
||||||
# # }
|
|
||||||
# # location = /.well-known/caldav {
|
|
||||||
# # return 301 $scheme://$host/remote.php/dav;
|
|
||||||
# # }
|
|
||||||
# # location = /robots.txt {
|
|
||||||
# # allow all;
|
|
||||||
# # log_not_found off;
|
|
||||||
# # access_log off;
|
|
||||||
# # }
|
|
||||||
# # location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
|
|
||||||
# # deny all;
|
|
||||||
# # }
|
|
||||||
# # location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
|
|
||||||
# # deny all;
|
|
||||||
# # }
|
|
||||||
# tls:
|
|
||||||
# - secretName: nextcloud-tls
|
|
||||||
# hosts:
|
|
||||||
# - drive.hensen.io
|
|
||||||
# labels: {}
|
|
||||||
# path: /
|
|
||||||
# pathType: Prefix
|
|
||||||
|
|
||||||
|
|
||||||
# syncPolicy:
|
|
||||||
# syncOptions:
|
|
||||||
# - CreateNamespace=true
|
|
||||||
# automated:
|
|
||||||
# selfHeal: true
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: owntracks-folder
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: owntracks
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: owntracks
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,167 +0,0 @@
|
|||||||
# apiVersion: argoproj.io/v1alpha1
|
|
||||||
# kind: Application
|
|
||||||
# metadata:
|
|
||||||
# name: mosquitto-helm
|
|
||||||
# namespace: argocd
|
|
||||||
# finalizers:
|
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
|
||||||
# spec:
|
|
||||||
# syncPolicy:
|
|
||||||
# syncOptions:
|
|
||||||
# - CreateNamespace=true
|
|
||||||
# automated:
|
|
||||||
# prune: true
|
|
||||||
# selfHeal: true
|
|
||||||
# project: default
|
|
||||||
# sources:
|
|
||||||
# - chart: mosquitto
|
|
||||||
# repoURL: https://storage.googleapis.com/t3n-helm-charts
|
|
||||||
# targetRevision: v2.4.1 # Replace with the Longhorn version you'd like to install or upgrade to
|
|
||||||
# helm:
|
|
||||||
# values: |
|
|
||||||
# replicaCount: 1
|
|
||||||
# strategyType: Recreate
|
|
||||||
|
|
||||||
# image:
|
|
||||||
# repository: eclipse-mosquitto
|
|
||||||
# tag: 1.6.12
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
# imagePullSecrets: []
|
|
||||||
# nameOverride: ""
|
|
||||||
# fullnameOverride: ""
|
|
||||||
|
|
||||||
# serviceAccount:
|
|
||||||
# # Specifies whether a service account should be created
|
|
||||||
# create: true
|
|
||||||
# # The name of the service account to use.
|
|
||||||
# # If not set and create is true, a name is generated using the fullname template
|
|
||||||
# name:
|
|
||||||
|
|
||||||
# service:
|
|
||||||
# type: ClusterIP
|
|
||||||
# externalTrafficPolicy: null
|
|
||||||
# annotations: {}
|
|
||||||
# # metallb.universe.tf/allow-shared-ip: pi-hole
|
|
||||||
|
|
||||||
# ports:
|
|
||||||
# mqtt:
|
|
||||||
# port: 1883
|
|
||||||
# # sets consistent nodePort, required to set service.type=NodePort
|
|
||||||
# # nodePort: 31883
|
|
||||||
# protocol: TCP
|
|
||||||
# websocket:
|
|
||||||
# port: 9090
|
|
||||||
# protocol: TCP
|
|
||||||
|
|
||||||
# persistence:
|
|
||||||
# enabled: true
|
|
||||||
# accessMode: ReadWriteOnce
|
|
||||||
# existingClaim: ""
|
|
||||||
# mountPath: /mosquitto/data
|
|
||||||
# subPath: ""
|
|
||||||
# ## database data Persistent Volume Storage Class
|
|
||||||
# ## If defined, storageClassName: <storageClass>
|
|
||||||
# ## If set to "-", storageClassName: "", which disables dynamic provisioning
|
|
||||||
# ## If undefined (the default) or set to null, no storageClassName spec is
|
|
||||||
# ## set, choosing the default provisioner. (gp2 on AWS, standard on
|
|
||||||
# ## GKE, AWS & OpenStack)
|
|
||||||
# ##
|
|
||||||
# # storageClass: "-"
|
|
||||||
# size: 1Gi
|
|
||||||
|
|
||||||
# resources: {}
|
|
||||||
# # We usually recommend not to specify default resources and to leave this as a conscious
|
|
||||||
# # choice for the user. This also increases chances charts run on environments with little
|
|
||||||
# # resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
||||||
# # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
||||||
# # limits:
|
|
||||||
# # cpu: 100m
|
|
||||||
# # memory: 128Mi
|
|
||||||
# # requests:
|
|
||||||
# # cpu: 100m
|
|
||||||
# # memory: 128Mi
|
|
||||||
|
|
||||||
# podSecurityContext: {}
|
|
||||||
# # runAsUser: 1001
|
|
||||||
# # fsGroup: 10000
|
|
||||||
|
|
||||||
# securityContext: {}
|
|
||||||
# # runAsUser: 1001
|
|
||||||
# # fsGroup: 10000
|
|
||||||
|
|
||||||
# nodeSelector: {}
|
|
||||||
|
|
||||||
# tolerations: []
|
|
||||||
|
|
||||||
# affinity: {}
|
|
||||||
|
|
||||||
# authentication:
|
|
||||||
# passwordEntries: ""
|
|
||||||
# # To use authentication with mosquitto, you can set a list of password entries to be used.
|
|
||||||
# # reference https://mosquitto.org/man/mosquitto_passwd-1.html to generate these entries.
|
|
||||||
# # For example:
|
|
||||||
# # passwordEntries: |-
|
|
||||||
# # user1:$6$BKzw0RKerxV4Esbj$Uz5slWGB1TiOtYIEokEl0eR1YSEQAdKpcdRYMsLYbwjktlVzdLyGk41YCPGyMLnBePtdwPhkcm8kjGI0R9s57w==
|
|
||||||
# # user2:$6$b5vYuHrSLj48Ii32$NjlbnatIaUQSsNvxxTpawpav6NPyZ8QhGrdEVGtyU1rgEGjNzVGKlstRg29FV6MFTPs/ugPA8D5I5+qRcIMXSg==
|
|
||||||
# passwordFilePath: "/etc/mosquitto/passwordfile"
|
|
||||||
|
|
||||||
# authorization:
|
|
||||||
# acls: ""
|
|
||||||
# # To use authorizations with mosquitto, you can set a list of per user or pattern-based rules.
|
|
||||||
# # reference https://mosquitto.org/man/mosquitto-conf-5.html for further information.
|
|
||||||
# # For example:
|
|
||||||
# # acls: |-
|
|
||||||
# # zigbee2mqtt ACLs
|
|
||||||
# # user zigbee2mqtt
|
|
||||||
# # topic readwrite zigbee2mqtt/#
|
|
||||||
# # topic readwrite homeassistant/#
|
|
||||||
# # Tasmota-compatible ACLs
|
|
||||||
# # pattern read cmnd/%u/#
|
|
||||||
# # pattern write stat/%u/#
|
|
||||||
# # pattern write tele/%u/#
|
|
||||||
# aclfilePath: "/etc/mosquitto/aclfile"
|
|
||||||
|
|
||||||
# existingConfigMap: ""
|
|
||||||
# config: |
|
|
||||||
# persistence true
|
|
||||||
# persistence_location /mosquitto/data/
|
|
||||||
# log_dest stdout
|
|
||||||
# listener 1883
|
|
||||||
# listener 9090
|
|
||||||
# protocol websockets
|
|
||||||
|
|
||||||
# ## Additional volumes.
|
|
||||||
# extraVolumes: []
|
|
||||||
# # - name: tls
|
|
||||||
# # secret:
|
|
||||||
# # secretName: mosquitto-certs
|
|
||||||
|
|
||||||
# ## Additional volumeMounts to the main container.
|
|
||||||
# extraVolumeMounts: []
|
|
||||||
# # - name: tls
|
|
||||||
# # mountPath: /certs
|
|
||||||
# # subPath: cafile
|
|
||||||
|
|
||||||
# monitoring:
|
|
||||||
# podMonitor:
|
|
||||||
# enabled: false
|
|
||||||
# sidecar:
|
|
||||||
# enabled: false
|
|
||||||
# port: 9234
|
|
||||||
# # nodePort: 32234
|
|
||||||
# image:
|
|
||||||
# repository: nolte/mosquitto-exporter
|
|
||||||
# tag: v0.6.3
|
|
||||||
# pullPolicy: IfNotPresent
|
|
||||||
# resources:
|
|
||||||
# limits:
|
|
||||||
# cpu: 300m
|
|
||||||
# memory: 128Mi
|
|
||||||
# requests:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 64Mi
|
|
||||||
|
|
||||||
# destination:
|
|
||||||
# server: https://kubernetes.default.svc
|
|
||||||
# namespace: owntracks
|
|
||||||
@@ -1,279 +0,0 @@
|
|||||||
---
|
|
||||||
# PersistentVolumeClaim for OwnTracks Recorder
|
|
||||||
# apiVersion: v1
|
|
||||||
# kind: PersistentVolumeClaim
|
|
||||||
# metadata:
|
|
||||||
# name: otrecorder-config-pvc
|
|
||||||
# spec:
|
|
||||||
# accessModes:
|
|
||||||
# - ReadWriteOnce
|
|
||||||
# resources:
|
|
||||||
# requests:
|
|
||||||
# storage: 1Gi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: otrecorder-store-pvc
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
---
|
|
||||||
# PersistentVolumeClaim for Mosquitto
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-data-pvc
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-logs-pvc
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
---
|
|
||||||
# ExternalSecret for OwnTracks Recorder password
|
|
||||||
# apiVersion: external-secrets.io/v1beta1
|
|
||||||
# kind: ExternalSecret
|
|
||||||
# metadata:
|
|
||||||
# name: owntracks-mqtt-credentials
|
|
||||||
# spec:
|
|
||||||
# refreshInterval: "15m"
|
|
||||||
# secretStoreRef:
|
|
||||||
# name: vault-backend
|
|
||||||
# kind: ClusterSecretStore
|
|
||||||
# target:
|
|
||||||
# name: owntracks-mqtt-password
|
|
||||||
# creationPolicy: Owner
|
|
||||||
# data:
|
|
||||||
# - secretKey: password
|
|
||||||
# remoteRef:
|
|
||||||
# key: kv/mqtt
|
|
||||||
# property: password
|
|
||||||
|
|
||||||
---
|
|
||||||
# Deployment for OwnTracks Recorder
|
|
||||||
# apiVersion: apps/v1
|
|
||||||
# kind: Deployment
|
|
||||||
# metadata:
|
|
||||||
# name: otrecorder
|
|
||||||
# spec:
|
|
||||||
# replicas: 1
|
|
||||||
# selector:
|
|
||||||
# matchLabels:
|
|
||||||
# app: otrecorder
|
|
||||||
# template:
|
|
||||||
# metadata:
|
|
||||||
# labels:
|
|
||||||
# app: otrecorder
|
|
||||||
# spec:
|
|
||||||
# containers:
|
|
||||||
# - name: otrecorder
|
|
||||||
# image: owntracks/recorder
|
|
||||||
# ports:
|
|
||||||
# - containerPort: 8083
|
|
||||||
# env:
|
|
||||||
# - name: OTR_HOST
|
|
||||||
# value: "mqtt"
|
|
||||||
# - name: OTR_PORT
|
|
||||||
# value: "8883"
|
|
||||||
# - name: OTR_USER
|
|
||||||
# value: "ruben"
|
|
||||||
# # - name: TZ
|
|
||||||
# # value: "Europe/Berlin"
|
|
||||||
# # - name: VIRTUAL_HOST
|
|
||||||
# # value: "owntracks.hensen.io"
|
|
||||||
# # - name: VIRTUAL_PORT
|
|
||||||
# # value: 8883
|
|
||||||
# # - name: OTR_CLIENTID
|
|
||||||
# # value: ""
|
|
||||||
# - name: OTR_PASS
|
|
||||||
# valueFrom:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: owntracks-mqtt-password
|
|
||||||
# key: password
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: store
|
|
||||||
# mountPath: /store
|
|
||||||
# volumes:
|
|
||||||
# - name: store
|
|
||||||
# persistentVolumeClaim:
|
|
||||||
# claimName: otrecorder-store-pvc
|
|
||||||
---
|
|
||||||
# Service for OwnTracks Recorder
|
|
||||||
# apiVersion: v1
|
|
||||||
# kind: Service
|
|
||||||
# metadata:
|
|
||||||
# name: otrecorder
|
|
||||||
# spec:
|
|
||||||
# selector:
|
|
||||||
# app: otrecorder
|
|
||||||
# ports:
|
|
||||||
# - port: 8083
|
|
||||||
# targetPort: 8083
|
|
||||||
# type: ClusterIP
|
|
||||||
---
|
|
||||||
# ExternalSecret to fetch MQTT password file from Vault
|
|
||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: mqtt-password-file
|
|
||||||
spec:
|
|
||||||
refreshInterval: "15m"
|
|
||||||
secretStoreRef:
|
|
||||||
name: vault-backend
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
target:
|
|
||||||
name: mqtt-password-secret
|
|
||||||
creationPolicy: Owner
|
|
||||||
data:
|
|
||||||
- secretKey: password_file
|
|
||||||
remoteRef:
|
|
||||||
key: kv/mqtt
|
|
||||||
property: secret
|
|
||||||
|
|
||||||
---
|
|
||||||
# ConfigMap for MQTT configuration
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: mqtt-config
|
|
||||||
data:
|
|
||||||
mosquitto.conf: |
|
|
||||||
listener 8883
|
|
||||||
allow_anonymous false
|
|
||||||
password_file /mosquitto/config/password_file
|
|
||||||
# Add other MQTT configuration options here
|
|
||||||
listener 8083
|
|
||||||
protocol websockets
|
|
||||||
---
|
|
||||||
# MQTT Deployment
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: mqtt
|
|
||||||
labels:
|
|
||||||
app: mqtt
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: mqtt
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: mqtt
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: mqtt
|
|
||||||
image: eclipse-mosquitto:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 8883
|
|
||||||
name: mqtt
|
|
||||||
- containerPort: 8083
|
|
||||||
name: websocket
|
|
||||||
volumeMounts:
|
|
||||||
- name: config
|
|
||||||
mountPath: /mosquitto/config/mosquitto.conf
|
|
||||||
subPath: mosquitto.conf
|
|
||||||
- name: password-file
|
|
||||||
mountPath: /mosquitto/config/password_file
|
|
||||||
subPath: password_file
|
|
||||||
volumes:
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: mqtt-config
|
|
||||||
- name: password-file
|
|
||||||
secret:
|
|
||||||
secretName: mqtt-password-secret
|
|
||||||
|
|
||||||
---
|
|
||||||
# MQTT Service
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: mqtt
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: mqtt
|
|
||||||
ports:
|
|
||||||
- port: 8883
|
|
||||||
targetPort: 8883
|
|
||||||
name: mqtt
|
|
||||||
- port: 8083
|
|
||||||
targetPort: 8083
|
|
||||||
name: websocket
|
|
||||||
---
|
|
||||||
# External access with Ingress for OwnTracks Recorder
|
|
||||||
# apiVersion: networking.k8s.io/v1
|
|
||||||
# kind: Ingress
|
|
||||||
# metadata:
|
|
||||||
# name: otrecorder-ingress
|
|
||||||
# annotations:
|
|
||||||
# nginx.ingress.kubernetes.io/rewrite-target: /
|
|
||||||
# cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# spec:
|
|
||||||
# ingressClassName: nginx
|
|
||||||
# tls:
|
|
||||||
# - hosts:
|
|
||||||
# - owntracks.hensen.io
|
|
||||||
# secretName: owntracks-tls-secret
|
|
||||||
# rules:
|
|
||||||
# - host: owntracks.hensen.io
|
|
||||||
# http:
|
|
||||||
# paths:
|
|
||||||
# - path: /
|
|
||||||
# pathType: Prefix
|
|
||||||
# backend:
|
|
||||||
# service:
|
|
||||||
# name: otrecorder
|
|
||||||
# port:
|
|
||||||
# number: 8083
|
|
||||||
---
|
|
||||||
# Corrected MQTT Ingress:
|
|
||||||
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: mqtt-ingress
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# Add NGINX TCP passthrough annotations
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "TCP"
|
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- mqtt.hensen.io
|
|
||||||
secretName: mqtt-tls-secret
|
|
||||||
rules:
|
|
||||||
- host: mqtt.hensen.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: mqtt
|
|
||||||
port:
|
|
||||||
number: 8083
|
|
||||||
|
|
||||||
# Note: For proper MQTT over TLS, consider these alternatives:
|
|
||||||
# 1. Use a TCP Load Balancer instead of an Ingress
|
|
||||||
# 2. Configure the MQTT broker to use TLS directly (port 8883)
|
|
||||||
# 3. Use NGINX TCP ingress controller configuration
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
Example container to restore files. See `Obsidian > Cluster > Restore longhorn backup` for more
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
kind: Deployment
|
|
||||||
apiVersion: apps/v1
|
|
||||||
metadata:
|
|
||||||
name: restore-ubuntu
|
|
||||||
labels:
|
|
||||||
app: restore-ubuntu
|
|
||||||
# namespace: immich # edit in apps folder
|
|
||||||
# docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: restore-ubuntu
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: restore-ubuntu
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: restore-ubuntu
|
|
||||||
image: ubuntu:plucky
|
|
||||||
volumeMounts:
|
|
||||||
- name: restorevol
|
|
||||||
mountPath: /mnt/restorevol/
|
|
||||||
command: [ "/bin/bash", "-c", "--" ] # Let container sleep, so it does not close because of 'completion'
|
|
||||||
args: [ "while true; do sleep 30; done;" ]
|
|
||||||
volumes:
|
|
||||||
- name: restorevol
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: backupofimmich
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
apiVersion: velero.io/v1
|
|
||||||
kind: Schedule
|
|
||||||
metadata:
|
|
||||||
name: test-backup
|
|
||||||
namespace: velero
|
|
||||||
# annotations:
|
|
||||||
# velero.io/csi-volumesnapshot-class_driver.longhorn.io: "longhorn-backup-vsc"
|
|
||||||
spec:
|
|
||||||
schedule: "*/5 * * * *" # Daily at 1 AM
|
|
||||||
template:
|
|
||||||
includedNamespaces:
|
|
||||||
# - immich
|
|
||||||
# - nextcloud
|
|
||||||
# - home-assistant
|
|
||||||
- ttrss
|
|
||||||
ttl: 15m # 30 days
|
|
||||||
defaultVolumesToFsBackup: true
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: traccar-folder
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rubenhensen/k8scd.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: traccar
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: traccar
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,951 +0,0 @@
|
|||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: traccar
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: traccar
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://traccar.github.io/traccar-helm/
|
|
||||||
targetRevision: 1.9.0
|
|
||||||
chart: traccar
|
|
||||||
helm:
|
|
||||||
values: |
|
|
||||||
traccar:
|
|
||||||
# server:
|
|
||||||
# statistics:
|
|
||||||
# web:
|
|
||||||
# enable: "true"
|
|
||||||
# address: "0.0.0.0"
|
|
||||||
# port: "8082"
|
|
||||||
# # path:
|
|
||||||
# debug: "false"
|
|
||||||
# console: "true"
|
|
||||||
# timeout:
|
|
||||||
# old:
|
|
||||||
# application:
|
|
||||||
# geocoder:
|
|
||||||
# enable:
|
|
||||||
# type:
|
|
||||||
# url:
|
|
||||||
# onRequest:
|
|
||||||
# ignorePositions:
|
|
||||||
# processInvalidPositions:
|
|
||||||
# format:
|
|
||||||
# reuseDistance:
|
|
||||||
# geolocation:
|
|
||||||
# enable:
|
|
||||||
# type:
|
|
||||||
# key:
|
|
||||||
# mcc:
|
|
||||||
# mnc:
|
|
||||||
# processInvalidPositions:
|
|
||||||
filter:
|
|
||||||
enable: "false"
|
|
||||||
# skipLimit: 5
|
|
||||||
# invalid: "true"
|
|
||||||
# zero: "true"
|
|
||||||
# duplicate: "true"
|
|
||||||
# distance: 80
|
|
||||||
# future: 86400
|
|
||||||
# maxSpeed: 200
|
|
||||||
# skipAttributes:
|
|
||||||
# enable: "true"
|
|
||||||
# attributes: "alarm,result,driverUniqueId"
|
|
||||||
distance:
|
|
||||||
enable: "false"
|
|
||||||
logger:
|
|
||||||
enable: "true"
|
|
||||||
level: "info"
|
|
||||||
processing:
|
|
||||||
remoteAddress:
|
|
||||||
enable: "false"
|
|
||||||
copyAttributes:
|
|
||||||
enable: "false"
|
|
||||||
# attributes: "io83,io84,io87,io89"
|
|
||||||
# database:
|
|
||||||
# driverFile:
|
|
||||||
# driver:
|
|
||||||
# url:
|
|
||||||
# user:
|
|
||||||
# password:
|
|
||||||
# changelog:
|
|
||||||
# checkConnection:
|
|
||||||
# ignoreUnknown:
|
|
||||||
# registerUnknown:
|
|
||||||
# enable:
|
|
||||||
# defaultGroupId:
|
|
||||||
# xml:
|
|
||||||
# saveOriginal:
|
|
||||||
# selectDevicesAll:
|
|
||||||
# insertPosition:
|
|
||||||
# updateLatestPosition:
|
|
||||||
# globalsat:
|
|
||||||
# format0:
|
|
||||||
# format1:
|
|
||||||
# coordinates:
|
|
||||||
# filter:
|
|
||||||
# minError:
|
|
||||||
# maxError:
|
|
||||||
event:
|
|
||||||
enable: "false"
|
|
||||||
# overspeed:
|
|
||||||
# notRepeat:
|
|
||||||
# motion:
|
|
||||||
# speedThreshold:
|
|
||||||
# forward:
|
|
||||||
# enable:
|
|
||||||
# url:
|
|
||||||
# header:
|
|
||||||
# speedLimit:
|
|
||||||
# devicemanager:
|
|
||||||
# lookupGroupsAttribute:
|
|
||||||
# forward:
|
|
||||||
# url:
|
|
||||||
# json:
|
|
||||||
# mail:
|
|
||||||
# templates:
|
|
||||||
# report:
|
|
||||||
# minimalParkingDuration: 500
|
|
||||||
# minimalNoDataDuration: 500
|
|
||||||
# minimalTripDuration: 500
|
|
||||||
# minimalTripDistance: 500
|
|
||||||
# wialon:
|
|
||||||
# status:
|
|
||||||
# timeout:
|
|
||||||
# sms:
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
enabled: true
|
|
||||||
auth:
|
|
||||||
database: "traccar"
|
|
||||||
username: "traccar"
|
|
||||||
password: "traccar"
|
|
||||||
primary:
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
secondary:
|
|
||||||
persistence:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# NOTE: When using multiple replicas, you must configure broadcast.type and broadcast.address
|
|
||||||
# This can be done via configOverride. See https://www.traccar.org/configuration-file/#:~:text=attributes%20to%20log.-,broadcast.type,-config
|
|
||||||
# Or by setting redis.enabled=true
|
|
||||||
replicaCount: 1
|
|
||||||
|
|
||||||
deploymentStrategy:
|
|
||||||
# Recreate has been the default until chart version 1.6.0 and is required if running a non-HA compatible setup
|
|
||||||
type: Recreate
|
|
||||||
# rollingUpdate:
|
|
||||||
# maxSurge: 25%
|
|
||||||
# maxUnavailable: 25%
|
|
||||||
# type: RollingUpdate
|
|
||||||
|
|
||||||
image:
|
|
||||||
repository: traccar/traccar
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
# flavor: "" # available are alpine, debian or ubuntu
|
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
|
||||||
tag: ""
|
|
||||||
|
|
||||||
imagePullSecrets: []
|
|
||||||
nameOverride: ""
|
|
||||||
fullnameOverride: ""
|
|
||||||
|
|
||||||
serviceAccount:
|
|
||||||
# Specifies whether a service account should be created
|
|
||||||
create: true
|
|
||||||
# Annotations to add to the service account
|
|
||||||
annotations: {}
|
|
||||||
# The name of the service account to use.
|
|
||||||
# If not set and create is true, a name is generated using the fullname template
|
|
||||||
name: ""
|
|
||||||
|
|
||||||
podAnnotations: {}
|
|
||||||
|
|
||||||
podLabels: {}
|
|
||||||
|
|
||||||
podSecurityContext: {}
|
|
||||||
# fsGroup: 2000
|
|
||||||
|
|
||||||
securityContext:
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsUser: 1000
|
|
||||||
|
|
||||||
# A list of initContainers to run before the pod starts
|
|
||||||
initContainers: []
|
|
||||||
|
|
||||||
command: ["java", "-Xms512m", "-Xmx512m", "-Djava.net.preferIPv4Stack=true"]
|
|
||||||
args: ["-jar", "tracker-server.jar", "conf/traccar.xml"]
|
|
||||||
|
|
||||||
# This allows you to use environment variables (i.e. referenced from Secrets) to use in your configuration
|
|
||||||
# The names of the keys are identical. But, a dot (.), you'll have to use an underscore (_) and define everything in UPPERCASE
|
|
||||||
env: []
|
|
||||||
# - name: "CONFIG_USE_ENVIRONMENT_VARIABLES"
|
|
||||||
# value: "true"
|
|
||||||
# - name: "DATABASE_USER"
|
|
||||||
# valueFrom:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: "postgres-secrets"
|
|
||||||
# key: "username"
|
|
||||||
# - name: "DATABASE_PASSWORD"
|
|
||||||
# valueFrom:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: "postgres-secrets"
|
|
||||||
# key: "password"
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
className: nginx
|
|
||||||
extraAnnotations: {}
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
||||||
# nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
||||||
hosts:
|
|
||||||
- host: traccar.hensen.io
|
|
||||||
paths:
|
|
||||||
- /
|
|
||||||
tls:
|
|
||||||
- secretName: traccar-tls
|
|
||||||
hosts:
|
|
||||||
- traccar.hensen.io
|
|
||||||
|
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
port: 8088
|
|
||||||
|
|
||||||
externalService:
|
|
||||||
type: LoadBalancer
|
|
||||||
enabled: false
|
|
||||||
annotations: {}
|
|
||||||
# metallb.universe.tf/loadBalancerIPs: 192.168.1.100
|
|
||||||
# loadBalancerIP: ""
|
|
||||||
# loadBalancerSourceRanges: []
|
|
||||||
|
|
||||||
# -- Enable node port allocation for the external controller service or not. Applies to type `LoadBalancer` only.
|
|
||||||
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
|
|
||||||
# allocateLoadBalancerNodePorts: true
|
|
||||||
|
|
||||||
protocolPorts:
|
|
||||||
- name: gps103
|
|
||||||
port: 5001
|
|
||||||
targetPort: gps103
|
|
||||||
- name: tk103
|
|
||||||
port: 5002
|
|
||||||
targetPort: tk103
|
|
||||||
- name: gl100
|
|
||||||
port: 5003
|
|
||||||
targetPort: gl100
|
|
||||||
- name: gl200
|
|
||||||
port: 5004
|
|
||||||
targetPort: gl200
|
|
||||||
- name: t55
|
|
||||||
port: 5005
|
|
||||||
targetPort: t55
|
|
||||||
- name: xexun
|
|
||||||
port: 5006
|
|
||||||
targetPort: xexun
|
|
||||||
- name: totem
|
|
||||||
port: 5007
|
|
||||||
targetPort: totem
|
|
||||||
- name: enfora
|
|
||||||
port: 5008
|
|
||||||
targetPort: enfora
|
|
||||||
- name: meiligao
|
|
||||||
port: 5009
|
|
||||||
targetPort: meiliago
|
|
||||||
- name: trv
|
|
||||||
port: 5010
|
|
||||||
targetPort: trv
|
|
||||||
- name: suntech
|
|
||||||
port: 5011
|
|
||||||
targetPort: suntech
|
|
||||||
- name: progress
|
|
||||||
port: 5012
|
|
||||||
targetPort: progress
|
|
||||||
- name: h02
|
|
||||||
port: 5013
|
|
||||||
targetPort: h02
|
|
||||||
- name: jt600
|
|
||||||
port: 5014
|
|
||||||
targetPort: jt600
|
|
||||||
- name: huabao
|
|
||||||
port: 5015
|
|
||||||
targetPort: huabao
|
|
||||||
- name: v680
|
|
||||||
port: 5016
|
|
||||||
targetPort: v680
|
|
||||||
- name: pt502
|
|
||||||
port: 5017
|
|
||||||
targetPort: pt502
|
|
||||||
- name: tr20
|
|
||||||
port: 5018
|
|
||||||
targetPort: tr20
|
|
||||||
- name: navis
|
|
||||||
port: 5019
|
|
||||||
targetPort: navis
|
|
||||||
- name: meitrack
|
|
||||||
port: 5020
|
|
||||||
targetPort: meitrack
|
|
||||||
- name: skypatrol
|
|
||||||
port: 5021
|
|
||||||
targetPort: skypatrol
|
|
||||||
- name: gt02
|
|
||||||
port: 5022
|
|
||||||
targetPort: gt02
|
|
||||||
- name: gt06
|
|
||||||
port: 5023
|
|
||||||
targetPort: gt06
|
|
||||||
- name: megastek
|
|
||||||
port: 5024
|
|
||||||
targetPort: megastek
|
|
||||||
- name: navigil
|
|
||||||
port: 5025
|
|
||||||
targetPort: navigil
|
|
||||||
- name: gpsgate
|
|
||||||
port: 5026
|
|
||||||
targetPort: gpsgate
|
|
||||||
- name: teltonika
|
|
||||||
port: 5027
|
|
||||||
targetPort: teltonika
|
|
||||||
- name: mta6
|
|
||||||
port: 5028
|
|
||||||
targetPort: mta6
|
|
||||||
- name: tzone
|
|
||||||
port: 5029
|
|
||||||
targetPort: tzone
|
|
||||||
- name: tlt2h
|
|
||||||
port: 5030
|
|
||||||
targetPort: tlt2h
|
|
||||||
- name: taip
|
|
||||||
port: 5031
|
|
||||||
targetPort: taip
|
|
||||||
- name: wondex
|
|
||||||
port: 5032
|
|
||||||
targetPort: wondex
|
|
||||||
- name: cellocator
|
|
||||||
port: 5033
|
|
||||||
targetPort: cellocator
|
|
||||||
- name: galileo
|
|
||||||
port: 5034
|
|
||||||
targetPort: galileo
|
|
||||||
- name: ywt
|
|
||||||
port: 5035
|
|
||||||
targetPort: ywt
|
|
||||||
- name: intellitrac
|
|
||||||
port: 5037
|
|
||||||
targetPort: intellitrac
|
|
||||||
- name: gpsmta
|
|
||||||
port: 5038
|
|
||||||
targetPort: gpsmta
|
|
||||||
- name: wialon
|
|
||||||
port: 5039
|
|
||||||
targetPort: wialon
|
|
||||||
- name: carscop
|
|
||||||
port: 5040
|
|
||||||
targetPort: carscop
|
|
||||||
- name: apel
|
|
||||||
port: 5041
|
|
||||||
targetPort: apel
|
|
||||||
- name: manpower
|
|
||||||
port: 5042
|
|
||||||
targetPort: manpower
|
|
||||||
- name: globalsat
|
|
||||||
port: 5043
|
|
||||||
targetPort: globalsat
|
|
||||||
- name: atrack
|
|
||||||
port: 5044
|
|
||||||
targetPort: atrack
|
|
||||||
- name: pt3000
|
|
||||||
port: 5045
|
|
||||||
targetPort: pt3000
|
|
||||||
- name: ruptela
|
|
||||||
port: 5046
|
|
||||||
targetPort: ruptela
|
|
||||||
- name: topflytech
|
|
||||||
port: 5047
|
|
||||||
targetPort: topflytech
|
|
||||||
- name: laipac
|
|
||||||
port: 5048
|
|
||||||
targetPort: laipac
|
|
||||||
- name: aplicom
|
|
||||||
port: 5049
|
|
||||||
targetPort: aplicom
|
|
||||||
- name: gotop
|
|
||||||
port: 5050
|
|
||||||
targetPort: gotop
|
|
||||||
- name: sanav
|
|
||||||
port: 5051
|
|
||||||
targetPort: sannav
|
|
||||||
- name: gator
|
|
||||||
port: 5052
|
|
||||||
targetPort: gator
|
|
||||||
- name: noran
|
|
||||||
port: 5053
|
|
||||||
targetPort: noran
|
|
||||||
- name: m2m
|
|
||||||
port: 5054
|
|
||||||
targetPort: m2m
|
|
||||||
- name: osmand
|
|
||||||
port: 5055
|
|
||||||
targetPort: osmand
|
|
||||||
- name: easytrack
|
|
||||||
port: 5056
|
|
||||||
targetPort: easytrack
|
|
||||||
- name: gpsmaker
|
|
||||||
port: 5057
|
|
||||||
targetPort: gpsmaker
|
|
||||||
- name: khd
|
|
||||||
port: 5058
|
|
||||||
targetPort: khd
|
|
||||||
- name: piligrim
|
|
||||||
port: 5059
|
|
||||||
targetPort: pilgrim
|
|
||||||
- name: stl060
|
|
||||||
port: 5060
|
|
||||||
targetPort: stl060
|
|
||||||
- name: cartrack
|
|
||||||
port: 5061
|
|
||||||
targetPort: cartrack
|
|
||||||
- name: minifinder
|
|
||||||
port: 5062
|
|
||||||
targetPort: minifinder
|
|
||||||
- name: haicom
|
|
||||||
port: 5063
|
|
||||||
targetPort: haicom
|
|
||||||
- name: eelink
|
|
||||||
port: 5064
|
|
||||||
targetPort: eelink
|
|
||||||
- name: box
|
|
||||||
port: 5065
|
|
||||||
targetPort: box
|
|
||||||
- name: freedom
|
|
||||||
port: 5066
|
|
||||||
targetPort: freedom
|
|
||||||
- name: telic
|
|
||||||
port: 5067
|
|
||||||
targetPort: telic
|
|
||||||
- name: trackbox
|
|
||||||
port: 5068
|
|
||||||
targetPort: trackbox
|
|
||||||
- name: visiontek
|
|
||||||
port: 5069
|
|
||||||
targetPort: visiontek
|
|
||||||
- name: orion
|
|
||||||
port: 5070
|
|
||||||
targetPort: orion
|
|
||||||
- name: riti
|
|
||||||
port: 5071
|
|
||||||
targetPort: riti
|
|
||||||
- name: ulbotech
|
|
||||||
port: 5072
|
|
||||||
targetPort: ulbotech
|
|
||||||
- name: tramigo
|
|
||||||
port: 5073
|
|
||||||
targetPort: tramigo
|
|
||||||
- name: tr900
|
|
||||||
port: 5074
|
|
||||||
targetPort: tr900
|
|
||||||
- name: ardi01
|
|
||||||
port: 5075
|
|
||||||
targetPort: ardi01
|
|
||||||
- name: xt013
|
|
||||||
port: 5076
|
|
||||||
targetPort: xt013
|
|
||||||
- name: autofon
|
|
||||||
port: 5077
|
|
||||||
targetPort: autofon
|
|
||||||
- name: gosafe
|
|
||||||
port: 5078
|
|
||||||
targetPort: gosafe
|
|
||||||
- name: bce
|
|
||||||
port: 5080
|
|
||||||
targetPort: bce
|
|
||||||
- name: xirgo
|
|
||||||
port: 5081
|
|
||||||
targetPort: xirgo
|
|
||||||
- name: calamp
|
|
||||||
port: 5082
|
|
||||||
targetPort: calamp
|
|
||||||
- name: mtx
|
|
||||||
port: 5083
|
|
||||||
targetPort: mtx
|
|
||||||
- name: tytan
|
|
||||||
port: 5084
|
|
||||||
targetPort: tytan
|
|
||||||
- name: avl301
|
|
||||||
port: 5085
|
|
||||||
targetPort: avl301
|
|
||||||
- name: castel
|
|
||||||
port: 5086
|
|
||||||
targetPort: castel
|
|
||||||
- name: mxt
|
|
||||||
port: 5087
|
|
||||||
targetPort: mxt
|
|
||||||
- name: cityeasy
|
|
||||||
port: 5088
|
|
||||||
targetPort: cityeasy
|
|
||||||
- name: aquila
|
|
||||||
port: 5089
|
|
||||||
targetPort: aquila
|
|
||||||
- name: flextrack
|
|
||||||
port: 5090
|
|
||||||
targetPort: flextrack
|
|
||||||
- name: blackkite
|
|
||||||
port: 5091
|
|
||||||
targetPort: blackkite
|
|
||||||
- name: adm
|
|
||||||
port: 5092
|
|
||||||
targetPort: adm
|
|
||||||
- name: watch
|
|
||||||
port: 5093
|
|
||||||
targetPort: watch
|
|
||||||
- name: t800x
|
|
||||||
port: 5094
|
|
||||||
targetPort: t800x
|
|
||||||
- name: upro
|
|
||||||
port: 5095
|
|
||||||
targetPort: upro
|
|
||||||
- name: auro
|
|
||||||
port: 5096
|
|
||||||
targetPort: auro
|
|
||||||
- name: disha
|
|
||||||
port: 5097
|
|
||||||
targetPort: disha
|
|
||||||
- name: thinkrace
|
|
||||||
port: 5098
|
|
||||||
targetPort: thinkrace
|
|
||||||
- name: pathaway
|
|
||||||
port: 5099
|
|
||||||
targetPort: pathaway
|
|
||||||
- name: arnavi
|
|
||||||
port: 5100
|
|
||||||
targetPort: arnavi
|
|
||||||
- name: nvs
|
|
||||||
port: 5101
|
|
||||||
targetPort: nvs
|
|
||||||
- name: kenji
|
|
||||||
port: 5102
|
|
||||||
targetPort: kenji
|
|
||||||
- name: astra
|
|
||||||
port: 5103
|
|
||||||
targetPort: astra
|
|
||||||
- name: homtecs
|
|
||||||
port: 5104
|
|
||||||
targetPort: homtecs
|
|
||||||
- name: fox
|
|
||||||
port: 5105
|
|
||||||
targetPort: fox
|
|
||||||
- name: gnx
|
|
||||||
port: 5106
|
|
||||||
targetPort: gnx
|
|
||||||
- name: arknav
|
|
||||||
port: 5107
|
|
||||||
targetPort: arknav
|
|
||||||
- name: supermate
|
|
||||||
port: 5108
|
|
||||||
targetPort: supermate
|
|
||||||
- name: appello
|
|
||||||
port: 5109
|
|
||||||
targetPort: appello
|
|
||||||
- name: idpl
|
|
||||||
port: 5110
|
|
||||||
targetPort: idpl
|
|
||||||
- name: huahsheng
|
|
||||||
port: 5111
|
|
||||||
targetPort: huahsheng
|
|
||||||
- name: granit
|
|
||||||
port: 5112
|
|
||||||
targetPort: granit
|
|
||||||
- name: granit-2
|
|
||||||
port: 5113
|
|
||||||
targetPort: granit-2
|
|
||||||
- name: carcell
|
|
||||||
port: 5114
|
|
||||||
targetPort: carcell
|
|
||||||
- name: raveon
|
|
||||||
port: 5117
|
|
||||||
targetPort: raveon
|
|
||||||
- name: cradlepoint
|
|
||||||
port: 5118
|
|
||||||
targetPort: cradlepoint
|
|
||||||
- name: arknavx8
|
|
||||||
port: 5119
|
|
||||||
targetPort: arknavx8
|
|
||||||
- name: autograde
|
|
||||||
port: 5120
|
|
||||||
targetPort: autograde
|
|
||||||
- name: oigo
|
|
||||||
port: 5121
|
|
||||||
targetPort: oigo
|
|
||||||
- name: jpkorjar
|
|
||||||
port: 5122
|
|
||||||
targetPort: jpkorjar
|
|
||||||
- name: cguard
|
|
||||||
port: 5123
|
|
||||||
targetPort: cguard
|
|
||||||
- name: fifotrack
|
|
||||||
port: 5124
|
|
||||||
targetPort: fifotrack
|
|
||||||
- name: extremtrac
|
|
||||||
port: 5126
|
|
||||||
targetPort: extremtrac
|
|
||||||
- name: trakmate
|
|
||||||
port: 5127
|
|
||||||
targetPort: trakmate
|
|
||||||
- name: at2000
|
|
||||||
port: 5128
|
|
||||||
targetPort: at2000
|
|
||||||
- name: maestro
|
|
||||||
port: 5129
|
|
||||||
targetPort: maestro
|
|
||||||
- name: ais
|
|
||||||
port: 5130
|
|
||||||
targetPort: ais
|
|
||||||
- name: gt30
|
|
||||||
port: 5131
|
|
||||||
targetPort: gt30
|
|
||||||
- name: tmg
|
|
||||||
port: 5132
|
|
||||||
targetPort: tmg
|
|
||||||
- name: pretrace
|
|
||||||
port: 5133
|
|
||||||
targetPort: pretrace
|
|
||||||
- name: pricol
|
|
||||||
port: 5134
|
|
||||||
targetPort: pricol
|
|
||||||
- name: siwi
|
|
||||||
port: 5135
|
|
||||||
targetPort: siwi
|
|
||||||
- name: starlink
|
|
||||||
port: 5136
|
|
||||||
targetPort: starlink
|
|
||||||
- name: dmt
|
|
||||||
port: 5137
|
|
||||||
targetPort: dmt
|
|
||||||
- name: xt2400
|
|
||||||
port: 5138
|
|
||||||
targetPort: xt2400
|
|
||||||
- name: dmthttp
|
|
||||||
port: 5139
|
|
||||||
targetPort: dmthttp
|
|
||||||
- name: alematics
|
|
||||||
port: 5140
|
|
||||||
targetPort: alematics
|
|
||||||
- name: gps056
|
|
||||||
port: 5141
|
|
||||||
targetPort: gps056
|
|
||||||
- name: flexcomm
|
|
||||||
port: 5142
|
|
||||||
targetPort: flexcomm
|
|
||||||
- name: vt200
|
|
||||||
port: 5143
|
|
||||||
targetPort: vt200
|
|
||||||
- name: owntracks
|
|
||||||
port: 5144
|
|
||||||
targetPort: owntracks
|
|
||||||
- name: vtfms
|
|
||||||
port: 5145
|
|
||||||
targetPort: vtfms
|
|
||||||
- name: tlv
|
|
||||||
port: 5146
|
|
||||||
targetPort: tlv
|
|
||||||
- name: esky
|
|
||||||
port: 5147
|
|
||||||
targetPort: esky
|
|
||||||
- name: genx
|
|
||||||
port: 5148
|
|
||||||
targetPort: genx
|
|
||||||
- name: flespi
|
|
||||||
port: 5149
|
|
||||||
targetPort: flespi
|
|
||||||
- name: dway
|
|
||||||
port: 5150
|
|
||||||
targetPort: dway
|
|
||||||
- name: recoda
|
|
||||||
port: 5151
|
|
||||||
targetPort: recoda
|
|
||||||
- name: oko
|
|
||||||
port: 5152
|
|
||||||
targetPort: oko
|
|
||||||
- name: ivt401
|
|
||||||
port: 5153
|
|
||||||
targetPort: ivt401
|
|
||||||
- name: sigfox
|
|
||||||
port: 5154
|
|
||||||
targetPort: sigfox
|
|
||||||
- name: t57
|
|
||||||
port: 5155
|
|
||||||
targetPort: t57
|
|
||||||
- name: spot
|
|
||||||
port: 5156
|
|
||||||
targetPort: spot
|
|
||||||
- name: m2c
|
|
||||||
port: 5157
|
|
||||||
targetPort: m2c
|
|
||||||
- name: globekeeper
|
|
||||||
port: 5158
|
|
||||||
targetPort: globekeeper
|
|
||||||
- name: opengts
|
|
||||||
port: 5159
|
|
||||||
targetPort: opengts
|
|
||||||
- name: cautela
|
|
||||||
port: 5160
|
|
||||||
targetPort: cautela
|
|
||||||
- name: continental
|
|
||||||
port: 5161
|
|
||||||
targetPort: continental
|
|
||||||
- name: egts
|
|
||||||
port: 5162
|
|
||||||
targetPort: egts
|
|
||||||
- name: robotrack
|
|
||||||
port: 5163
|
|
||||||
targetPort: robotrack
|
|
||||||
- name: pt60
|
|
||||||
port: 5164
|
|
||||||
targetPort: pt60
|
|
||||||
- name: telemax
|
|
||||||
port: 5165
|
|
||||||
targetPort: telemax
|
|
||||||
- name: sabertek
|
|
||||||
port: 5166
|
|
||||||
targetPort: sabertek
|
|
||||||
- name: retranslator
|
|
||||||
port: 5167
|
|
||||||
targetPort: retranslator
|
|
||||||
- name: svias
|
|
||||||
port: 5168
|
|
||||||
targetPort: svias
|
|
||||||
- name: eseal
|
|
||||||
port: 5169
|
|
||||||
targetPort: eseal
|
|
||||||
- name: freematics
|
|
||||||
port: 5170
|
|
||||||
targetPort: freematics
|
|
||||||
- name: avema
|
|
||||||
port: 5171
|
|
||||||
targetPort: avema
|
|
||||||
- name: autotrack
|
|
||||||
port: 5172
|
|
||||||
targetPort: autotrack
|
|
||||||
- name: tek
|
|
||||||
port: 5173
|
|
||||||
targetPort: tek
|
|
||||||
- name: wristband
|
|
||||||
port: 5174
|
|
||||||
targetPort: wristband
|
|
||||||
- name: milesmate
|
|
||||||
port: 5176
|
|
||||||
targetPort: milesmate
|
|
||||||
- name: anytrek
|
|
||||||
port: 5177
|
|
||||||
targetPort: anytrek
|
|
||||||
- name: smartsole
|
|
||||||
port: 5178
|
|
||||||
targetPort: smartsole
|
|
||||||
- name: its
|
|
||||||
port: 5179
|
|
||||||
targetPort: its
|
|
||||||
- name: xrb28
|
|
||||||
port: 5180
|
|
||||||
targetPort: xrb28
|
|
||||||
- name: c2stek
|
|
||||||
port: 5181
|
|
||||||
targetPort: c2stek
|
|
||||||
- name: nyitech
|
|
||||||
port: 5182
|
|
||||||
targetPort: nyitech
|
|
||||||
- name: neos
|
|
||||||
port: 5183
|
|
||||||
targetPort: neos
|
|
||||||
- name: satsol
|
|
||||||
port: 5184
|
|
||||||
targetPort: satsol
|
|
||||||
- name: globalstar
|
|
||||||
port: 5185
|
|
||||||
targetPort: globalstar
|
|
||||||
- name: sanul
|
|
||||||
port: 5186
|
|
||||||
targetPort: sanul
|
|
||||||
- name: minifinder2
|
|
||||||
port: 5187
|
|
||||||
targetPort: minifinder2
|
|
||||||
- name: radar
|
|
||||||
port: 5188
|
|
||||||
targetPort: radar
|
|
||||||
- name: techtlt
|
|
||||||
port: 5189
|
|
||||||
targetPort: techtlt
|
|
||||||
- name: starcom
|
|
||||||
port: 5190
|
|
||||||
targetPort: starcom
|
|
||||||
- name: mictrack
|
|
||||||
port: 5191
|
|
||||||
targetPort: mictrack
|
|
||||||
- name: plugin
|
|
||||||
port: 5192
|
|
||||||
targetPort: plugin
|
|
||||||
- name: leafspy
|
|
||||||
port: 5193
|
|
||||||
targetPort: leafspy
|
|
||||||
- name: naviset
|
|
||||||
port: 5194
|
|
||||||
targetPort: naviset
|
|
||||||
- name: racedynamics
|
|
||||||
port: 5195
|
|
||||||
targetPort: racedynamics
|
|
||||||
- name: rst
|
|
||||||
port: 5196
|
|
||||||
targetPort: rst
|
|
||||||
- name: pt215
|
|
||||||
port: 5197
|
|
||||||
targetPort: pt215
|
|
||||||
- name: pacifictrack
|
|
||||||
port: 5198
|
|
||||||
targetPort: pacifictrack
|
|
||||||
- name: topin
|
|
||||||
port: 5199
|
|
||||||
targetPort: topin
|
|
||||||
- name: outsafe
|
|
||||||
port: 5200
|
|
||||||
targetPort: outsafe
|
|
||||||
- name: solarpowered
|
|
||||||
port: 5201
|
|
||||||
targetPort: solarpowered
|
|
||||||
- name: motor
|
|
||||||
port: 5202
|
|
||||||
targetPort: motor
|
|
||||||
- name: omnicomm
|
|
||||||
port: 5203
|
|
||||||
targetPort: omnicom
|
|
||||||
- name: s168
|
|
||||||
port: 5204
|
|
||||||
targetPort: s168
|
|
||||||
- name: vnet
|
|
||||||
port: 5205
|
|
||||||
targetPort: vnet
|
|
||||||
- name: blue
|
|
||||||
port: 5206
|
|
||||||
targetPort: blue
|
|
||||||
- name: pst
|
|
||||||
port: 5207
|
|
||||||
targetPort: pst
|
|
||||||
- name: dingtek
|
|
||||||
port: 5208
|
|
||||||
targetPort: dingtek
|
|
||||||
- name: wli
|
|
||||||
port: 5209
|
|
||||||
targetPort: wli
|
|
||||||
- name: niot
|
|
||||||
port: 5210
|
|
||||||
targetPort: niot
|
|
||||||
- name: portman
|
|
||||||
port: 5211
|
|
||||||
targetPort: portman
|
|
||||||
- name: moovbox
|
|
||||||
port: 5212
|
|
||||||
targetPort: moovbox
|
|
||||||
- name: futureway
|
|
||||||
port: 5213
|
|
||||||
targetPort: futureway
|
|
||||||
- name: polte
|
|
||||||
port: 5214
|
|
||||||
targetPort: polte
|
|
||||||
- name: net
|
|
||||||
port: 5215
|
|
||||||
targetPort: net
|
|
||||||
- name: mobilogix
|
|
||||||
port: 5216
|
|
||||||
targetPort: mobilogix
|
|
||||||
- name: swiftech
|
|
||||||
port: 5217
|
|
||||||
targetPort: swiftech
|
|
||||||
- name: iotm
|
|
||||||
port: 5218
|
|
||||||
targetPort: iotm
|
|
||||||
- name: dolphin
|
|
||||||
port: 5219
|
|
||||||
targetPort: dolphin
|
|
||||||
- name: ennfu
|
|
||||||
port: 5220
|
|
||||||
targetPort: ennfu
|
|
||||||
- name: navtelecom
|
|
||||||
port: 5221
|
|
||||||
targetPort: navtelecom
|
|
||||||
- name: startek
|
|
||||||
port: 5222
|
|
||||||
targetPort: startek
|
|
||||||
- name: gs100
|
|
||||||
port: 5223
|
|
||||||
targetPort: gs100
|
|
||||||
- name: mavlink2
|
|
||||||
port: 5224
|
|
||||||
targetPort: mavlink2
|
|
||||||
- name: uux
|
|
||||||
port: 5225
|
|
||||||
targetPort: uux
|
|
||||||
- name: r12w
|
|
||||||
port: 5226
|
|
||||||
targetPort: r12w
|
|
||||||
- name: flexiblereport
|
|
||||||
port: 5227
|
|
||||||
targetPort: flexiblereport
|
|
||||||
- name: thinkpower
|
|
||||||
port: 5228
|
|
||||||
targetPort: thinkpower
|
|
||||||
|
|
||||||
# This allows you to provide the entire config from scratch.
|
|
||||||
# configOverride: |
|
|
||||||
# <?xml version='1.0' encoding='UTF-8'?>
|
|
||||||
# <!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
|
|
||||||
# <properties>
|
|
||||||
# <entry key='config.default'>./conf/default.xml</entry>
|
|
||||||
# <entry key='web.enable'>true</entry>
|
|
||||||
# <entry key='web.disableHealthCheck'>true</entry>
|
|
||||||
# <entry key='....'>....</entry>
|
|
||||||
# </properties>
|
|
||||||
|
|
||||||
resources: {}
|
|
||||||
|
|
||||||
autoscaling:
|
|
||||||
enabled: false
|
|
||||||
minReplicas: 1
|
|
||||||
maxReplicas: 100
|
|
||||||
targetCPUUtilizationPercentage: 80
|
|
||||||
# targetMemoryUtilizationPercentage: 80
|
|
||||||
|
|
||||||
nodeSelector:
|
|
||||||
|
|
||||||
tolerations: []
|
|
||||||
|
|
||||||
affinity: {}
|
|
||||||
|
|
||||||
redis-ha:
|
|
||||||
# enables the redis subchart
|
|
||||||
enabled: false
|
|
||||||
persistentVolume:
|
|
||||||
enabled: false
|
|
||||||
redis:
|
|
||||||
masterGroupName: traccar
|
|
||||||
config:
|
|
||||||
save: '""'
|
|
||||||
haproxy:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
Loaded 100 of 262 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user