Skip to content

Commit

Permalink
--wip-- [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Liana64 committed Nov 23, 2024
1 parent 8118b73 commit 78e2845
Show file tree
Hide file tree
Showing 46 changed files with 778 additions and 67 deletions.
42 changes: 21 additions & 21 deletions kubernetes/lianalabs/apps/auth/authelia/app/secret.sops.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: dragonfly-secret
type: Opaque
stringData:
password: ENC[AES256_GCM,data:pvyPbML/Zy6kNojkUUu47KpvnKlphwiDZutvcQ==,iv:TgAD23Ecs4Zx/7GlzfPYmOvsGnmv0Co/BQVkKHAZw0M=,tag:UnRU+oeQbEYoSGx31KvTHw==,type:str]
password: ENC[AES256_GCM,data:g2neVjzuv69zVQWlCok6hjuSh5XG/qudxGpgeQ==,iv:7cmGSzTFNau8tPo/EAM3E8mJnq6S/vqA6T87YuOA1MM=,tag:CCiD1h/EKPpM4ti5q5GV9Q==,type:str]
sops:
kms: []
gcp_kms: []
Expand All @@ -15,14 +15,14 @@ sops:
- recipient: age19nu7uf8dageqlmzk23x7vl24fpn0l7cq20l3l4xxf2sk2xd5h98qss437p
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBrbUxGN0o2TzhrVEFBSDRO
Z1RZZXg2YVA0YzMwa2lCSlpEQWtYRnMyblV3ClcwT2Rscm5sUFRkSUVaL2VUWGZ1
Mk0rY3Z5QnBWOFpxc2FXVjlPQkI0ZzgKLS0tIHhEWXoxMjB2c2hjU0NKR1Nha1Zo
clBpdXdZTSszQ0J4QWp3bkxEVWNFTFUKFUnCafT0bYkozGiNSeJ3oDDrcgkK2VhP
Lc9sKPYSbRRhNweR/8k2ks4a+ukJrlCxlIjYfX9QgE+84qplujDOpg==
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBHcXlTSGVDa214ZWJiSHpi
TXptQ2hvMVdhMGpyMlgwMkkyMExZb01jK1E0Ck0xa0I0Q1U3Ky9pRGZia3pBbnpT
RlpLWTNldGdZVExHcnZZTjFYZkxuY1EKLS0tIExOWHRTcVNYZHNzRlBDZzVUeldE
R3FWUEFYazVNQUJDQnlXVzVTYkJFOTQK+RRCpx4EgiXUwttpuDa/rNeIMM1ku7Og
bOJsEBRxGdd9ALeAbxswnd7PuADgAuq383EnQmZWPsKwtnWnbVUcMQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-11T18:41:20Z"
mac: ENC[AES256_GCM,data:uqEV/3FgL9fSlRGyYwZN6OlWe829NEAmTXAsjhb7EUCoi7D+raPrpaRfEESEBRJ3bejfssmFj6U2xTaQhGboE0jeoJKdkLLR2c/Wnuxfmfw4rC53oAkc8klpoCneL5Vp/jNlSijKzZgXHCpg+g69CuJC2N4fZtmJkzlZCqhA1dM=,iv:4IUcANqUcDdAhcezbUUhdGgjfXIL8jbjRGRjxEDND0E=,tag:N675xUG51Vwch87RDebNSQ==,type:str]
lastmodified: "2024-11-23T01:03:25Z"
mac: ENC[AES256_GCM,data:w7CUzV2NoD50UpehusXqXGnVFkPrQMGJ4qufzPs/9WRj4oOoQ0z+jGytap+qo1P3ulJosvu1Y1DpYZKanhVrAVlGvX3sYOmS8iQ4YrHP3BTsG74ep5cQpjQAPas5aZg14X9ww2OGfhQk0u6nQB3VGETtklRptNIrJw2yB/2Qyso=,iv:pjrnV2iX84nvr7n/Nzj/SSZtJZTqOV+TJKFtIsB6fbU=,tag:d+NT+tWfQ+N3CWdWrWbpDQ==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.9.1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec:
cert-manager.io/cluster-issuer: "letsencrypt-production"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Services
gethomepage.dev/name: MinIO Console
gethomepage.dev/name: MinIO
gethomepage.dev/description: MinIO admin dashboard
gethomepage.dev/icon: minio
hosts:
Expand Down
6 changes: 6 additions & 0 deletions kubernetes/lianalabs/apps/federated/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
7 changes: 7 additions & 0 deletions kubernetes/lianalabs/apps/federated/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: federated
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
Original file line number Diff line number Diff line change
@@ -1,2 +1,58 @@
---
- Network:
# - OPNsense:
# href: https://opnsense.${SECRET_OLD_DOMAIN}
# siteMonitor: https://opnsense.${SECRET_OLD_DOMAIN}
# icon: opnsense
# description: RSS feed
# widget:
# type: opnsense
# url: https://opnsense.${SECRET_OLD_DOMAIN}
# key: "{{HOMEPAGE_VAR_OPNSENSE_TOKEN}}"
- Services:
- Miniflux:
href: https://rss.${SECRET_INTERNAL_DOMAIN}
siteMonitor: http://miniflux.labs.svc.cluster.local/healthcheck
icon: miniflux
description: RSS feed
widget:
type: miniflux
url: http://miniflux.labs.svc.cluster.local
key: "{{HOMEPAGE_VAR_MINIFLUX_TOKEN}}"
- Media:
- Jellyfin:
href: https://${SECRET_MEDIA_DOMAIN}
siteMonitor: https://${SECRET_MEDIA_DOMAIN}
icon: jellyfin
description: Media streaming
widget:
type: jellyfin
url: https://${SECRET_MEDIA_DOMAIN}
key: "{{HOMEPAGE_VAR_JELLYFIN_TOKEN}}"
- Jellyfin:
href: https://jellyseerr.${SECRET_MEDIA_DOMAIN}
siteMonitor: https://jellyseerr.${SECRET_MEDIA_DOMAIN}
icon: jellyseerr
description: Media requests
widget:
type: jellyseerr
url: https://jellyseerr.${SECRET_MEDIA_DOMAIN}
key: "{{HOMEPAGE_VAR_JELLYSEERR_TOKEN}}"
- Sonarr:
href: https://sonarr.${SECRET_MEDIA_DOMAIN}
siteMonitor: https://sonarr.${SECRET_MEDIA_DOMAIN}
icon: sonarr
description: TV
widget:
type: sonarr
url: https://sonarr.${SECRET_MEDIA_DOMAIN}
key: "{{HOMEPAGE_VAR_SONARR_TOKEN}}"
- Radarr:
href: https://radarr.${SECRET_MEDIA_DOMAIN}
siteMonitor: https://radarr.${SECRET_MEDIA_DOMAIN}
icon: radarr
description: Movies
widget:
type: radarr
url: https://radarr.${SECRET_MEDIA_DOMAIN}
key: "{{HOMEPAGE_VAR_RADARR_TOKEN}}"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ layout:
tab: Main
style: row
columns: 4
Observability:
tab: Main
Services:
tab: Main
Tools:
Expand Down
6 changes: 1 addition & 5 deletions kubernetes/lianalabs/apps/labs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ kind: Kustomization
resources:
- ./namespace.yaml
- ./homepage/ks.yaml
- ./archivebox/ks.yaml
- ./miniflux/ks.yaml
- ./changedetection/ks.yaml
- ./atuin/ks.yaml
- ./it-tools/ks.yaml
- ./cyberchef/ks.yaml
- ./redlib/ks.yaml
- ./linkding/ks.yaml
- ./netbox/ks.yaml
133 changes: 133 additions & 0 deletions kubernetes/lianalabs/apps/labs/netbox/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app netbox
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
controllers:
netbox:
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16
env:
INIT_POSTGRES_HOST: postgres-1-rw.database.svc.cluster.local
INIT_POSTGRES_DBNAME: netbox
INIT_POSTGRES_SUPER_PASS:
valueFrom:
secretKeyRef:
name: cloudnative-pg-secret
key: password
envFrom: &envFrom
- secretRef:
name: netbox-secret
containers:
app:
image:
repository: ghcr.io/netbox-community/netbox
tag: v4.1.7-3.0.2@sha256:e88d5e58dd32d643d8d9851f6c9edde20a69a87fd4a72a14259d045f6d3e19d3
env:
TZ: ${TIMEZONE}
DB_HOST: postgres-1-rw.database.svc.cluster.local
METRICS_ENABLED: true
EMAIL_USE_TLS: true
EMAIL_PORT: 587
GRAPHQL_ENABLED: false
HOUSEKEEPING_INTERVAL: 86400 # Every 24 hours
MEDIA_ROOT: /media
REDIS_SSL: false
REDIS_DATABASE: 3
REDIS_HOST: dragonfly.database.svc.cluster.local
REDIS_PASSWORD:
valueFrom:
secretKeyRef:
name: dragonfly-secret
key: password
REDIS_INSECURE_SKIP_TLS_VERIFY: false
REDIS_CACHE_SSL: false
REDIS_CACHE_DATABASE: 2
REDIS_CACHE_HOST: dragonfly.database.svc.cluster.local
REDIS_CACHE_PASSWORD:
valueFrom:
secretKeyRef:
name: dragonfly-secret
key: password
REDIS_CACHE_INSECURE_SKIP_TLS_VERIFY: false
SKIP_SUPERUSER: false
envFrom: *envFrom
# probes:
# liveness: &probes
# enabled: true
# custom: true
# spec:
# httpGet:
# path: /healthcheck
# port: &port 8000
# initialDelaySeconds: 0
# periodSeconds: 10
# timeoutSeconds: 1
# failureThreshold: 3
# readiness: *probes
resources:
requests:
cpu: 10m
limits:
memory: 512Mi
service:
app:
controller: *app
ports:
http:
port: &port 8080
serviceMonitor:
app:
serviceName: *app
endpoints:
- port: http
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
ingress:
app:
className: traefik
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Services
gethomepage.dev/name: NetBox
gethomepage.dev/description: Network documentation
gethomepage.dev/icon: netbox
hosts:
- host: &host "netbox.${SECRET_INTERNAL_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- secretName: netbox-tls
hosts: [*host]
9 changes: 9 additions & 0 deletions kubernetes/lianalabs/apps/labs/netbox/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./secret.sops.yaml
- ./helmrelease.yaml
- ../../../database/dragonfly/app/secret.sops.yaml
- ../../../database/cloudnative-pg/app/secret.sops.yaml
42 changes: 42 additions & 0 deletions kubernetes/lianalabs/apps/labs/netbox/app/secret.sops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# yamllint disable
kind: Secret
apiVersion: v1
type: Opaque
metadata:
name: netbox-secret
stringData:
SECRET_KEY: ENC[AES256_GCM,data:Wo9f89Ny5ML95oH5TUSFCxHjeMy0/8zEvpWjAZFE3g+67yihArOkJJSQFFVNkDLm9O6Q,iv:ib1fOv5ri6WF6i5MLvXeZ72H+dW6OaWemr74mbh3JJU=,tag:MAMz1crwDZWUhI+V5cQhIw==,type:str]
SUPERUSER_NAME: ENC[AES256_GCM,data:B7GejHw=,iv:GPC9RTcFJaq3BPRHx5C2jUWuvyH64X1KiG1z+OIALIc=,tag:JXA2GMsk9olmYePZsfwi3w==,type:str]
SUPERUSER_EMAIL: ENC[AES256_GCM,data:3OjRbL4q4HZgrQjwsKAzMA==,iv:p7sVMPrvw162I3mhhZRMEOKiNeOItC74tdcRP+F+wEM=,tag:AQrhLNj6HmvDfRSE8/GF1g==,type:str]
SUPERUSER_PASSWORD: ENC[AES256_GCM,data:3P41Ydg+OZx1lVIXN9fa+X6E6FtjxqILsS2PSUEnOrI=,iv:p3q5vz5dT13Umw4/td/cklgb5gf+hQlY8o0xyi3/mFs=,tag:GOMZCOM/+VB69E2jlfkOrg==,type:str]
SUPERUSER_API_TOKEN: ENC[AES256_GCM,data:dtDz8ett4wZ/JZbkpYtwE0pUfDTAWx0OnN/Psjd5dw==,iv:O8+Y/k2aCFTnEX9zTc2eLzoTLsMy55ieWQswnZoq8fI=,tag:EfSfEN6MWayMN+S+3SFcfg==,type:str]
INIT_POSTGRES_USER: ENC[AES256_GCM,data:Fn+bvCb/,iv:etLwUnejS3Ee5u3sHetizvc6NjjtnNLL1XIlkR/7iO8=,tag:EObcyPGR0fDK2DTYJnh0sg==,type:str]
INIT_POSTGRES_PASS: ENC[AES256_GCM,data:bJVM20O6Vt+yYzLefPhc7D3Y52/6mi71t3ZKfQ3sZABNRkNccuhhfw==,iv:IZ1jR04ONtTqQdd5zk/Kdkn3hVPKMynmKqKhKeQAcZU=,tag:kOPyB6cBpnlMOzFSvnVvog==,type:str]
DB_NAME: ENC[AES256_GCM,data:IeK6u6UE,iv:1Y2wYDcqOcZ2gya8AUzS4vcvlRTyKtvwqn7n3t/bUPc=,tag:O5QnjFOsuO3uv33vOrNDKA==,type:str]
DB_USER: ENC[AES256_GCM,data:5JKsgf98,iv:mrIH9FocQTFnH2eF4Ie4/IXnKQPHtxs04GEq+ZlSH5U=,tag:+qnteyE+DwFFw2NjJMs1Mg==,type:str]
DB_PASSWORD: ENC[AES256_GCM,data:jqO5PB04Ttnrr+6sf/M71EYpXmfCfQoHADYUCaQR5tWLpBPXSrNhCw==,iv:TveDHvpjiHcxHzRtwgo2YonbQ3nTkC8ym5VV6CWAp+A=,tag:VlU0sTn/dZw232K09vBqmQ==,type:str]
EMAIL_FROM: ENC[AES256_GCM,data:HtfWRKW4CsUqEJMMaZQ6mkB5SGXQpZrh3K6aT14=,iv:/8rXrW8EjvibiFSViRRfFve3RnusjbbRikVSSZeJLcA=,tag:wvwhS/cPegQOjoiJgKfEKw==,type:str]
EMAIL_USERNAME: ENC[AES256_GCM,data:MLR56SSYrgtScuH4DvKBXB58kzSaIGqpyM0m6PI=,iv:TEhK94Bsy+MBec62AEsFBeddyWljxr9iMjgMkbC/F6o=,tag:6B+VIuuLh+MUpUwqF+6x9Q==,type:str]
EMAIL_SERVER: ENC[AES256_GCM,data:0VlagX3OdAUT8nVOrWJz+g==,iv:WuvcGI3Unlxc32ZDmdURtb9iPoRriF7A9AbkFmv1alM=,tag:L+HZj48cRBHoV0jdHTfliQ==,type:str]
EMAIL_PASSWORD: ENC[AES256_GCM,data:6cWoRfYQVwzxi2jXoIFqIXZIh/kR+BmnT3vYmCtxiwmR+Y/iIZqkYZABi5UgDv8Ax0E=,iv:Ceee3c1gtjqBiuA+IVVZ1kbSC9IOtJtQnzfrc1le7os=,tag:EJItroN9Q8Uft5mukVRJCw==,type:str]
REDIS_CACHE_PASSWORD: ENC[AES256_GCM,data:1BFGHaS/+bc4t64ZBnw7e7sRAw61GSQiJTWBeA==,iv:PRJqvnM6j7hzzYVZpc5r1dQXTtiWIh5qbBYkgGOnTA0=,tag:Q2++TjCaT+N/dmUlLq8R2Q==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age19nu7uf8dageqlmzk23x7vl24fpn0l7cq20l3l4xxf2sk2xd5h98qss437p
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBCZjQyeVFjZGJZZklOS2FC
b1RVWUpkVUFQMm4rUlQwZFllbkxFUjdOcGhjCmM0R2JObDZSSXFRSnR2Kzl5dXZn
aEV3UUp4NVpjTHJLckQyRHhwTmRLNWMKLS0tIGdyWW9Ld3ByZTJWTndoVElOL2pp
SHRUOG9aaVpsT28reGVCYXVEUVhocjQK76h6Xc5YH7RwNR2sgjjAU+7ZBc2TNFac
jqFPX8W/GJSEMBgk+L40UEdOBEjNlEd4Gtxt5SbIcZfoQfSVlFV1qA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-23T17:45:56Z"
mac: ENC[AES256_GCM,data:xbGmXdr8xAGZzopWcrS4fGWZMdSCjW8aoAPde+YT47sTRD9puofiI6uByzaWzH8vq/21+cELfY/EcGF4VawZpRoqAVuc/AHsSGv5/Ur9X2wtDX7Tewqt41Uw6QxZAfdyjnu6/7vBQWQY51WkSot53pVUnpB4/051K8GovQV4wIA=,iv:uiUzE14mmEWXi7UDO0Aa2FsywLV/8LaiCpf51HBDMzg=,tag:6lgOtjVYscjDNeu1PZ+JFQ==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.9.1
28 changes: 28 additions & 0 deletions kubernetes/lianalabs/apps/labs/netbox/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app netbox
namespace: flux-system
spec:
targetNamespace: labs
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: traefik
- name: cloudnative-pg
- name: dragonfly
path: ./kubernetes/lianalabs/apps/labs/netbox/app
prune: true
sourceRef:
kind: GitRepository
name: k8s-gitops
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m
postBuild:
substitute:
APP: *app
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ spec:
data:
storageClass: local-nvme
accessMode: ReadWriteOnce
size: 4Gi
size: 5Gi
retain: true
globalMounts:
- path: /data
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ metadata:
name: &app archivebox
namespace: flux-system
spec:
targetNamespace: labs
targetNamespace: media
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: traefik
path: ./kubernetes/lianalabs/apps/labs/archivebox/app
path: ./kubernetes/lianalabs/apps/media/archivebox/app
prune: true
sourceRef:
kind: GitRepository
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/lianalabs/apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./archivebox/ks.yaml
#- ./piped/ks.yaml
Loading

0 comments on commit 78e2845

Please sign in to comment.