Update folder location
This commit is contained in:
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: internalproxy
|
path: master/internalproxy
|
||||||
directory:
|
directory:
|
||||||
recurse: true
|
recurse: true
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: argocd
|
path: master/argocd
|
||||||
destination:
|
destination:
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: authentik
|
path: master/authentik
|
||||||
destination:
|
destination:
|
||||||
namespace: authentik
|
namespace: authentik
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: bitwarden
|
path: master/bitwarden
|
||||||
directory:
|
directory:
|
||||||
recurse: true
|
recurse: true
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: cert-manager
|
path: master/cert-manager
|
||||||
destination:
|
destination:
|
||||||
namespace: cert-manager
|
namespace: cert-manager
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: crossplane
|
path: master/crossplane
|
||||||
destination:
|
destination:
|
||||||
namespace: crossplane
|
namespace: crossplane
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: durpapi
|
path: master/durpapi
|
||||||
destination:
|
destination:
|
||||||
namespace: durpapi
|
namespace: durpapi
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: durpot
|
path: master/durpot
|
||||||
destination:
|
destination:
|
||||||
namespace: durpot
|
namespace: durpot
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: external-dns
|
path: master/external-dns
|
||||||
destination:
|
destination:
|
||||||
namespace: external-dns
|
namespace: external-dns
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: external-secrets
|
path: master/external-secrets
|
||||||
destination:
|
destination:
|
||||||
namespace: external-secrets
|
namespace: external-secrets
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: gatekeeper
|
path: master/gatekeeper
|
||||||
destination:
|
destination:
|
||||||
namespace: gatekeeper
|
namespace: gatekeeper
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: gitlab-runner
|
path: master/gitlab-runner
|
||||||
destination:
|
destination:
|
||||||
namespace: gitlab-runner
|
namespace: gitlab-runner
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: heimdall
|
path: master/heimdall
|
||||||
destination:
|
destination:
|
||||||
namespace: heimdall
|
namespace: heimdall
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: krakend
|
path: master/krakend
|
||||||
destination:
|
destination:
|
||||||
namespace: krakend
|
namespace: krakend
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: kube-prometheus-stack
|
path: master/kube-prometheus-stack
|
||||||
destination:
|
destination:
|
||||||
namespace: kube-prometheus-stack
|
namespace: kube-prometheus-stack
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: kubeclarity
|
path: master/kubeclarity
|
||||||
destination:
|
destination:
|
||||||
namespace: kubeclarity
|
namespace: kubeclarity
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: littlelink
|
path: master/littlelink
|
||||||
directory:
|
directory:
|
||||||
recurse: true
|
recurse: true
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: longhorn
|
path: master/longhorn
|
||||||
destination:
|
destination:
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: metallb-system
|
path: master/metallb-system
|
||||||
destination:
|
destination:
|
||||||
namespace: metallb-system
|
namespace: metallb-system
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: nfs-client
|
path: master/nfs-client
|
||||||
directory:
|
directory:
|
||||||
recurse: true
|
recurse: true
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: open-webui
|
path: master/open-webui
|
||||||
destination:
|
destination:
|
||||||
namespace: open-webui
|
namespace: open-webui
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: traefik
|
path: master/traefik
|
||||||
destination:
|
destination:
|
||||||
namespace: traefik
|
namespace: traefik
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: uptimekuma
|
path: master/uptimekuma
|
||||||
directory:
|
directory:
|
||||||
recurse: true
|
recurse: true
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/developerdurp/homelab.git
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: vault
|
path: master/vault
|
||||||
destination:
|
destination:
|
||||||
namespace: vault
|
namespace: vault
|
||||||
name: in-cluster
|
name: in-cluster
|
||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
syncOptions:
|
syncOptions: Gc
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
ignoreDifferences:
|
ignoreDifferences:
|
||||||
- group: admissionregistration.k8s.io
|
- group: admissionregistration.k8s.io
|
||||||
|
|||||||
14
master/argocd/Chart.yaml
Normal file
14
master/argocd/Chart.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: argocd
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.16.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: argo-cd
|
||||||
|
repository: https://argoproj.github.io/argo-helm
|
||||||
|
version: 6.11.1
|
||||||
|
|
||||||
|
|
||||||
23
master/argocd/templates/InternalProxy.yaml
Normal file
23
master/argocd/templates/InternalProxy.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: internalproxy
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: internalproxy
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: internalproxy
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
59
master/argocd/templates/argocd.yaml
Normal file
59
master/argocd/templates/argocd.yaml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: argocd
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: argocd
|
||||||
|
destination:
|
||||||
|
namespace: argocd
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: argocd-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`argocd.internal.durp.info`)
|
||||||
|
middlewares:
|
||||||
|
- name: whitelist
|
||||||
|
namespace: traefik
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: argocd-server
|
||||||
|
port: 443
|
||||||
|
scheme: https
|
||||||
|
tls:
|
||||||
|
secretName: argocd-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: argocd-tls
|
||||||
|
spec:
|
||||||
|
secretName: argocd-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "argocd.internal.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "argocd.internal.durp.info"
|
||||||
21
master/argocd/templates/authentik.yaml
Normal file
21
master/argocd/templates/authentik.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: authentik
|
||||||
|
destination:
|
||||||
|
namespace: authentik
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
23
master/argocd/templates/bitwarden.yaml
Normal file
23
master/argocd/templates/bitwarden.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: bitwarden
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: bitwarden
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: bitwarden
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: false
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
20
master/argocd/templates/cert-manager.yaml
Normal file
20
master/argocd/templates/cert-manager.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: cert-manager
|
||||||
|
destination:
|
||||||
|
namespace: cert-manager
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/crossplane.yml
Normal file
20
master/argocd/templates/crossplane.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: crossplane
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: crossplane
|
||||||
|
destination:
|
||||||
|
namespace: crossplane
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/durpapi.yaml
Normal file
20
master/argocd/templates/durpapi.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: durpapi
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: durpapi
|
||||||
|
destination:
|
||||||
|
namespace: durpapi
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/durpot.yaml
Normal file
20
master/argocd/templates/durpot.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: durpot
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: durpot
|
||||||
|
destination:
|
||||||
|
namespace: durpot
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/external-dns.yaml
Normal file
20
master/argocd/templates/external-dns.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: external-dns
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: external-dns
|
||||||
|
destination:
|
||||||
|
namespace: external-dns
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/external-secrets.yaml
Normal file
20
master/argocd/templates/external-secrets.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: external-secrets
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: external-secrets
|
||||||
|
destination:
|
||||||
|
namespace: external-secrets
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/gatekeeper.yaml
Normal file
20
master/argocd/templates/gatekeeper.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: gatekeeper
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: gatekeeper
|
||||||
|
destination:
|
||||||
|
namespace: gatekeeper
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
21
master/argocd/templates/gitlab-runner.yaml
Normal file
21
master/argocd/templates/gitlab-runner.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: gitlab-runner
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: gitlab-runner
|
||||||
|
destination:
|
||||||
|
namespace: gitlab-runner
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
20
master/argocd/templates/heimdall.yaml
Normal file
20
master/argocd/templates/heimdall.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: heimdall
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: heimdall
|
||||||
|
destination:
|
||||||
|
namespace: heimdall
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
20
master/argocd/templates/krakend.yaml
Normal file
20
master/argocd/templates/krakend.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: krakend
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: krakend
|
||||||
|
destination:
|
||||||
|
namespace: krakend
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
21
master/argocd/templates/kube-prometheus-stack.yaml
Normal file
21
master/argocd/templates/kube-prometheus-stack.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: kube-prometheus-stack
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: kube-prometheus-stack
|
||||||
|
destination:
|
||||||
|
namespace: kube-prometheus-stack
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
20
master/argocd/templates/kubeclarity.yaml
Normal file
20
master/argocd/templates/kubeclarity.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: kubeclarity
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: kubeclarity
|
||||||
|
destination:
|
||||||
|
namespace: kubeclarity
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
22
master/argocd/templates/littlelink.yaml
Normal file
22
master/argocd/templates/littlelink.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: littlelink
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: littlelink
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: littlelink
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
21
master/argocd/templates/longhorn.yaml
Normal file
21
master/argocd/templates/longhorn.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: longhorn-system
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: longhorn
|
||||||
|
destination:
|
||||||
|
namespace: longhorn-system
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
22
master/argocd/templates/metallb-system.yaml
Normal file
22
master/argocd/templates/metallb-system.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: metallb-system
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: metallb-system
|
||||||
|
destination:
|
||||||
|
namespace: metallb-system
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
|
|
||||||
23
master/argocd/templates/nfs-client.yaml
Normal file
23
master/argocd/templates/nfs-client.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: nfs-client
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: nfs-client
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
namespace: nfs-client
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
20
master/argocd/templates/open-webui.yaml
Normal file
20
master/argocd/templates/open-webui.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: open-webui
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: open-webui
|
||||||
|
destination:
|
||||||
|
namespace: open-webui
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
17
master/argocd/templates/secrets.yaml
Normal file
17
master/argocd/templates/secrets.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: vault-argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: client-secret
|
||||||
|
data:
|
||||||
|
- secretKey: clientSecret
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/argocd/authentik
|
||||||
|
property: clientsecret
|
||||||
20
master/argocd/templates/traefik.yaml
Normal file
20
master/argocd/templates/traefik.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: traefik
|
||||||
|
destination:
|
||||||
|
namespace: traefik
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
23
master/argocd/templates/uptimekuma.yaml
Normal file
23
master/argocd/templates/uptimekuma.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: uptimekuma
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: uptimekuma
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: uptimekuma
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
25
master/argocd/templates/vault.yaml
Normal file
25
master/argocd/templates/vault.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: vault
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://gitlab.com/developerdurp/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: vault
|
||||||
|
destination:
|
||||||
|
namespace: vault
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: admissionregistration.k8s.io
|
||||||
|
kind: MutatingWebhookConfiguration
|
||||||
|
jqPathExpressions:
|
||||||
|
- .webhooks[]?.clientConfig.caBundle
|
||||||
62
master/argocd/values.yaml
Normal file
62
master/argocd/values.yaml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
argo-cd:
|
||||||
|
|
||||||
|
global:
|
||||||
|
revisionHistoryLimit: 1
|
||||||
|
image:
|
||||||
|
repository: registry.internal.durp.info/argoproj/argocd
|
||||||
|
imagePullPolicy: Always
|
||||||
|
|
||||||
|
server:
|
||||||
|
#extraArgs:
|
||||||
|
# - --dex-server-plaintext
|
||||||
|
# - --dex-server=argocd-dex-server:5556
|
||||||
|
# oidc.config: |
|
||||||
|
# name: AzureAD
|
||||||
|
# issuer: https://login.microsoftonline.com/TENANT_ID/v2.0
|
||||||
|
# clientID: CLIENT_ID
|
||||||
|
# clientSecret: $oidc.azuread.clientSecret
|
||||||
|
# requestedIDTokenClaims:
|
||||||
|
# groups:
|
||||||
|
# essential: true
|
||||||
|
# requestedScopes:
|
||||||
|
# - openid
|
||||||
|
# - profile
|
||||||
|
# - email
|
||||||
|
|
||||||
|
dex:
|
||||||
|
enabled: true
|
||||||
|
image:
|
||||||
|
repository: registry.internal.durp.info/dexidp/dex
|
||||||
|
imagePullPolicy: Always
|
||||||
|
|
||||||
|
configs:
|
||||||
|
cm:
|
||||||
|
create: true
|
||||||
|
annotations: {}
|
||||||
|
url: https://argocd.internal.durp.info
|
||||||
|
oidc.tls.insecure.skip.verify: "true"
|
||||||
|
dex.config: |
|
||||||
|
connectors:
|
||||||
|
- config:
|
||||||
|
issuer: https://authentik.durp.info/application/o/argocd/
|
||||||
|
clientID: dbb8ffc06104fb6e7fac3e4ae7fafb1d90437625
|
||||||
|
clientSecret: $client-secret:clientSecret
|
||||||
|
insecureEnableGroups: true
|
||||||
|
scopes:
|
||||||
|
- openid
|
||||||
|
- profile
|
||||||
|
- email
|
||||||
|
- groups
|
||||||
|
name: authentik
|
||||||
|
type: oidc
|
||||||
|
id: authentik
|
||||||
|
|
||||||
|
rbac:
|
||||||
|
create: true
|
||||||
|
policy.csv: |
|
||||||
|
g, ArgoCD Admins, role:admin
|
||||||
|
scopes: "[groups]"
|
||||||
|
|
||||||
|
server:
|
||||||
|
route:
|
||||||
|
enabled: false
|
||||||
12
master/authentik/Chart.yaml
Normal file
12
master/authentik/Chart.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: authentik
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.16.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: authentik
|
||||||
|
repository: https://charts.goauthentik.io
|
||||||
|
version: 2024.8.3
|
||||||
24
master/authentik/templates/authentik-pv.yaml
Normal file
24
master/authentik/templates/authentik-pv.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#apiVersion: v1
|
||||||
|
#kind: PersistentVolume
|
||||||
|
#metadata:
|
||||||
|
# annotations:
|
||||||
|
# pv.kubernetes.io/provisioned-by: durp.info/nfs
|
||||||
|
# finalizers:
|
||||||
|
# - kubernetes.io/pv-protection
|
||||||
|
# name: authentik-pv
|
||||||
|
#spec:
|
||||||
|
# accessModes:
|
||||||
|
# - ReadWriteMany
|
||||||
|
# capacity:
|
||||||
|
# storage: 10Gi
|
||||||
|
# claimRef:
|
||||||
|
# apiVersion: v1
|
||||||
|
# kind: PersistentVolumeClaim
|
||||||
|
# name: authentik-pvc
|
||||||
|
# namespace: authentik
|
||||||
|
# nfs:
|
||||||
|
# path: /mnt/user/k3s/authentik
|
||||||
|
# server: 192.168.20.253
|
||||||
|
# persistentVolumeReclaimPolicy: Retain
|
||||||
|
# storageClassName: nfs-storage
|
||||||
|
# volumeMode: Filesystem
|
||||||
18
master/authentik/templates/authentik-pvc.yaml
Normal file
18
master/authentik/templates/authentik-pvc.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#apiVersion: v1
|
||||||
|
#kind: PersistentVolumeClaim
|
||||||
|
#metadata:
|
||||||
|
# labels:
|
||||||
|
# app.kubernetes.io/component: app
|
||||||
|
# app.kubernetes.io/instance: authentik
|
||||||
|
# app.kubernetes.io/managed-by: Helm
|
||||||
|
# app.kubernetes.io/name: authentik
|
||||||
|
# helm.sh/chart: authentik-2.14.4
|
||||||
|
# name: authentik-pvc
|
||||||
|
# namespace: authentik
|
||||||
|
#spec:
|
||||||
|
# accessModes:
|
||||||
|
# - ReadWriteMany
|
||||||
|
# resources:
|
||||||
|
# requests:
|
||||||
|
# storage: 10Gi
|
||||||
|
# storageClassName: nfs-storage
|
||||||
42
master/authentik/templates/ingress.yaml
Normal file
42
master/authentik/templates/ingress.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: authentik-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`authentik.durp.info`) && PathPrefix(`/`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: authentik-server
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: authentik-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: authentik-tls
|
||||||
|
spec:
|
||||||
|
secretName: authentik-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "authentik.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "authentik.durp.info"
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: authentik-external-dns
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: authentik.durp.info
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName: durp.info
|
||||||
28
master/authentik/templates/secrets.yaml
Normal file
28
master/authentik/templates/secrets.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: authentik-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: db-pass
|
||||||
|
data:
|
||||||
|
- secretKey: dbpass
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/authentik/database
|
||||||
|
property: dbpass
|
||||||
|
- secretKey: secretkey
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/authentik/database
|
||||||
|
property: secretkey
|
||||||
|
- secretKey: postgresql-postgres-password
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/authentik/database
|
||||||
|
property: dbpass
|
||||||
|
- secretKey: postgresql-password
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/authentik/database
|
||||||
|
property: dbpass
|
||||||
|
|
||||||
56
master/authentik/values.yaml
Normal file
56
master/authentik/values.yaml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
authentik:
|
||||||
|
global:
|
||||||
|
env:
|
||||||
|
- name: AUTHENTIK_POSTGRESQL__PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: db-pass
|
||||||
|
key: dbpass
|
||||||
|
- name: AUTHENTIK_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: db-pass
|
||||||
|
key: secretkey
|
||||||
|
revisionHistoryLimit: 1
|
||||||
|
image:
|
||||||
|
repository: registry.internal.durp.info/goauthentik/server
|
||||||
|
pullPolicy: Always
|
||||||
|
authentik:
|
||||||
|
outposts:
|
||||||
|
container_image_base: registry.internal.durp.info/goauthentik/%(type)s:%(version)s
|
||||||
|
postgresql:
|
||||||
|
host: '{{ .Release.Name }}-postgresql-hl'
|
||||||
|
name: "authentik"
|
||||||
|
user: "authentik"
|
||||||
|
port: 5432
|
||||||
|
server:
|
||||||
|
name: server
|
||||||
|
replicas: 3
|
||||||
|
worker:
|
||||||
|
replicas: 3
|
||||||
|
postgresql:
|
||||||
|
enabled: true
|
||||||
|
image:
|
||||||
|
registry: registry.internal.durp.info
|
||||||
|
repository: bitnami/postgresql
|
||||||
|
pullPolicy: Always
|
||||||
|
postgresqlUsername: "authentik"
|
||||||
|
postgresqlDatabase: "authentik"
|
||||||
|
existingSecret: db-pass
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
storageClass: longhorn
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
master:
|
||||||
|
persistence:
|
||||||
|
enabled: false
|
||||||
|
image:
|
||||||
|
registry: registry.internal.durp.info
|
||||||
|
repository: bitnami/redis
|
||||||
|
pullPolicy: Always
|
||||||
|
architecture: standalone
|
||||||
|
auth:
|
||||||
|
enabled: false
|
||||||
7
master/bitwarden/Chart.yaml
Normal file
7
master/bitwarden/Chart.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: bitwarden
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.16.0"
|
||||||
25
master/bitwarden/templates/bitwarden-pv.yaml
Normal file
25
master/bitwarden/templates/bitwarden-pv.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#apiVersion: v1
|
||||||
|
#kind: PersistentVolume
|
||||||
|
#metadata:
|
||||||
|
# annotations:
|
||||||
|
# pv.kubernetes.io/provisioned-by: durp.info/nfs
|
||||||
|
# finalizers:
|
||||||
|
# - kubernetes.io/pv-protection
|
||||||
|
# name: bitwarden-pv
|
||||||
|
#spec:
|
||||||
|
# accessModes:
|
||||||
|
# - ReadWriteMany
|
||||||
|
# capacity:
|
||||||
|
# storage: 10Gi
|
||||||
|
# claimRef:
|
||||||
|
# apiVersion: v1
|
||||||
|
# kind: PersistentVolumeClaim
|
||||||
|
# name: bitwarden-pvc
|
||||||
|
# namespace: bitwarden
|
||||||
|
# nfs:
|
||||||
|
# path: /mnt/user/k3s/bitwarden
|
||||||
|
# server: 192.168.20.253
|
||||||
|
# persistentVolumeReclaimPolicy: Retain
|
||||||
|
# storageClassName: nfs-storage
|
||||||
|
# volumeMode: Filesystem
|
||||||
|
#
|
||||||
11
master/bitwarden/templates/bitwarden-pvc.yaml
Normal file
11
master/bitwarden/templates/bitwarden-pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-pvc
|
||||||
|
spec:
|
||||||
|
storageClassName: longhorn
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
50
master/bitwarden/templates/deployment.yaml
Normal file
50
master/bitwarden/templates/deployment.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
namespace: bitwarden
|
||||||
|
name: bitwarden
|
||||||
|
labels:
|
||||||
|
app: bitwarden
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: bitwarden
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: bitwarden
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: bitwarden
|
||||||
|
image: registry.internal.durp.info/vaultwarden/server:1.32.0
|
||||||
|
imagePullPolicy: Always
|
||||||
|
volumeMounts:
|
||||||
|
- name: bitwarden-pvc
|
||||||
|
mountPath: /data
|
||||||
|
subPath: bitwaren-data
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
env:
|
||||||
|
- name: SIGNUPS_ALLOWED
|
||||||
|
value: "FALSE"
|
||||||
|
- name: INVITATIONS_ALLOWED
|
||||||
|
value: "FALSE"
|
||||||
|
- name: WEBSOCKET_ENABLED
|
||||||
|
value: "TRUE"
|
||||||
|
- name: ROCKET_ENV
|
||||||
|
value: "staging"
|
||||||
|
- name: ROCKET_PORT
|
||||||
|
value: "80"
|
||||||
|
- name: ROCKET_WORKERS
|
||||||
|
value: "10"
|
||||||
|
- name: SECRET_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bitwarden-secret
|
||||||
|
key: ADMIN_TOKEN
|
||||||
|
volumes:
|
||||||
|
- name: bitwarden-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: bitwarden-pvc
|
||||||
42
master/bitwarden/templates/ingress.yaml
Normal file
42
master/bitwarden/templates/ingress.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`bitwarden.durp.info`) && PathPrefix(`/`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: bitwarden
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: bitwarden-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-tls
|
||||||
|
spec:
|
||||||
|
secretName: bitwarden-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "bitwarden.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "bitwarden.durp.info"
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-external-dns
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: bitwarden.durp.info
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName: durp.info
|
||||||
16
master/bitwarden/templates/secrets.yaml
Normal file
16
master/bitwarden/templates/secrets.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: bitwarden-secret
|
||||||
|
data:
|
||||||
|
- secretKey: ADMIN_TOKEN
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/bitwarden/admin
|
||||||
|
property: ADMIN_TOKEN
|
||||||
|
|
||||||
12
master/bitwarden/templates/service.yaml
Normal file
12
master/bitwarden/templates/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bitwarden
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: bitwarden
|
||||||
11
master/cert-manager/Chart.yaml
Normal file
11
master/cert-manager/Chart.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: cert-manager
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: cert-manager
|
||||||
|
repository: https://charts.jetstack.io
|
||||||
|
version: v1.15.3
|
||||||
16
master/cert-manager/templates/letsencrypt-prroduction.yaml
Normal file
16
master/cert-manager/templates/letsencrypt-prroduction.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: ClusterIssuer
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt-production
|
||||||
|
spec:
|
||||||
|
acme:
|
||||||
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
privateKeySecretRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
solvers:
|
||||||
|
- dns01:
|
||||||
|
cloudflare:
|
||||||
|
email: developerdurp@durp.info
|
||||||
|
apiTokenSecretRef:
|
||||||
|
name: cloudflare-api-token-secret
|
||||||
|
key: cloudflare-api-token-secret
|
||||||
16
master/cert-manager/templates/letsencrypt-staging.yaml
Normal file
16
master/cert-manager/templates/letsencrypt-staging.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: ClusterIssuer
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt-staging
|
||||||
|
spec:
|
||||||
|
acme:
|
||||||
|
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
|
privateKeySecretRef:
|
||||||
|
name: letsencrypt-staging
|
||||||
|
solvers:
|
||||||
|
- dns01:
|
||||||
|
cloudflare:
|
||||||
|
email: developerdurp@durp.info
|
||||||
|
apiTokenSecretRef:
|
||||||
|
name: cloudflare-api-token-secret
|
||||||
|
key: cloudflare-api-token-secret
|
||||||
16
master/cert-manager/templates/sealedsecret.yaml
Normal file
16
master/cert-manager/templates/sealedsecret.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: cloudflare-api-token-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: cloudflare-api-token-secret
|
||||||
|
data:
|
||||||
|
- secretKey: cloudflare-api-token-secret
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/cert-manager
|
||||||
|
property: cloudflare-api-token-secret
|
||||||
|
|
||||||
25
master/cert-manager/values.yaml
Normal file
25
master/cert-manager/values.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
cert-manager:
|
||||||
|
image:
|
||||||
|
registry: registry.internal.durp.info
|
||||||
|
repository: jetstack/cert-manager-controller
|
||||||
|
pullPolicy: Always
|
||||||
|
installCRDs: true
|
||||||
|
replicaCount: 3
|
||||||
|
extraArgs:
|
||||||
|
- --dns01-recursive-nameservers=1.1.1.1:53,1.0.0.1:53
|
||||||
|
- --dns01-recursive-nameservers-only
|
||||||
|
podDnsPolicy: None
|
||||||
|
podDnsConfig:
|
||||||
|
nameservers:
|
||||||
|
- "1.1.1.1"
|
||||||
|
- "1.0.0.1"
|
||||||
|
webhook:
|
||||||
|
image:
|
||||||
|
registry: registry.internal.durp.info
|
||||||
|
repository: jetstack/cert-manager-webhook
|
||||||
|
pullPolicy: Always
|
||||||
|
cainjector:
|
||||||
|
image:
|
||||||
|
registry: registry.internal.durp.info
|
||||||
|
repository: jetstack/cert-manager-cainjector
|
||||||
|
pullPolicy: Always
|
||||||
12
master/crossplane/Chart.yaml
Normal file
12
master/crossplane/Chart.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: crossplane
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.16.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: crossplane
|
||||||
|
repository: https://charts.crossplane.io/stable
|
||||||
|
version: 1.17.1
|
||||||
55
master/crossplane/templates/gitlab.yml
Normal file
55
master/crossplane/templates/gitlab.yml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
apiVersion: pkg.crossplane.io/v1
|
||||||
|
kind: Provider
|
||||||
|
metadata:
|
||||||
|
name: provider-gitlab
|
||||||
|
spec:
|
||||||
|
package: xpkg.upbound.io/crossplane-contrib/provider-gitlab:v0.5.0
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: gitlab-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: gitlab-secret
|
||||||
|
data:
|
||||||
|
- secretKey: accesstoken
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/gitlab/token
|
||||||
|
property: accesstoken
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#apiVersion: gitlab.crossplane.io/v1beta1
|
||||||
|
#kind: ProviderConfig
|
||||||
|
#metadata:
|
||||||
|
# name: gitlab-provider
|
||||||
|
#spec:
|
||||||
|
# baseURL: https://gitlab.com/
|
||||||
|
# credentials:
|
||||||
|
# source: Secret
|
||||||
|
# secretRef:
|
||||||
|
# namespace: crossplane
|
||||||
|
# name: gitlab-secret
|
||||||
|
# key: accesstoken
|
||||||
|
#
|
||||||
|
#---
|
||||||
|
#
|
||||||
|
#apiVersion: projects.gitlab.crossplane.io/v1alpha1
|
||||||
|
#kind: Project
|
||||||
|
#metadata:
|
||||||
|
# name: example-project
|
||||||
|
#spec:
|
||||||
|
# deletionPolicy: Orphan
|
||||||
|
# forProvider:
|
||||||
|
# name: "Example Project"
|
||||||
|
# description: "example project description"
|
||||||
|
# providerConfigRef:
|
||||||
|
# name: gitlab-provider
|
||||||
|
# policy:
|
||||||
|
# resolution: Optional
|
||||||
|
# resolve: Always
|
||||||
1506
master/dashboards/nginx-dashboard.yaml
Normal file
1506
master/dashboards/nginx-dashboard.yaml
Normal file
File diff suppressed because it is too large
Load Diff
13
master/durpapi/Chart.yaml
Normal file
13
master/durpapi/Chart.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: durpapi
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0-dev0184
|
||||||
|
appVersion: 0.1.0
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- condition: postgresql.enabled
|
||||||
|
version: 12.5.*
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
name: postgresql
|
||||||
38
master/durpapi/templates/deployment.yaml
Normal file
38
master/durpapi/templates/deployment.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}
|
||||||
|
labels:
|
||||||
|
app: {{ .Chart.Name }}
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ .Chart.Name }}
|
||||||
|
replicas: {{ .Values.deployment.hpa.minReplicas }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ .Chart.Name }}
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: api
|
||||||
|
image: "{{ .Values.deployment.image }}:{{ default .Chart.Version .Values.deployment.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.deployment.imagePullPolicy }}
|
||||||
|
readinessProbe:
|
||||||
|
{{- toYaml .Values.deployment.probe.readiness | nindent 12 }}
|
||||||
|
livenessProbe:
|
||||||
|
{{- toYaml .Values.deployment.probe.liveness | nindent 12 }}
|
||||||
|
startupProbe:
|
||||||
|
{{- toYaml .Values.deployment.probe.startup | nindent 12 }}
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: {{ .Values.service.targetport }}
|
||||||
|
env:
|
||||||
|
- name: host
|
||||||
|
value: {{ .Values.swagger.host }}
|
||||||
|
- name: version
|
||||||
|
value: {{ default .Chart.Version .Values.deployment.tag }}
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: {{ .Values.deployment.secretfile }}
|
||||||
24
master/durpapi/templates/hpa.yaml
Normal file
24
master/durpapi/templates/hpa.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: autoscaling/v2
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Chart.Name }}-hpa"
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: {{ .Chart.Name }}
|
||||||
|
minReplicas: {{ .Values.deployment.hpa.minReplicas }}
|
||||||
|
maxReplicas: {{ .Values.deployment.hpa.maxReplicas }}
|
||||||
|
metrics:
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: memory
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 80
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 40
|
||||||
44
master/durpapi/templates/ingress.yaml
Normal file
44
master/durpapi/templates/ingress.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Chart.Name }}-ingress"
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host("api.durp.info") && PathPrefix(`/api`)
|
||||||
|
kind: Rule
|
||||||
|
middlewares:
|
||||||
|
- name: jwt
|
||||||
|
services:
|
||||||
|
- name: "durpapi-service"
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Chart.Name }}-swagger"
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host("api.durp.info") && PathPrefix(`/swagger`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: "durpapi-service"
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: jwt
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
jwt:
|
||||||
|
Required: true
|
||||||
|
Keys:
|
||||||
|
- https://authentik.durp.info/application/o/api/jwks
|
||||||
39
master/durpapi/templates/secrets.yaml
Normal file
39
master/durpapi/templates/secrets.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: durpapi-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: durpapi-secret
|
||||||
|
data:
|
||||||
|
- secretKey: db_host
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/postgres
|
||||||
|
property: db_host
|
||||||
|
- secretKey: db_port
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/postgres
|
||||||
|
property: db_port
|
||||||
|
- secretKey: db_pass
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/postgres
|
||||||
|
property: db_pass
|
||||||
|
- secretKey: db_user
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/postgres
|
||||||
|
property: db_user
|
||||||
|
- secretKey: db_sslmode
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/postgres
|
||||||
|
property: db_sslmode
|
||||||
|
- secretKey: db_name
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/postgres
|
||||||
|
property: db_name
|
||||||
|
- secretKey: llamaurl
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpapi/llamaurl
|
||||||
|
property: llamaurl
|
||||||
12
master/durpapi/templates/service.yaml
Normal file
12
master/durpapi/templates/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Chart.Name }}-service"
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: {{ .Values.service.port }}
|
||||||
|
targetPort: {{ .Values.service.targetport }}
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: {{ .Chart.Name }}
|
||||||
39
master/durpapi/values.yaml
Normal file
39
master/durpapi/values.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
deployment:
|
||||||
|
image: registry.internal.durp.info/developerdurp/durpapi
|
||||||
|
secretfile: durpapi-secret
|
||||||
|
imagePullPolicy: Always
|
||||||
|
hpa:
|
||||||
|
minReplicas: 3
|
||||||
|
maxReplicas: 10
|
||||||
|
probe:
|
||||||
|
readiness:
|
||||||
|
httpGet:
|
||||||
|
path: /health/gethealth
|
||||||
|
port: 8080
|
||||||
|
liveness:
|
||||||
|
httpGet:
|
||||||
|
path: /health/gethealth
|
||||||
|
port: 8080
|
||||||
|
startup:
|
||||||
|
httpGet:
|
||||||
|
path: /health/gethealth
|
||||||
|
port: 8080
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
targetport: 8080
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
host: api.durp.info
|
||||||
|
postgresql:
|
||||||
|
enabled: true
|
||||||
|
auth:
|
||||||
|
existingSecret: durpapi-secret
|
||||||
|
secretKeys:
|
||||||
|
adminPasswordKey: db_pass
|
||||||
|
userPasswordKey: db_pass
|
||||||
|
replicationPasswordKey: db_pass
|
||||||
|
database: postgres
|
||||||
|
username: postgres
|
||||||
11
master/durpot/Chart.yaml
Normal file
11
master/durpot/Chart.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: durpapi
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: durpot
|
||||||
|
repository: https://gitlab.com/api/v4/projects/45025485/packages/helm/stable
|
||||||
|
version: 0.1.0-dev0038
|
||||||
43
master/durpot/templates/secrets.yaml
Normal file
43
master/durpot/templates/secrets.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: durpot-secert
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: durpot-secret
|
||||||
|
data:
|
||||||
|
- secretKey: OPENAI_API_KEY
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/openai
|
||||||
|
property: OPENAI_API_KEY
|
||||||
|
- secretKey: BOTPREFIX
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/discord
|
||||||
|
property: BOTPREFIX
|
||||||
|
- secretKey: ChannelID
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/discord
|
||||||
|
property: ChannelID
|
||||||
|
- secretKey: TOKEN
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/discord
|
||||||
|
property: TOKEN
|
||||||
|
- secretKey: ClientID
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/auth
|
||||||
|
property: ClientID
|
||||||
|
- secretKey: Password
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/auth
|
||||||
|
property: Password
|
||||||
|
- secretKey: TokenURL
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/auth
|
||||||
|
property: TokenURL
|
||||||
|
- secretKey: Username
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/durpot/auth
|
||||||
|
property: Username
|
||||||
12
master/external-dns/Chart.yaml
Normal file
12
master/external-dns/Chart.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
apiVersion: v2
|
||||||
|
name: external-dns
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: external-dns
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 8.3.8
|
||||||
23
master/external-dns/templates/secrets.yaml
Normal file
23
master/external-dns/templates/secrets.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: external-dns-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: external-dns
|
||||||
|
data:
|
||||||
|
- secretKey: cloudflare_api_email
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/external-dns/cloudflare
|
||||||
|
property: cloudflare_api_email
|
||||||
|
- secretKey: cloudflare_api_key
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/external-dns/cloudflare
|
||||||
|
property: cloudflare_api_key
|
||||||
|
- secretKey: cloudflare_api_token
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/external-dns/cloudflare
|
||||||
|
property: cloudflare_api_token
|
||||||
16
master/external-dns/values.yaml
Normal file
16
master/external-dns/values.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
external-dns:
|
||||||
|
global:
|
||||||
|
imageRegistry: "registry.internal.durp.info"
|
||||||
|
|
||||||
|
image:
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
|
sources:
|
||||||
|
- service
|
||||||
|
|
||||||
|
provider: cloudflare
|
||||||
|
cloudflare:
|
||||||
|
secretName : "external-dns"
|
||||||
|
proxied: false
|
||||||
|
|
||||||
|
policy: sync
|
||||||
12
master/external-secrets/Chart.yaml
Normal file
12
master/external-secrets/Chart.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: external-secrets
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: external-secrets
|
||||||
|
repository: https://charts.external-secrets.io
|
||||||
|
version: 0.10.4
|
||||||
|
|
||||||
463
master/external-secrets/values.yaml
Normal file
463
master/external-secrets/values.yaml
Normal file
@@ -0,0 +1,463 @@
|
|||||||
|
external-secrets:
|
||||||
|
replicaCount: 3
|
||||||
|
|
||||||
|
# -- Specifies the amount of historic ReplicaSets k8s should keep (see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy)
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/external-secrets/external-secrets
|
||||||
|
pullPolicy: Always
|
||||||
|
# -- The image tag to use. The default is the chart appVersion.
|
||||||
|
# There are different image flavours available, like distroless and ubi.
|
||||||
|
# Please see GitHub release notes for image tags for these flavors.
|
||||||
|
# By default the distroless image is used.
|
||||||
|
tag: ""
|
||||||
|
|
||||||
|
# -- If set, install and upgrade CRDs through helm chart.
|
||||||
|
installCRDs: true
|
||||||
|
|
||||||
|
crds:
|
||||||
|
# -- If true, create CRDs for Cluster External Secret.
|
||||||
|
createClusterExternalSecret: true
|
||||||
|
# -- If true, create CRDs for Cluster Secret Store.
|
||||||
|
createClusterSecretStore: true
|
||||||
|
# -- If true, create CRDs for Push Secret.
|
||||||
|
createPushSecret: true
|
||||||
|
annotations: {}
|
||||||
|
conversion:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
imagePullSecrets: []
|
||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
# -- If true, external-secrets will perform leader election between instances to ensure no more
|
||||||
|
# than one instance of external-secrets operates at a time.
|
||||||
|
leaderElect: true
|
||||||
|
|
||||||
|
# -- If set external secrets will filter matching
|
||||||
|
# Secret Stores with the appropriate controller values.
|
||||||
|
controllerClass: ""
|
||||||
|
|
||||||
|
# -- If true external secrets will use recommended kubernetes
|
||||||
|
# annotations as prometheus metric labels.
|
||||||
|
extendedMetricLabels: false
|
||||||
|
|
||||||
|
# -- If set external secrets are only reconciled in the
|
||||||
|
# provided namespace
|
||||||
|
scopedNamespace: ""
|
||||||
|
|
||||||
|
# -- Must be used with scopedNamespace. If true, create scoped RBAC roles under the scoped namespace
|
||||||
|
# and implicitly disable cluster stores and cluster external secrets
|
||||||
|
scopedRBAC: false
|
||||||
|
|
||||||
|
# -- if true, the operator will process cluster external secret. Else, it will ignore them.
|
||||||
|
processClusterExternalSecret: true
|
||||||
|
|
||||||
|
# -- if true, the operator will process cluster store. Else, it will ignore them.
|
||||||
|
processClusterStore: true
|
||||||
|
|
||||||
|
# -- Specifies whether an external secret operator deployment be created.
|
||||||
|
createOperator: true
|
||||||
|
|
||||||
|
# -- Specifies the number of concurrent ExternalSecret Reconciles external-secret executes at
|
||||||
|
# a time.
|
||||||
|
concurrent: 1
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
# -- Specifies whether a service account should be created.
|
||||||
|
create: true
|
||||||
|
# -- Automounts the service account token in all containers of the pod
|
||||||
|
automount: true
|
||||||
|
# -- Annotations to add to the service account.
|
||||||
|
annotations: {}
|
||||||
|
# -- Extra Labels to add to the service account.
|
||||||
|
extraLabels: {}
|
||||||
|
# -- The name of the service account to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template.
|
||||||
|
name: ""
|
||||||
|
|
||||||
|
rbac:
|
||||||
|
# -- Specifies whether role and rolebinding resources should be created.
|
||||||
|
create: true
|
||||||
|
|
||||||
|
## -- Extra environment variables to add to container.
|
||||||
|
extraEnv: []
|
||||||
|
|
||||||
|
## -- Map of extra arguments to pass to container.
|
||||||
|
extraArgs: {}
|
||||||
|
|
||||||
|
## -- Extra volumes to pass to pod.
|
||||||
|
extraVolumes: []
|
||||||
|
|
||||||
|
## -- Extra volumes to mount to the container.
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|
||||||
|
## -- Extra containers to add to the pod.
|
||||||
|
extraContainers: []
|
||||||
|
|
||||||
|
# -- Annotations to add to Deployment
|
||||||
|
deploymentAnnotations: {}
|
||||||
|
|
||||||
|
# -- Annotations to add to Pod
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
podSecurityContext: {}
|
||||||
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
|
||||||
|
resources: {}
|
||||||
|
# requests:
|
||||||
|
# cpu: 10m
|
||||||
|
# memory: 32Mi
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
# -- deprecated. will be removed with 0.7.0, use serviceMonitor instead.
|
||||||
|
enabled: false
|
||||||
|
service:
|
||||||
|
# -- deprecated. will be removed with 0.7.0, use serviceMonitor instead.
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
serviceMonitor:
|
||||||
|
# -- Specifies whether to create a ServiceMonitor resource for collecting Prometheus metrics
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- namespace where you want to install ServiceMonitors
|
||||||
|
namespace: ""
|
||||||
|
|
||||||
|
# -- Additional labels
|
||||||
|
additionalLabels: {}
|
||||||
|
|
||||||
|
# -- Interval to scrape metrics
|
||||||
|
interval: 30s
|
||||||
|
|
||||||
|
# -- Timeout if metrics can't be retrieved in given time interval
|
||||||
|
scrapeTimeout: 25s
|
||||||
|
|
||||||
|
# -- Let prometheus add an exported_ prefix to conflicting labels
|
||||||
|
honorLabels: false
|
||||||
|
|
||||||
|
# -- Metric relabel configs to apply to samples before ingestion. [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs)
|
||||||
|
metricRelabelings: []
|
||||||
|
# - action: replace
|
||||||
|
# regex: (.*)
|
||||||
|
# replacement: $1
|
||||||
|
# sourceLabels:
|
||||||
|
# - exported_namespace
|
||||||
|
# targetLabel: namespace
|
||||||
|
|
||||||
|
# -- Relabel configs to apply to samples before ingestion. [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config)
|
||||||
|
relabelings: []
|
||||||
|
# - sourceLabels: [__meta_kubernetes_pod_node_name]
|
||||||
|
# separator: ;
|
||||||
|
# regex: ^(.*)$
|
||||||
|
# targetLabel: nodename
|
||||||
|
# replacement: $1
|
||||||
|
# action: replace
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
service:
|
||||||
|
# -- Enable if you use another monitoring tool than Prometheus to scrape the metrics
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Metrics service port to scrape
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
# -- Additional service annotations
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
|
# -- Pod priority class name.
|
||||||
|
priorityClassName: ""
|
||||||
|
|
||||||
|
# -- Pod disruption budget - for more details see https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
|
||||||
|
podDisruptionBudget:
|
||||||
|
enabled: false
|
||||||
|
minAvailable: 1
|
||||||
|
# maxUnavailable: 1
|
||||||
|
|
||||||
|
# -- Run the controller on the host network
|
||||||
|
hostNetwork: false
|
||||||
|
|
||||||
|
webhook:
|
||||||
|
# -- Specifies whether a webhook deployment be created.
|
||||||
|
create: true
|
||||||
|
# -- Specifices the time to check if the cert is valid
|
||||||
|
certCheckInterval: "5m"
|
||||||
|
# -- Specifices the lookaheadInterval for certificate validity
|
||||||
|
lookaheadInterval: ""
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
# -- Specifies the amount of historic ReplicaSets k8s should keep (see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy)
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
|
||||||
|
certDir: /tmp/certs
|
||||||
|
# -- Specifies whether validating webhooks should be created with failurePolicy: Fail or Ignore
|
||||||
|
failurePolicy: Fail
|
||||||
|
# -- Specifies if webhook pod should use hostNetwork or not.
|
||||||
|
hostNetwork: false
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/external-secrets/external-secrets
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
# -- The image tag to use. The default is the chart appVersion.
|
||||||
|
tag: ""
|
||||||
|
imagePullSecrets: []
|
||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
# -- The port the webhook will listen to
|
||||||
|
port: 10250
|
||||||
|
rbac:
|
||||||
|
# -- Specifies whether role and rolebinding resources should be created.
|
||||||
|
create: true
|
||||||
|
serviceAccount:
|
||||||
|
# -- Specifies whether a service account should be created.
|
||||||
|
create: true
|
||||||
|
# -- Automounts the service account token in all containers of the pod
|
||||||
|
automount: true
|
||||||
|
# -- Annotations to add to the service account.
|
||||||
|
annotations: {}
|
||||||
|
# -- Extra Labels to add to the service account.
|
||||||
|
extraLabels: {}
|
||||||
|
# -- The name of the service account to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template.
|
||||||
|
name: ""
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
|
# -- Pod priority class name.
|
||||||
|
priorityClassName: ""
|
||||||
|
|
||||||
|
# -- Pod disruption budget - for more details see https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
|
||||||
|
podDisruptionBudget:
|
||||||
|
enabled: false
|
||||||
|
minAvailable: 1
|
||||||
|
# maxUnavailable: 1
|
||||||
|
prometheus:
|
||||||
|
# -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
|
||||||
|
enabled: false
|
||||||
|
service:
|
||||||
|
# -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
serviceMonitor:
|
||||||
|
# -- Specifies whether to create a ServiceMonitor resource for collecting Prometheus metrics
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Additional labels
|
||||||
|
additionalLabels: {}
|
||||||
|
|
||||||
|
# -- Interval to scrape metrics
|
||||||
|
interval: 30s
|
||||||
|
|
||||||
|
# -- Timeout if metrics can't be retrieved in given time interval
|
||||||
|
scrapeTimeout: 25s
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
service:
|
||||||
|
# -- Enable if you use another monitoring tool than Prometheus to scrape the metrics
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Metrics service port to scrape
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
# -- Additional service annotations
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
# -- Address for readiness probe
|
||||||
|
address: ""
|
||||||
|
# -- ReadinessProbe port for kubelet
|
||||||
|
port: 8081
|
||||||
|
|
||||||
|
|
||||||
|
## -- Extra environment variables to add to container.
|
||||||
|
extraEnv: []
|
||||||
|
|
||||||
|
## -- Map of extra arguments to pass to container.
|
||||||
|
extraArgs: {}
|
||||||
|
|
||||||
|
## -- Extra volumes to pass to pod.
|
||||||
|
extraVolumes: []
|
||||||
|
|
||||||
|
## -- Extra volumes to mount to the container.
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|
||||||
|
# -- Annotations to add to Secret
|
||||||
|
secretAnnotations: {}
|
||||||
|
|
||||||
|
# -- Annotations to add to Deployment
|
||||||
|
deploymentAnnotations: {}
|
||||||
|
|
||||||
|
# -- Annotations to add to Pod
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
podSecurityContext: {}
|
||||||
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
|
||||||
|
resources: {}
|
||||||
|
# requests:
|
||||||
|
# cpu: 10m
|
||||||
|
# memory: 32Mi
|
||||||
|
|
||||||
|
certController:
|
||||||
|
# -- Specifies whether a certificate controller deployment be created.
|
||||||
|
create: true
|
||||||
|
requeueInterval: "5m"
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
# -- Specifies the amount of historic ReplicaSets k8s should keep (see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy)
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/external-secrets/external-secrets
|
||||||
|
pullPolicy: Always
|
||||||
|
tag: ""
|
||||||
|
imagePullSecrets: []
|
||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
rbac:
|
||||||
|
# -- Specifies whether role and rolebinding resources should be created.
|
||||||
|
create: true
|
||||||
|
serviceAccount:
|
||||||
|
# -- Specifies whether a service account should be created.
|
||||||
|
create: true
|
||||||
|
# -- Automounts the service account token in all containers of the pod
|
||||||
|
automount: true
|
||||||
|
# -- Annotations to add to the service account.
|
||||||
|
annotations: {}
|
||||||
|
# -- Extra Labels to add to the service account.
|
||||||
|
extraLabels: {}
|
||||||
|
# -- The name of the service account to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template.
|
||||||
|
name: ""
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
|
# -- Run the certController on the host network
|
||||||
|
hostNetwork: false
|
||||||
|
|
||||||
|
# -- Pod priority class name.
|
||||||
|
priorityClassName: ""
|
||||||
|
|
||||||
|
# -- Pod disruption budget - for more details see https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
|
||||||
|
podDisruptionBudget:
|
||||||
|
enabled: false
|
||||||
|
minAvailable: 1
|
||||||
|
# maxUnavailable: 1
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
# -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
|
||||||
|
enabled: false
|
||||||
|
service:
|
||||||
|
# -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
serviceMonitor:
|
||||||
|
# -- Specifies whether to create a ServiceMonitor resource for collecting Prometheus metrics
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Additional labels
|
||||||
|
additionalLabels: {}
|
||||||
|
|
||||||
|
# -- Interval to scrape metrics
|
||||||
|
interval: 30s
|
||||||
|
|
||||||
|
# -- Timeout if metrics can't be retrieved in given time interval
|
||||||
|
scrapeTimeout: 25s
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
service:
|
||||||
|
# -- Enable if you use another monitoring tool than Prometheus to scrape the metrics
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Metrics service port to scrape
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
# -- Additional service annotations
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
|
## -- Extra environment variables to add to container.
|
||||||
|
extraEnv: []
|
||||||
|
|
||||||
|
## -- Map of extra arguments to pass to container.
|
||||||
|
extraArgs: {}
|
||||||
|
|
||||||
|
|
||||||
|
## -- Extra volumes to pass to pod.
|
||||||
|
extraVolumes: []
|
||||||
|
|
||||||
|
## -- Extra volumes to mount to the container.
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|
||||||
|
# -- Annotations to add to Deployment
|
||||||
|
deploymentAnnotations: {}
|
||||||
|
|
||||||
|
# -- Annotations to add to Pod
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
podSecurityContext: {}
|
||||||
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
|
||||||
|
resources: {}
|
||||||
|
# requests:
|
||||||
|
# cpu: 10m
|
||||||
|
# memory: 32Mi
|
||||||
|
|
||||||
|
# -- Specifies `dnsOptions` to deployment
|
||||||
|
dnsConfig: {}
|
||||||
11
master/gatekeeper/Chart.yaml
Normal file
11
master/gatekeeper/Chart.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: gatekeeper
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: gatekeeper
|
||||||
|
repository: https://open-policy-agent.github.io/gatekeeper/charts
|
||||||
|
version: 3.17.1
|
||||||
278
master/gatekeeper/values.yaml
Normal file
278
master/gatekeeper/values.yaml
Normal file
@@ -0,0 +1,278 @@
|
|||||||
|
#gatekeeper:
|
||||||
|
# replicas: 3
|
||||||
|
# revisionHistoryLimit: 10
|
||||||
|
# auditInterval: 60
|
||||||
|
# metricsBackends: ["prometheus"]
|
||||||
|
# auditMatchKindOnly: false
|
||||||
|
# constraintViolationsLimit: 20
|
||||||
|
# auditFromCache: false
|
||||||
|
# disableMutation: false
|
||||||
|
# disableValidatingWebhook: false
|
||||||
|
# validatingWebhookName: gatekeeper-validating-webhook-configuration
|
||||||
|
# validatingWebhookTimeoutSeconds: 3
|
||||||
|
# validatingWebhookFailurePolicy: Ignore
|
||||||
|
# validatingWebhookAnnotations: {}
|
||||||
|
# validatingWebhookExemptNamespacesLabels: {}
|
||||||
|
# validatingWebhookObjectSelector: {}
|
||||||
|
# validatingWebhookCheckIgnoreFailurePolicy: Fail
|
||||||
|
# validatingWebhookCustomRules: {}
|
||||||
|
# validatingWebhookURL: null
|
||||||
|
# enableDeleteOperations: false
|
||||||
|
# enableExternalData: true
|
||||||
|
# enableGeneratorResourceExpansion: true
|
||||||
|
# enableTLSHealthcheck: false
|
||||||
|
# maxServingThreads: -1
|
||||||
|
# mutatingWebhookName: gatekeeper-mutating-webhook-configuration
|
||||||
|
# mutatingWebhookFailurePolicy: Ignore
|
||||||
|
# mutatingWebhookReinvocationPolicy: Never
|
||||||
|
# mutatingWebhookAnnotations: {}
|
||||||
|
# mutatingWebhookExemptNamespacesLabels: {}
|
||||||
|
# mutatingWebhookObjectSelector: {}
|
||||||
|
# mutatingWebhookTimeoutSeconds: 1
|
||||||
|
# mutatingWebhookCustomRules: {}
|
||||||
|
# mutatingWebhookURL: null
|
||||||
|
# mutationAnnotations: false
|
||||||
|
# auditChunkSize: 500
|
||||||
|
# logLevel: INFO
|
||||||
|
# logDenies: false
|
||||||
|
# logMutations: false
|
||||||
|
# emitAdmissionEvents: false
|
||||||
|
# emitAuditEvents: false
|
||||||
|
# admissionEventsInvolvedNamespace: false
|
||||||
|
# auditEventsInvolvedNamespace: false
|
||||||
|
# resourceQuota: true
|
||||||
|
# externaldataProviderResponseCacheTTL: 3m
|
||||||
|
# image:
|
||||||
|
# repository: openpolicyagent/gatekeeper
|
||||||
|
# crdRepository: openpolicyagent/gatekeeper-crds
|
||||||
|
# release: v3.15.0-beta.0
|
||||||
|
# pullPolicy: Always
|
||||||
|
# pullSecrets: []
|
||||||
|
# preInstall:
|
||||||
|
# crdRepository:
|
||||||
|
# image:
|
||||||
|
# repository: null
|
||||||
|
# tag: v3.15.0-beta.0
|
||||||
|
# postUpgrade:
|
||||||
|
# labelNamespace:
|
||||||
|
# enabled: false
|
||||||
|
# image:
|
||||||
|
# repository: openpolicyagent/gatekeeper-crds
|
||||||
|
# tag: v3.15.0-beta.0
|
||||||
|
# pullPolicy: IfNotPresent
|
||||||
|
# pullSecrets: []
|
||||||
|
# extraNamespaces: []
|
||||||
|
# podSecurity: ["pod-security.kubernetes.io/audit=restricted",
|
||||||
|
# "pod-security.kubernetes.io/audit-version=latest",
|
||||||
|
# "pod-security.kubernetes.io/warn=restricted",
|
||||||
|
# "pod-security.kubernetes.io/warn-version=latest",
|
||||||
|
# "pod-security.kubernetes.io/enforce=restricted",
|
||||||
|
# "pod-security.kubernetes.io/enforce-version=v1.24"]
|
||||||
|
# extraAnnotations: {}
|
||||||
|
# priorityClassName: ""
|
||||||
|
# affinity: {}
|
||||||
|
# tolerations: []
|
||||||
|
# nodeSelector: {kubernetes.io/os: linux}
|
||||||
|
# resources: {}
|
||||||
|
# securityContext:
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsGroup: 999
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# postInstall:
|
||||||
|
# labelNamespace:
|
||||||
|
# enabled: true
|
||||||
|
# extraRules: []
|
||||||
|
# image:
|
||||||
|
# repository: openpolicyagent/gatekeeper-crds
|
||||||
|
# tag: v3.15.0-beta.0
|
||||||
|
# pullPolicy: IfNotPresent
|
||||||
|
# pullSecrets: []
|
||||||
|
# extraNamespaces: []
|
||||||
|
# podSecurity: ["pod-security.kubernetes.io/audit=restricted",
|
||||||
|
# "pod-security.kubernetes.io/audit-version=latest",
|
||||||
|
# "pod-security.kubernetes.io/warn=restricted",
|
||||||
|
# "pod-security.kubernetes.io/warn-version=latest",
|
||||||
|
# "pod-security.kubernetes.io/enforce=restricted",
|
||||||
|
# "pod-security.kubernetes.io/enforce-version=v1.24"]
|
||||||
|
# extraAnnotations: {}
|
||||||
|
# priorityClassName: ""
|
||||||
|
# probeWebhook:
|
||||||
|
# enabled: true
|
||||||
|
# image:
|
||||||
|
# repository: curlimages/curl
|
||||||
|
# tag: 7.83.1
|
||||||
|
# pullPolicy: IfNotPresent
|
||||||
|
# pullSecrets: []
|
||||||
|
# waitTimeout: 60
|
||||||
|
# httpTimeout: 2
|
||||||
|
# insecureHTTPS: false
|
||||||
|
# priorityClassName: ""
|
||||||
|
# affinity: {}
|
||||||
|
# tolerations: []
|
||||||
|
# nodeSelector: {kubernetes.io/os: linux}
|
||||||
|
# securityContext:
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsGroup: 999
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# preUninstall:
|
||||||
|
# deleteWebhookConfigurations:
|
||||||
|
# extraRules: []
|
||||||
|
# enabled: false
|
||||||
|
# image:
|
||||||
|
# repository: openpolicyagent/gatekeeper-crds
|
||||||
|
# tag: v3.15.0-beta.0
|
||||||
|
# pullPolicy: IfNotPresent
|
||||||
|
# pullSecrets: []
|
||||||
|
# priorityClassName: ""
|
||||||
|
# affinity: {}
|
||||||
|
# tolerations: []
|
||||||
|
# nodeSelector: {kubernetes.io/os: linux}
|
||||||
|
# resources: {}
|
||||||
|
# securityContext:
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsGroup: 999
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# podAnnotations: {}
|
||||||
|
# auditPodAnnotations: {}
|
||||||
|
# podLabels: {}
|
||||||
|
# podCountLimit: "100"
|
||||||
|
# secretAnnotations: {}
|
||||||
|
# enableRuntimeDefaultSeccompProfile: true
|
||||||
|
# controllerManager:
|
||||||
|
# exemptNamespaces: []
|
||||||
|
# exemptNamespacePrefixes: []
|
||||||
|
# hostNetwork: false
|
||||||
|
# dnsPolicy: ClusterFirst
|
||||||
|
# port: 8443
|
||||||
|
# metricsPort: 8888
|
||||||
|
# healthPort: 9090
|
||||||
|
# readinessTimeout: 1
|
||||||
|
# livenessTimeout: 1
|
||||||
|
# priorityClassName: system-cluster-critical
|
||||||
|
# disableCertRotation: false
|
||||||
|
# tlsMinVersion: 1.3
|
||||||
|
# clientCertName: ""
|
||||||
|
# strategyType: RollingUpdate
|
||||||
|
# affinity:
|
||||||
|
# podAntiAffinity:
|
||||||
|
# preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
# - podAffinityTerm:
|
||||||
|
# labelSelector:
|
||||||
|
# matchExpressions:
|
||||||
|
# - key: gatekeeper.sh/operation
|
||||||
|
# operator: In
|
||||||
|
# values:
|
||||||
|
# - webhook
|
||||||
|
# topologyKey: kubernetes.io/hostname
|
||||||
|
# weight: 100
|
||||||
|
# topologySpreadConstraints: []
|
||||||
|
# tolerations: []
|
||||||
|
# nodeSelector: {kubernetes.io/os: linux}
|
||||||
|
# resources:
|
||||||
|
# limits:
|
||||||
|
# memory: 512Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 512Mi
|
||||||
|
# securityContext:
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsGroup: 999
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# podSecurityContext:
|
||||||
|
# fsGroup: 999
|
||||||
|
# supplementalGroups:
|
||||||
|
# - 999
|
||||||
|
# extraRules: []
|
||||||
|
# networkPolicy:
|
||||||
|
# enabled: false
|
||||||
|
# ingress: { }
|
||||||
|
# # - from:
|
||||||
|
# # - ipBlock:
|
||||||
|
# # cidr: 0.0.0.0/0
|
||||||
|
# audit:
|
||||||
|
# enablePubsub: false
|
||||||
|
# connection: audit-connection
|
||||||
|
# channel: audit-channel
|
||||||
|
# hostNetwork: false
|
||||||
|
# dnsPolicy: ClusterFirst
|
||||||
|
# metricsPort: 8888
|
||||||
|
# healthPort: 9090
|
||||||
|
# readinessTimeout: 1
|
||||||
|
# livenessTimeout: 1
|
||||||
|
# priorityClassName: system-cluster-critical
|
||||||
|
# disableCertRotation: false
|
||||||
|
# affinity: {}
|
||||||
|
# tolerations: []
|
||||||
|
# nodeSelector: {kubernetes.io/os: linux}
|
||||||
|
# resources:
|
||||||
|
# limits:
|
||||||
|
# memory: 512Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 512Mi
|
||||||
|
# securityContext:
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsGroup: 999
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# podSecurityContext:
|
||||||
|
# fsGroup: 999
|
||||||
|
# supplementalGroups:
|
||||||
|
# - 999
|
||||||
|
# writeToRAMDisk: false
|
||||||
|
# extraRules: []
|
||||||
|
# crds:
|
||||||
|
# affinity: {}
|
||||||
|
# tolerations: []
|
||||||
|
# nodeSelector: {kubernetes.io/os: linux}
|
||||||
|
# resources: {}
|
||||||
|
# securityContext:
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsGroup: 65532
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 65532
|
||||||
|
# pdb:
|
||||||
|
# controllerManager:
|
||||||
|
# minAvailable: 1
|
||||||
|
# service: {}
|
||||||
|
# disabledBuiltins: ["{http.send}"]
|
||||||
|
# psp:
|
||||||
|
# enabled: true
|
||||||
|
# upgradeCRDs:
|
||||||
|
# enabled: true
|
||||||
|
# extraRules: []
|
||||||
|
# priorityClassName: ""
|
||||||
|
# rbac:
|
||||||
|
# create: true
|
||||||
|
# externalCertInjection:
|
||||||
|
# enabled: false
|
||||||
|
# secretName: gatekeeper-webhook-server-cert
|
||||||
|
#
|
||||||
11
master/gitlab-runner/Chart.yaml
Normal file
11
master/gitlab-runner/Chart.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: gitlab-runner
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: gitlab-runner
|
||||||
|
repository: https://charts.gitlab.io/
|
||||||
|
version: 0.69.0
|
||||||
4
master/gitlab-runner/Dockerfile
Normal file
4
master/gitlab-runner/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
LABEL authors="user"
|
||||||
|
|
||||||
|
ENTRYPOINT ["top", "-b"]
|
||||||
19
master/gitlab-runner/templates/secrets.yaml
Normal file
19
master/gitlab-runner/templates/secrets.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: gitlab-secret
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: gitlab-secret
|
||||||
|
data:
|
||||||
|
- secretKey: runner-registration-token
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/gitlab/runner
|
||||||
|
property: runner-registration-token
|
||||||
|
- secretKey: runner-token
|
||||||
|
remoteRef:
|
||||||
|
key: secrets/gitlab/runner
|
||||||
|
property: runner-token
|
||||||
71
master/gitlab-runner/values.yaml
Normal file
71
master/gitlab-runner/values.yaml
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
gitlab-runner:
|
||||||
|
|
||||||
|
image:
|
||||||
|
registry: registry.internal.durp.info
|
||||||
|
image: gitlab-org/gitlab-runner
|
||||||
|
|
||||||
|
imagePullPolicy: Always
|
||||||
|
gitlabUrl: https://gitlab.com/
|
||||||
|
unregisterRunner: true
|
||||||
|
terminationGracePeriodSeconds: 3600
|
||||||
|
concurrent: 10
|
||||||
|
checkInterval: 30
|
||||||
|
|
||||||
|
rbac:
|
||||||
|
create: true
|
||||||
|
rules: []
|
||||||
|
clusterWideAccess: false
|
||||||
|
podSecurityPolicy:
|
||||||
|
enabled: false
|
||||||
|
resourceNames:
|
||||||
|
- gitlab-runner
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
|
runners:
|
||||||
|
config: |
|
||||||
|
[[runners]]
|
||||||
|
[runners.kubernetes]
|
||||||
|
namespace = "{{.Release.Namespace}}"
|
||||||
|
image = "ubuntu:22.04"
|
||||||
|
privileged = true
|
||||||
|
|
||||||
|
executor: kubernetes
|
||||||
|
name: "k3s"
|
||||||
|
runUntagged: true
|
||||||
|
privileged: true
|
||||||
|
secret: gitlab-secret
|
||||||
|
#builds:
|
||||||
|
#cpuLimit: 200m
|
||||||
|
#cpuLimitOverwriteMaxAllowed: 400m
|
||||||
|
#memoryLimit: 256Mi
|
||||||
|
#memoryLimitOverwriteMaxAllowed: 512Mi
|
||||||
|
#cpuRequests: 100m
|
||||||
|
#cpuRequestsOverwriteMaxAllowed: 200m
|
||||||
|
#memoryRequests: 128Mi
|
||||||
|
#memoryRequestsOverwriteMaxAllowed: 256Mi
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsNonRoot: true
|
||||||
|
privileged: false
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsUser: 100
|
||||||
|
fsGroup: 65533
|
||||||
|
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 500m
|
||||||
11
master/heimdall/Chart.yaml
Normal file
11
master/heimdall/Chart.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: heimdall
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: 0.0.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: heimdall
|
||||||
|
repository: https://djjudas21.github.io/charts/
|
||||||
|
version: 8.5.4
|
||||||
52
master/heimdall/templates/ingress.yaml
Normal file
52
master/heimdall/templates/ingress.yaml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
name: heimdall-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`heimdall.durp.info`) && PathPrefix(`/`)
|
||||||
|
middlewares:
|
||||||
|
- name: authentik-proxy-provider
|
||||||
|
namespace: traefik
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: heimdall
|
||||||
|
port: 80
|
||||||
|
- match: Host(`heimdall.durp.info`) && PathPrefix(`/outpost.goauthentik.io`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: ak-outpost-authentik-embedded-outpost
|
||||||
|
namespace: authentik
|
||||||
|
port: 9000
|
||||||
|
tls:
|
||||||
|
secretName: heimdall-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: heimdall-tls
|
||||||
|
spec:
|
||||||
|
secretName: heimdall-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "heimdall.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "heimdall.durp.info"
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: heimdall-external-dns
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: heimdall.durp.info
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName: durp.info
|
||||||
28
master/heimdall/values.yaml
Normal file
28
master/heimdall/values.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
heimdall:
|
||||||
|
|
||||||
|
image:
|
||||||
|
registry:
|
||||||
|
repository: registry.internal.durp.info/linuxserver/heimdall
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
|
env:
|
||||||
|
TZ: UTC
|
||||||
|
PUID: "1000"
|
||||||
|
PGID: "1000"
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: heimdall.durp.info
|
||||||
|
external-dns.alpha.kubernetes.io/target: home.durp.info
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
main:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
7
master/internalproxy/Chart.yaml
Normal file
7
master/internalproxy/Chart.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: internalproxy
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "0.1.0"
|
||||||
46
master/internalproxy/templates/argocd.yaml
Normal file
46
master/internalproxy/templates/argocd.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
#apiVersion: traefik.io/v1alpha1
|
||||||
|
#kind: IngressRoute
|
||||||
|
#metadata:
|
||||||
|
# name: argocd-ingress
|
||||||
|
# annotations:
|
||||||
|
# cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
|
#spec:
|
||||||
|
# entryPoints:
|
||||||
|
# - websecure
|
||||||
|
# routes:
|
||||||
|
# - match: Host(`argocd.internal.durp.info`)
|
||||||
|
# middlewares:
|
||||||
|
# - name: whitelist
|
||||||
|
# namespace: traefik
|
||||||
|
# kind: Rule
|
||||||
|
# services:
|
||||||
|
# - name: argocd-server
|
||||||
|
# port: 443
|
||||||
|
# scheme: https
|
||||||
|
# tls:
|
||||||
|
# secretName: argocd-tls
|
||||||
|
#
|
||||||
|
#---
|
||||||
|
#
|
||||||
|
#kind: Service
|
||||||
|
#apiVersion: v1
|
||||||
|
#metadata:
|
||||||
|
# name: argocd-server
|
||||||
|
#spec:
|
||||||
|
# type: ExternalName
|
||||||
|
# externalName: argocd-server.argocd.svc.cluster.local
|
||||||
|
#
|
||||||
|
#---
|
||||||
|
#
|
||||||
|
#apiVersion: cert-manager.io/v1
|
||||||
|
#kind: Certificate
|
||||||
|
#metadata:
|
||||||
|
# name: argocd-tls
|
||||||
|
#spec:
|
||||||
|
# secretName: argocd-tls
|
||||||
|
# issuerRef:
|
||||||
|
# name: letsencrypt-production
|
||||||
|
# kind: ClusterIssuer
|
||||||
|
# commonName: "argocd.internal.durp.info"
|
||||||
|
# dnsNames:
|
||||||
|
# - "argocd.internal.durp.info"
|
||||||
63
master/internalproxy/templates/blueiris.yaml
Normal file
63
master/internalproxy/templates/blueiris.yaml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: blueiris
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 81
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 81
|
||||||
|
clusterIP: None
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: blueiris
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 192.168.99.2
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 81
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: blueiris-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`blueiris.internal.durp.info`) && PathPrefix(`/`)
|
||||||
|
middlewares:
|
||||||
|
- name: whitelist
|
||||||
|
namespace: traefik
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: blueiris
|
||||||
|
port: 81
|
||||||
|
scheme: http
|
||||||
|
tls:
|
||||||
|
secretName: blueiris-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: blueiris-tls
|
||||||
|
spec:
|
||||||
|
secretName: blueiris-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "blueiris.internal.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "blueiris.internal.durp.info"
|
||||||
70
master/internalproxy/templates/duplicati-ingress.yaml
Normal file
70
master/internalproxy/templates/duplicati-ingress.yaml
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: duplicati
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 8200
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8200
|
||||||
|
clusterIP: None
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: duplicati
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 192.168.20.253
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 8200
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: duplicati-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`duplicati.internal.durp.info`) && PathPrefix(`/`)
|
||||||
|
middlewares:
|
||||||
|
- name: whitelist
|
||||||
|
namespace: traefik
|
||||||
|
- name: authentik-proxy-provider
|
||||||
|
namespace: traefik
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: duplicati
|
||||||
|
port: 8200
|
||||||
|
- match: Host(`duplicati.internal.durp.info`) && PathPrefix(`/outpost.goauthentik.io`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: ak-outpost-authentik-embedded-outpost
|
||||||
|
namespace: authentik
|
||||||
|
port: 9000
|
||||||
|
tls:
|
||||||
|
secretName: duplicati-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: duplicati-tls
|
||||||
|
spec:
|
||||||
|
secretName: duplicati-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "duplicati.internal.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "duplicati.internal.durp.info"
|
||||||
72
master/internalproxy/templates/gitea.yaml
Normal file
72
master/internalproxy/templates/gitea.yaml
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: gitea
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 3000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 3000
|
||||||
|
clusterIP: None
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: gitea
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 192.168.20.253
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 3000
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: gitea-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`gitea.durp.info`) && PathPrefix(`/`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: gitea
|
||||||
|
port: 3000
|
||||||
|
scheme: http
|
||||||
|
tls:
|
||||||
|
secretName: gitea-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: gitea-tls
|
||||||
|
spec:
|
||||||
|
secretName: gitea-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "gitea.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "gitea.durp.info"
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: gitea-external-dns
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: gitea.durp.info
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName: durp.info
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user