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 0b41031
Show file tree
Hide file tree
Showing 45 changed files with 777 additions and 66 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
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:D9rVYT0W+bHDakBqYrAnhzJRl4kaFUnPtQyr+oNZMw7/SGb8OlhHLf6enSrAGOryl39/pcEY5C1dkNIm//frFw==,iv:ukW5z/fro1Ug7vzE4rFc+KbFszftTGe7j5AVMC6AU9c=,tag:EsSXiiQtyTvSXrCOQUG7iQ==,type:str]
SUPERUSER_NAME: ENC[AES256_GCM,data:vl135vw=,iv:/jygrMpHH35uwdRH+6cTRwAIlw1nDHZsYaTNFCJqgEs=,tag:z1rI3jH71Ry99vXx/ZLEkg==,type:str]
SUPERUSER_EMAIL: ENC[AES256_GCM,data:JNm7w54xbMnQC7ugOiqXoA==,iv:S6OyJH16Fve6bbphk7Bt2GmnX3pcQomqBzcrXDvrZrE=,tag:nHPYB2fTt1SGf19vhqhlng==,type:str]
SUPERUSER_PASSWORD: ENC[AES256_GCM,data:Y/zY6XiR3un9Xow7tCbm5Pt9AOkWbZiNaxNYCpDhYpk=,iv:PK9ulprgK+mscj9jUVhK+DcutIaAw9Y0ejmi8j11IIs=,tag:k4GjY1z9WLAjnb+RAYRZGw==,type:str]
SUPERUSER_API_TOKEN: ENC[AES256_GCM,data:1sYphjIDjzYGzJoGTPgzIaOtEqY6LWAfDd7+5qOQG6S3s8aowulCTujMip9IemwuqwMAnafZ/39nk/2nvVqjPA==,iv:/gDCq/0h0sDES+ZAZ5dbP+VYtl6zJSY6CAClBwQbIFs=,tag:ht0VqdCKQpkhY6daQF9+rw==,type:str]
INIT_POSTGRES_USER: ENC[AES256_GCM,data:qPklUyxB,iv:8D4Lv2ad8RQ/Dl+8OzDL8KqJl8TqZeGahrp7TONngt0=,tag:PNOhuwyisGNVlUH46BfQxA==,type:str]
INIT_POSTGRES_PASS: ENC[AES256_GCM,data:fOxNGyPMf+UwQKyToVb0ZoyIKbcFdN2sb0GrGVeeFJA7TtFgY5qKnA==,iv:2Qf4Jzgta4YI5juDYN0pl9xAgRLq+BiQ4E8+pCe+PgE=,tag:xi+e/qjdtlqkZZMUbKVbbw==,type:str]
DB_NAME: ENC[AES256_GCM,data:2Vf7fzzp,iv:BGLJoaZgemJ1jF97M47dEA5uNkDM6me7uY3t2qa9KN4=,tag:9diZmxiBJ/xQL1i6HkXF1g==,type:str]
DB_USER: ENC[AES256_GCM,data:C8WxHoMv,iv:Hw3htPjOMe4HyWTICoWXdt3GDkjCa0dVsKqAWLMkt5U=,tag:bfr4HnyAob45l5QI8YoJQQ==,type:str]
DB_PASSWORD: ENC[AES256_GCM,data:3NzW7RUf21CZYBTxY+oV3OBrvStLMVobbYwk3hBlJ4sCpePUuZd8GQ==,iv:m7eXrXCNhYXLhRRBgCtkkZhTvWnSGZ0yF5trGAjRu3Y=,tag:1lp4z7BBUUNzWu4CaEworg==,type:str]
EMAIL_FROM: ENC[AES256_GCM,data:kg2gw+38MVM5DHz5t6zi2fGK3t392rW7wNxvV20=,iv:p1N15jfGTmVJBUwyR2mOWTwNFOj1Sb6Q/xAAgw7dw/8=,tag:xXij0UGCWTR7JW5v4GuzhA==,type:str]
EMAIL_USERNAME: ENC[AES256_GCM,data:x/mYmO8yLpz9dmVe2Mo3KpnLXpaCPMwg9qhznXI=,iv:z87jo26H529m35qcF8thBgOik40DBQTf+6tkbqM5grQ=,tag:7lCv/1PYNn7gcF9pYFpOkQ==,type:str]
EMAIL_SERVER: ENC[AES256_GCM,data:CpYrYp5cHywH850vA7tfLg==,iv:K6+oUGabj/1kXR4MLpuyVwXpRSlhwbliQLjtV8kSFBM=,tag:fdPacQMaAN+tRdVoWXkidA==,type:str]
EMAIL_PASSWORD: ENC[AES256_GCM,data:wRhr+7ALjqsgu9r4khOnscU8ITtgrWhglnRA2Mu+qEDGZvj6c4hlyHqeY5MFutvHj4o=,iv:krA/aunTECKV5YjVj0qdNZ14/A82ih3SggUpFOMThdc=,tag:igDXD2jmQmajCAs50xfNdg==,type:str]
REDIS_CACHE_PASSWORD: ENC[AES256_GCM,data:fl14JMtQQRoSHj2j/xzW90jeMJDWa936nsQiXA==,iv:w+rM7NyA7kPHloeJQp2se+0lBmYF9rMNwxWrmET0QHk=,tag:mnvpCQQYTc4rFXKbpsx8Jw==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age19nu7uf8dageqlmzk23x7vl24fpn0l7cq20l3l4xxf2sk2xd5h98qss437p
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBIdk5kRG5STS9QbU0zQ1hZ
TGxKSXRpdTBZOEk1VUo4ckdRTm9ISDJKOGhVCnJGUmN1MnBSNjhWTHFiWFBtbjFl
Nm5UY3R1VE1HYjdZYmNKaGZrVkhpUk0KLS0tIGxkMjM3ZUVBeWNuZDZvRzIrMGZY
M1FZM1pKejVGSUdLWkNRMHJ3c1lEUjAKHnkVxugGb68Ryf2C3mIZW2lFthUR0R4z
Cf1ZvXa6YoQczICeLTpY5Go/YTXNSuEaVQ2eXIKhmSjRc07UNvDQXg==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-23T03:16:59Z"
mac: ENC[AES256_GCM,data:4QlOaDMKpgrtS3zKhvw9o4foYaVQKDlODbc2bayvok6VHeVEpEPZtYs5fW9BzzGZYwbbipMvIvyBQgmqlaPp9zUsVWmc7E4rkECRR12ljeYgSdelve+BbN9wlwppo5WQ9d0hzMK1WRimdwwnw/FcToLgft01sMN1jsVWjw8dGiI=,iv:l85gu/OPhzoBM/6EFyAnECsWnGL2Q/WP42Md9kONDp4=,tag:/gQ/zaUa/WLv2YIGHxHDjg==,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 0b41031

Please sign in to comment.