Compare commits
10
Commits
7467e34b4c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98081ed54c | ||
|
|
e22907125d | ||
|
|
658296205f | ||
|
|
a2536f4a3a | ||
|
|
ba022ddccc | ||
|
|
ed9f485b88 | ||
|
|
6dbe8beefd | ||
|
|
02b375d7e6 | ||
|
|
e4346af5ba | ||
|
|
49ee2a29f5 |
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
name: ghcr-pull
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
.dockerconfigjson: AgCRsZSHP+T0U4pLck8AJ++dCb47OklXOgediZXPUSENy2/W/o4ooDgr+vP9GmSMoSm/5FBahmiSF8WYth0TYL4bdTKMQfnFO4kAOxk5QXuyyaKL+ZxL3XFfKRUeVD4m+HFJrvUsHC36TeJy0SYwkaS5isWdNTPFPdNRhXQ9OiTKQlL2tPZgOzk48CH5wDCugI3uC6/1tuzoeNzbIWRFpbkDtwhdGBqnZIiZZhOliXBV5wGnEcPKpxBnE21PNBsr2A8/lisuTsmcsyZDj3uenLjcdITdTs57sss8HPEI9u+cIuNFCZVO/URtJEV1k24oEr3CAPJojic6vT6jS0Ow9H3VEJpEObAN4E02+yC/gZjkLOBSO9aq77SzVRJpTxmcuW4s2U91hegYzS33H0jBCB1EJ5y/rYZUFrdBQnr16gENbMo8HuYf0jnogDvyGjd4Kf4HWDl97yiOv2xdm7Jb3MBrgyCQSw2uU4QpvgwGpTCo8j3LrfqQjBZRyTn/HplLO+zGkQKcqsNosZ0a+fm990gDWEgBuNjf/2iVLsYMJrz8da3Fu4k2TTtzxtAZ0eFJbxa97CRC3d/4nx/vS/S3zTzoXhp2XHdlG3RfurrKKtxeretRlTtbTM8CjahMB0/oLgBKSaNs5gEtvaATKe8jBfAw+WHxCFJC+0Jxj8IfDq0KWv2I1OO2r+7TK+o2Ed/7SucJQd4e4NQJfWQW/xiq4RL3StJdO3WXcICloslTMtE9EaZn/w/dx98bLRus9mrkom+tPSHw63tHPn6C4B75Ya8qA5LSBylMEZXg8CG5xfqmR3C0F/c4XCYerfbzNg88AIw2VBsAgW6aySCkZCa9rkaCx5AyzblCVQxGZ+PpR0RdaBkuT2hXoWHBZZu9Dmhk6Qr1HyqCBaV2DmsYFcYB+pfHUKzT0BAWO7BdbiLFil0V779JZw==
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: ghcr-pull
|
||||||
|
namespace: argocd
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ghcr-sealedsecret.yaml
|
||||||
|
- pixelos-applications.yaml
|
||||||
|
- redoost.yaml
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: argocd-image-updater.argoproj.io/v1alpha1
|
||||||
|
kind: ImageUpdater
|
||||||
|
metadata:
|
||||||
|
name: pixelos-applications
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
spec:
|
||||||
|
applicationRefs:
|
||||||
|
- namePattern: pixelos-applications
|
||||||
|
images:
|
||||||
|
- alias: app
|
||||||
|
imageName: ghcr.io/pixelos-ci/applications:latest
|
||||||
|
commonUpdateSettings:
|
||||||
|
updateStrategy: digest
|
||||||
|
pullSecret: pullsecret:argocd/ghcr-pull
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: argocd-image-updater.argoproj.io/v1alpha1
|
||||||
|
kind: ImageUpdater
|
||||||
|
metadata:
|
||||||
|
name: redoost
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
spec:
|
||||||
|
applicationRefs:
|
||||||
|
- namePattern: redoost
|
||||||
|
images:
|
||||||
|
- alias: api
|
||||||
|
imageName: ghcr.io/whyredfire/redoost-api:latest
|
||||||
|
commonUpdateSettings:
|
||||||
|
updateStrategy: digest
|
||||||
|
manifestTargets:
|
||||||
|
helm:
|
||||||
|
name: api.image.repository
|
||||||
|
tag: api.image.tag
|
||||||
|
- alias: frontend
|
||||||
|
imageName: ghcr.io/whyredfire/redoost-frontend:latest
|
||||||
|
commonUpdateSettings:
|
||||||
|
updateStrategy: digest
|
||||||
|
manifestTargets:
|
||||||
|
helm:
|
||||||
|
name: frontend.image.repository
|
||||||
|
tag: frontend.image.tag
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: blueprint-jellyfin-ldap
|
||||||
|
namespace: authentik
|
||||||
|
data:
|
||||||
|
jellyfin-ldap.yaml: |
|
||||||
|
version: 1
|
||||||
|
metadata:
|
||||||
|
name: Jellyfin LDAP
|
||||||
|
entries:
|
||||||
|
- model: authentik_stages_password.passwordstage
|
||||||
|
id: ldap-password
|
||||||
|
identifiers:
|
||||||
|
name: ldap-authentication-password
|
||||||
|
attrs:
|
||||||
|
backends:
|
||||||
|
- authentik.core.auth.InbuiltBackend
|
||||||
|
- authentik.core.auth.TokenBackend
|
||||||
|
- model: authentik_stages_identification.identificationstage
|
||||||
|
id: ldap-identification
|
||||||
|
identifiers:
|
||||||
|
name: ldap-authentication-identification
|
||||||
|
attrs:
|
||||||
|
user_fields:
|
||||||
|
- username
|
||||||
|
password_stage: !KeyOf ldap-password
|
||||||
|
- model: authentik_stages_user_login.userloginstage
|
||||||
|
id: ldap-login
|
||||||
|
identifiers:
|
||||||
|
name: ldap-authentication-login
|
||||||
|
- model: authentik_flows.flow
|
||||||
|
id: ldap-flow
|
||||||
|
identifiers:
|
||||||
|
slug: ldap-authentication
|
||||||
|
attrs:
|
||||||
|
designation: authentication
|
||||||
|
name: LDAP bind
|
||||||
|
title: LDAP bind
|
||||||
|
- model: authentik_flows.flowstagebinding
|
||||||
|
identifiers:
|
||||||
|
order: 10
|
||||||
|
stage: !KeyOf ldap-identification
|
||||||
|
target: !KeyOf ldap-flow
|
||||||
|
- model: authentik_flows.flowstagebinding
|
||||||
|
identifiers:
|
||||||
|
order: 30
|
||||||
|
stage: !KeyOf ldap-login
|
||||||
|
target: !KeyOf ldap-flow
|
||||||
|
- model: authentik_core.user
|
||||||
|
id: ldap-jellyfin
|
||||||
|
identifiers:
|
||||||
|
username: ldap-jellyfin
|
||||||
|
attrs:
|
||||||
|
name: Jellyfin LDAP bind
|
||||||
|
password: !Env JELLYFIN_LDAP_PASSWORD
|
||||||
|
- model: authentik_providers_ldap.ldapprovider
|
||||||
|
id: jellyfin-ldap-provider
|
||||||
|
identifiers:
|
||||||
|
name: jellyfin-ldap
|
||||||
|
attrs:
|
||||||
|
authorization_flow: !KeyOf ldap-flow
|
||||||
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-invalidation-flow]]
|
||||||
|
base_dn: dc=ldap,dc=goauthentik,dc=io
|
||||||
|
certificate: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
||||||
|
bind_mode: direct
|
||||||
|
search_mode: direct
|
||||||
|
mfa_support: false # else ";" in a password is read as a TOTP separator
|
||||||
|
permissions:
|
||||||
|
- permission: authentik_providers_ldap.search_full_directory
|
||||||
|
user: !KeyOf ldap-jellyfin
|
||||||
|
- model: authentik_core.application
|
||||||
|
id: jellyfin-ldap
|
||||||
|
identifiers:
|
||||||
|
slug: jellyfin-ldap
|
||||||
|
attrs:
|
||||||
|
name: Jellyfin LDAP
|
||||||
|
provider: !KeyOf jellyfin-ldap-provider
|
||||||
|
policy_engine_mode: any
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
identifiers:
|
||||||
|
order: 0
|
||||||
|
target: !KeyOf jellyfin-ldap
|
||||||
|
attrs:
|
||||||
|
group: !Find [authentik_core.group, [name, admins]]
|
||||||
|
- model: authentik_policies.policybinding
|
||||||
|
identifiers:
|
||||||
|
order: 10
|
||||||
|
target: !KeyOf jellyfin-ldap
|
||||||
|
attrs:
|
||||||
|
user: !KeyOf ldap-jellyfin
|
||||||
|
- model: authentik_outposts.outpost
|
||||||
|
identifiers:
|
||||||
|
name: ldap
|
||||||
|
attrs:
|
||||||
|
type: ldap
|
||||||
|
service_connection: !Find [authentik_outposts.kubernetesserviceconnection, [name, Local Kubernetes Cluster]]
|
||||||
|
providers:
|
||||||
|
- !KeyOf jellyfin-ldap-provider
|
||||||
|
config:
|
||||||
|
authentik_host: http://authentik-server.authentik.svc.cluster.local
|
||||||
|
- model: authentik_core.user
|
||||||
|
identifiers:
|
||||||
|
username: whyredfire
|
||||||
|
attrs:
|
||||||
|
attributes:
|
||||||
|
jellyfinUsername: karan
|
||||||
|
- model: authentik_core.token
|
||||||
|
identifiers:
|
||||||
|
identifier: jellyfin-whyredfire
|
||||||
|
attrs:
|
||||||
|
user: !Find [authentik_core.user, [username, whyredfire]]
|
||||||
|
intent: app_password
|
||||||
|
key: !Env JELLYFIN_APP_PASSWORD
|
||||||
|
expiring: false
|
||||||
|
description: Jellyfin
|
||||||
@@ -6,9 +6,11 @@ resources:
|
|||||||
- blueprint-garage-ui.yaml
|
- blueprint-garage-ui.yaml
|
||||||
- blueprint-google-login.yaml
|
- blueprint-google-login.yaml
|
||||||
- blueprint-grafana.yaml
|
- blueprint-grafana.yaml
|
||||||
|
- blueprint-jellyfin-ldap.yaml
|
||||||
- blueprint-outpost.yaml
|
- blueprint-outpost.yaml
|
||||||
- blueprint-pgweb.yaml
|
- blueprint-pgweb.yaml
|
||||||
- blueprint-qbittorrent.yaml
|
- blueprint-qbittorrent.yaml
|
||||||
- blueprint-wireguard-admin.yaml
|
- blueprint-wireguard-admin.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
- referencegrant.yaml
|
- referencegrant.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
namespace: authentik
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- podSelector: {}
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 5432
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: postgres
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
cnpg.io/cluster: postgres
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- podSelector: {}
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 9000
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: authentik
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -12,6 +12,8 @@ spec:
|
|||||||
GOOGLE_CLIENT_ID: AgDOTuDt2E53pPy4ZL+VC6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5Sqz+lguHOIAs1jOaxA1NGjQJADo0+w5prtUhuB57nNHQrOLFzZyJqHr59ENYjsrz6jmroCuffbjyI0aKsCn/82oWfJzoSKvMGI9PnS9CzoGC+mKu2FWvDvdTvultGy0lk4m6pvNQIxUz+PPNUeagS43e6xiGgHKKaBZf0r5cWqFtbSrYl8hn0Fw7u3A0c+7N5/lx2//icrwFfajvF1Rguay1vvhKn1Wl9OSvo9F+Prtm85r4Gu4qsds42TpmTMr7d+fsL4hftGZg4KUdpqAca02uTURkS+3RiSYmTL/D9RrNy34oGuq8KkW4feLfHOub92J7GK/6febePsdyuTE6NCaikWekTPUEtmJAKMgRfZWkc2fL81pLT2QrMq/9DwTelrTLrAA8rtxT5TkN0aIfF+Gn3n1fOhTjYAqzMeKKRyrhODF8D+MKsi3knau2SFPDAJaXTvgInHImqtIL2RBtzv6DvIP8bUkaFLlMiOz0y5tcegzFcsp9HCQ8YjwQcJJb3tavZLe/VWJqOPrRP1+ti
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- networkpolicy.yaml
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: cnpg
|
||||||
|
namespace: cnpg-system
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- ports:
|
||||||
|
- port: 8000
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector: {}
|
||||||
|
podSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: cnpg.io/cluster
|
||||||
|
operator: Exists
|
||||||
|
ingress:
|
||||||
|
- ports:
|
||||||
|
- port: 9443
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: cloudnative-pg
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -9,3 +9,4 @@ resources:
|
|||||||
- pgweb-db-sealedsecret.yaml
|
- pgweb-db-sealedsecret.yaml
|
||||||
- redoost-db-sealedsecret.yaml
|
- redoost-db-sealedsecret.yaml
|
||||||
- redoost-database.yaml
|
- redoost-database.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
namespace: postgres
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- to:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
cnpg.io/cluster: postgres
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
cnpg.io/cluster: postgres
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: cnpg-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: cloudnative-pg
|
||||||
|
ports:
|
||||||
|
- port: 8000
|
||||||
|
protocol: TCP
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: authentik
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: authentik
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: monitoring
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: grafana
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: pgweb
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: pgweb
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: redoost
|
||||||
|
ports:
|
||||||
|
- port: 5432
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
cnpg.io/cluster: postgres
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -3,3 +3,5 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- wildcard-whyredfire-dev.yaml
|
- wildcard-whyredfire-dev.yaml
|
||||||
- wildcard-whyredfire-dpdns-org.yaml
|
- wildcard-whyredfire-dpdns-org.yaml
|
||||||
|
- wildcard-pixelos-net.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
namespace: traefik
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- to:
|
||||||
|
- namespaceSelector: {}
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
ports:
|
||||||
|
- port: 8000
|
||||||
|
protocol: TCP
|
||||||
|
- port: 8443
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: traefik
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: wildcard-pixelos-net
|
||||||
|
namespace: traefik
|
||||||
|
spec:
|
||||||
|
dnsNames:
|
||||||
|
- '*.pixelos.net'
|
||||||
|
issuerRef:
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: letsencrypt-prod
|
||||||
|
privateKey:
|
||||||
|
rotationPolicy: Always
|
||||||
|
secretName: wildcard-pixelos-net
|
||||||
@@ -4,3 +4,4 @@ resources:
|
|||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: bentopdf
|
||||||
|
namespace: bentopdf
|
||||||
|
spec:
|
||||||
|
egress: []
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: bentopdf
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -4,3 +4,4 @@ resources:
|
|||||||
- sealed-secret.yaml
|
- sealed-secret.yaml
|
||||||
- middleware.yaml
|
- middleware.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: garage-ui
|
||||||
|
namespace: garage
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 3903
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: garage
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: garage-ui
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -4,3 +4,4 @@ resources:
|
|||||||
- httproute-s3.yaml
|
- httproute-s3.yaml
|
||||||
- sealed-secret.yaml
|
- sealed-secret.yaml
|
||||||
- service-admin.yaml
|
- service-admin.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: garage
|
||||||
|
namespace: garage
|
||||||
|
spec:
|
||||||
|
egress: []
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: redoost
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: monitoring
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: loki
|
||||||
|
ports:
|
||||||
|
- port: 3900
|
||||||
|
protocol: TCP
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: redoost
|
||||||
|
ports:
|
||||||
|
- port: 3902
|
||||||
|
protocol: TCP
|
||||||
|
- from:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: garage-ui
|
||||||
|
ports:
|
||||||
|
- port: 3903
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: garage
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: holyarrs
|
||||||
|
namespace: holyarrs
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: holyarrs
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: holyarrs
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: TZ
|
||||||
|
value: Etc/UTC
|
||||||
|
- name: HOLYARRS_ALLOWED_HOSTS
|
||||||
|
value: holyarrs.whyredfire.dev
|
||||||
|
# Traefik's pods
|
||||||
|
- name: HOLYARRS_TRUSTED_PROXIES
|
||||||
|
value: 10.42.0.0/16
|
||||||
|
image: holyarrs/holyarrs:1.0.9@sha256:3d941aa8a78d4474cc016a0d994b2531aa8692015aaad487cbdee136e8dd4226
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 30
|
||||||
|
name: holyarrs
|
||||||
|
ports:
|
||||||
|
- containerPort: 6262
|
||||||
|
name: http
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 1000m
|
||||||
|
memory: 1Gi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 192Mi
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /config
|
||||||
|
name: config
|
||||||
|
# Same path as Jellyfin; one mount so imports hardlink instead of copy
|
||||||
|
- mountPath: /media
|
||||||
|
name: media
|
||||||
|
# Owner of /srv/media, same as qBittorrent
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: holyarrs-config
|
||||||
|
- hostPath:
|
||||||
|
path: /srv/media
|
||||||
|
name: media
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "2"
|
||||||
|
name: holyarrs
|
||||||
|
namespace: holyarrs
|
||||||
|
spec:
|
||||||
|
hostnames:
|
||||||
|
- holyarrs.whyredfire.dev
|
||||||
|
parentRefs:
|
||||||
|
- kind: Gateway
|
||||||
|
name: traefik-gateway
|
||||||
|
namespace: traefik
|
||||||
|
sectionName: websecure
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: holyarrs
|
||||||
|
port: 6262
|
||||||
|
matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- httproute.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: holyarrs
|
||||||
|
namespace: holyarrs
|
||||||
|
spec:
|
||||||
|
# Metadata and indexers are on the internet; in the cluster it only talks
|
||||||
|
# to Jellyfin and qBittorrent
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 8096
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: jellyfin
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: jellyfin
|
||||||
|
- ports:
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: qbit
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 6262
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: holyarrs
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: holyarrs-config
|
||||||
|
namespace: holyarrs
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: holyarrs
|
||||||
|
namespace: holyarrs
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 6262
|
||||||
|
targetPort: http
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: holyarrs
|
||||||
@@ -3,3 +3,5 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- httproute-local.yaml
|
- httproute-local.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- networkpolicy-holyarrs.yaml
|
||||||
|
- networkpolicy-ldap.yaml
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# Lets HolyArrs ask Jellyfin to rescan after imports and sign people in.
|
||||||
|
# Adds to the chart's policy, which only admits traefik.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-from-holyarrs
|
||||||
|
namespace: jellyfin
|
||||||
|
spec:
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: holyarrs
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: holyarrs
|
||||||
|
ports:
|
||||||
|
- port: 8096
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: jellyfin
|
||||||
|
app.kubernetes.io/instance: jellyfin
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# Lets Jellyfin's LDAP plugin reach authentik's LDAP outpost (LDAPS).
|
||||||
|
# Adds to the chart's policy, which keeps Jellyfin off the cluster network.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-to-ldap
|
||||||
|
namespace: jellyfin
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 6636
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: authentik
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
goauthentik.io/outpost-name: ldap
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: jellyfin
|
||||||
|
app.kubernetes.io/instance: jellyfin
|
||||||
|
policyTypes:
|
||||||
|
- Egress
|
||||||
@@ -7,3 +7,4 @@ resources:
|
|||||||
- service.yaml
|
- service.yaml
|
||||||
- middleware.yaml
|
- middleware.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
namespace: qbit
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
# HolyArrs sends releases and follows downloads through the Web API
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: holyarrs
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: holyarrs
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -5,3 +5,4 @@ resources:
|
|||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: rustbin
|
||||||
|
namespace: rustbin
|
||||||
|
spec:
|
||||||
|
egress: []
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: rustbin
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -7,3 +7,4 @@ resources:
|
|||||||
- service.yaml
|
- service.yaml
|
||||||
- service-admin.yaml
|
- service-admin.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: wireguard
|
||||||
|
namespace: wireguard
|
||||||
|
spec:
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 8000
|
||||||
|
protocol: TCP
|
||||||
|
- port: 8443
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: traefik
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 192.168.2.0/24
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
ports:
|
||||||
|
- port: 27299
|
||||||
|
protocol: UDP
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
ports:
|
||||||
|
- port: 51821
|
||||||
|
protocol: TCP
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: wireguard
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
- Egress
|
||||||
@@ -15,6 +15,33 @@ spec:
|
|||||||
chart: alloy
|
chart: alloy
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
|
# Discovers pods through the API and pushes their logs to Loki
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
ingress: []
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- ports:
|
||||||
|
- port: 3100
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: loki
|
||||||
alloy:
|
alloy:
|
||||||
configMap:
|
configMap:
|
||||||
content: |
|
content: |
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/client-side-apply-migration-manager: argocd-controller
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
name: argocd-image-updater
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: argocd
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- chart: argocd-image-updater
|
||||||
|
repoURL: https://argoproj.github.io/argo-helm
|
||||||
|
targetRevision: 1.4.0
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 256Mi
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 64Mi
|
||||||
|
- path: add-ons/argocd-image-updater
|
||||||
|
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||||
|
targetRevision: main
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- ServerSideApply=true
|
||||||
@@ -32,6 +32,7 @@ spec:
|
|||||||
- blueprint-garage-ui
|
- blueprint-garage-ui
|
||||||
- blueprint-google-login
|
- blueprint-google-login
|
||||||
- blueprint-grafana
|
- blueprint-grafana
|
||||||
|
- blueprint-jellyfin-ldap
|
||||||
- blueprint-outpost
|
- blueprint-outpost
|
||||||
- blueprint-pgweb
|
- blueprint-pgweb
|
||||||
- blueprint-qbittorrent
|
- blueprint-qbittorrent
|
||||||
|
|||||||
@@ -29,7 +29,18 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
# The chart's egress fits the controller: ACME and Cloudflare on 443,
|
||||||
|
# DNS-01 propagation checks on 53, and the API on 6443
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
cainjector:
|
cainjector:
|
||||||
|
# Only talks to the API
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
@@ -38,6 +49,13 @@ spec:
|
|||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
webhook:
|
webhook:
|
||||||
|
# Only talks to the API
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
|
|||||||
@@ -11,22 +11,25 @@ spec:
|
|||||||
namespace: cnpg-system
|
namespace: cnpg-system
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
project: default
|
project: default
|
||||||
source:
|
sources:
|
||||||
chart: cloudnative-pg
|
- chart: cloudnative-pg
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
config:
|
config:
|
||||||
clusterWide: true
|
clusterWide: true
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
repoURL: https://cloudnative-pg.github.io/charts
|
repoURL: https://cloudnative-pg.github.io/charts
|
||||||
targetRevision: 0.29.1
|
targetRevision: 0.29.1
|
||||||
|
- path: add-ons/cnpg
|
||||||
|
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||||
|
targetRevision: main
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ spec:
|
|||||||
kubeStateMetrics:
|
kubeStateMetrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
prometheusOperator:
|
prometheusOperator:
|
||||||
|
# The chart's policy only limits ingress to the webhook; egress stays open
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
admissionWebhooks:
|
admissionWebhooks:
|
||||||
certManager:
|
certManager:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -96,6 +99,38 @@ spec:
|
|||||||
cpu: 20m
|
cpu: 20m
|
||||||
memory: 32Mi
|
memory: 32Mi
|
||||||
prometheus:
|
prometheus:
|
||||||
|
# Only Grafana queries it; it scrapes the kubelet and node-exporter on the
|
||||||
|
# node, matched by port so no node IP is needed
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: grafana
|
||||||
|
ports:
|
||||||
|
- port: 9090
|
||||||
|
protocol: TCP
|
||||||
|
egress:
|
||||||
|
- ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
- ports:
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- port: 9100
|
||||||
|
protocol: TCP
|
||||||
|
- port: 10250
|
||||||
|
protocol: TCP
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
selfMonitor: false
|
selfMonitor: false
|
||||||
prometheusSpec:
|
prometheusSpec:
|
||||||
@@ -124,6 +159,27 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: 50Gi
|
storage: 50Gi
|
||||||
grafana:
|
grafana:
|
||||||
|
# The chart takes one list of egress ports for every destination: OIDC
|
||||||
|
# on 443, Loki, Postgres, the API for the sidecars, and Prometheus
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
allowExternal: false
|
||||||
|
explicitNamespacesSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
egress:
|
||||||
|
enabled: true
|
||||||
|
ports:
|
||||||
|
- port: 443
|
||||||
|
protocol: TCP
|
||||||
|
- port: 3100
|
||||||
|
protocol: TCP
|
||||||
|
- port: 5432
|
||||||
|
protocol: TCP
|
||||||
|
- port: 6443
|
||||||
|
protocol: TCP
|
||||||
|
- port: 9090
|
||||||
|
protocol: TCP
|
||||||
admin:
|
admin:
|
||||||
existingSecret: grafana-admin
|
existingSecret: grafana-admin
|
||||||
additionalDataSources:
|
additionalDataSources:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- alloy.yaml
|
- alloy.yaml
|
||||||
- argocd-dashboard.yaml
|
- argocd-dashboard.yaml
|
||||||
|
- argocd-image-updater.yaml
|
||||||
- authentik.yaml
|
- authentik.yaml
|
||||||
- cert-manager.yaml
|
- cert-manager.yaml
|
||||||
- cnpg.yaml
|
- cnpg.yaml
|
||||||
|
|||||||
@@ -15,6 +15,15 @@ spec:
|
|||||||
- chart: loki
|
- chart: loki
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
|
# Garage on 3900; the rules sidecar watches the API, which only the
|
||||||
|
# discovery port can allow
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
externalStorage:
|
||||||
|
ports:
|
||||||
|
- 3900
|
||||||
|
discovery:
|
||||||
|
port: 6443
|
||||||
loki:
|
loki:
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
commonConfig:
|
commonConfig:
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
keyrenewperiod: "0"
|
keyrenewperiod: "0"
|
||||||
|
# The API is reached by port alone, so the policy doesn't depend on the node's IP
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
egress:
|
||||||
|
enabled: true
|
||||||
|
kubeapiCidr: 0.0.0.0/0
|
||||||
|
kubeapiPort: 6443
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ spec:
|
|||||||
- chart: traefik
|
- chart: traefik
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
|
# The network policy allows no internet egress
|
||||||
|
global:
|
||||||
|
checkNewVersion: false
|
||||||
# Query strings are dropped, as OAuth callbacks carry codes.
|
# Query strings are dropped, as OAuth callbacks carry codes.
|
||||||
accessLog:
|
accessLog:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -61,6 +64,17 @@ spec:
|
|||||||
- kind: Secret
|
- kind: Secret
|
||||||
name: wildcard-whyredfire-dpdns-org
|
name: wildcard-whyredfire-dpdns-org
|
||||||
group: ""
|
group: ""
|
||||||
|
websecure-pixelos:
|
||||||
|
port: 8443
|
||||||
|
protocol: HTTPS
|
||||||
|
mode: Terminate
|
||||||
|
hostname: "*.pixelos.net"
|
||||||
|
namespacePolicy:
|
||||||
|
from: All
|
||||||
|
certificateRefs:
|
||||||
|
- kind: Secret
|
||||||
|
name: wildcard-pixelos-net
|
||||||
|
group: ""
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 1000m
|
cpu: 1000m
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
name: applications-repo
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
sshPrivateKey: AgDIXYZfl1u4KR4YgGx8XHpiM1MXnvv39MJV07StKwk2LCsCamL31HDzaA34L5VV5wsnLEgx1CR7i9WMEd6lUyuQWG4YGI4JUgcYV8clMpu/Ih64io2rWs7TTLs1FUqrkLvGwx6aCVFYNQMOnDpY5+RJ63WC8JTM/z0rr16F/47d1BKrW0WVaEZcyy+AT1wG8Y+R7qNDxqND9W7X3+sQfBP+nI2WiTplDe3vbk6WTolKpofME+x6u70j2JpP2rfIhnttNv88qiM9CNssHqxQ4TlH1BNrI2SdnLwX6bWLvCqVKrj8TAh18yZzrkYy1wwI+4ZKCcTSUNsKgtwrrj/BmPEmQsxJ241e/uZzRyuT+VdOls2gtdpc1gz/sxlgRNALZd/BQcYq/XV3pe07STujqXoZgNjC92vRrVY6wPdycCmKHrGSyhN34KdqTi9lfrYc0MtI0c0T0BgXt+ButNKfSHt/2m4SZ8HGne22b3pIltsJP58R8XtomTbHa9VFfTWfiEhuKpwWzM/UsDo7PYhd+TdZFkTj9zfUrR1JluJLuFknUp3hpsU1F1HSyXLGtVmdKb+nD/7n4RTP3zGWNZfCRG3PqsAgR2TBwPKo+7RTq5B1BPqNXjoEWaI3P+divrkZT1PooqHuLEWJOr+68azSy04AnlhBzI06w/FZIgMSjV4adqizFlVBR5BTQgQULDSISYlMR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
|
argocd.argoproj.io/secret-type: repository
|
||||||
|
name: applications-repo
|
||||||
|
namespace: argocd
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/client-side-apply-migration-manager: argocd-controller
|
||||||
|
argocd.argoproj.io/sync-wave: "3"
|
||||||
|
name: holyarrs
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: holyarrs
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: apps/holyarrs
|
||||||
|
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
|
||||||
|
targetRevision: main
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
@@ -30,6 +30,28 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
type: hostPath
|
type: hostPath
|
||||||
hostPath: /srv/media
|
hostPath: /srv/media
|
||||||
|
# Metadata, artwork, and subtitles come from the internet; the
|
||||||
|
# cluster and the LAN stay off limits
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
ingress:
|
||||||
|
allowExternal: false
|
||||||
|
namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: traefik
|
||||||
|
egress:
|
||||||
|
allowAllEgress: false
|
||||||
|
restrictedEgress:
|
||||||
|
allowMetadata: false
|
||||||
|
allowInCluster: false
|
||||||
|
customRules:
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
except:
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 3000m
|
cpu: 3000m
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
|
- applications-repo-sealedsecret.yaml
|
||||||
- bentopdf.yaml
|
- bentopdf.yaml
|
||||||
- betterslcm.yaml
|
- betterslcm.yaml
|
||||||
- garage.yaml
|
- garage.yaml
|
||||||
- garage-ui.yaml
|
- garage-ui.yaml
|
||||||
|
- holyarrs.yaml
|
||||||
- jellyfin.yaml
|
- jellyfin.yaml
|
||||||
- pgweb.yaml
|
- pgweb.yaml
|
||||||
|
- pixelos-applications.yaml
|
||||||
- qbit.yaml
|
- qbit.yaml
|
||||||
- redoost.yaml
|
- redoost.yaml
|
||||||
- rustbin.yaml
|
- rustbin.yaml
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/client-side-apply-migration-manager: argocd-controller
|
||||||
|
argocd.argoproj.io/sync-wave: "3"
|
||||||
|
name: pixelos-applications
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: pixelos
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: k8s
|
||||||
|
repoURL: [email protected]:PixelOS-CI/applications.git
|
||||||
|
targetRevision: main
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
@@ -18,6 +18,12 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
appOrigin: https://redoost.whyredfire.dev
|
appOrigin: https://redoost.whyredfire.dev
|
||||||
|
api:
|
||||||
|
image:
|
||||||
|
tag: latest
|
||||||
|
frontend:
|
||||||
|
image:
|
||||||
|
tag: latest
|
||||||
sitesOrigin: https://whyredfire.dpdns.org
|
sitesOrigin: https://whyredfire.dpdns.org
|
||||||
httpRoute:
|
httpRoute:
|
||||||
annotations:
|
annotations:
|
||||||
|
|||||||
Reference in New Issue
Block a user