Skip to content

Commit

Permalink
feat(kubernetes): bring new changes from template
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik committed Jan 13, 2024
1 parent a0c8243 commit 813756b
Show file tree
Hide file tree
Showing 154 changed files with 1,023 additions and 732 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yamllint disable
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-cert-manager
- name: cert-manager
path: ./kubernetes/apps/actions-runner-system/actions-runner-controller/app
prune: true
sourceRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: cert-manager
namespace: cert-manager
spec:
interval: 30m
chart:
Expand Down Expand Up @@ -37,4 +36,4 @@ spec:
enabled: true
servicemonitor:
enabled: true
prometheusInstance: monitoring
prometheusInstance: observability
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: cert-manager
resources:
- ./helmrelease.yaml
- ./prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: cert-manager.rules
namespace: cert-manager
spec:
groups:
- name: cert-manager
Expand Down
20 changes: 9 additions & 11 deletions kubernetes/apps/cert-manager/cert-manager/issuers/secret.sops.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# yamllint disable
apiVersion: v1
kind: Secret
metadata:
name: cert-manager-secret
namespace: cert-manager
stringData:
api-token: ENC[AES256_GCM,data:pqRmwDvLQpcA7UsgAnxYtNuMqRTetHMK73Gc/xv9IgQhDqx1ed5XBw==,iv:0/wuWvlx5cddt9Tm9+LvHdJ4xdy9eiVbZSI1eXONL3Q=,tag:yriijOvqraWkvg4DC64JXw==,type:str]
api-token: ENC[AES256_GCM,data:dNONpB4vhd9b6swaS24p2lWOu8qEMQbo878TVVYr8T8AMLNGCWvsAg==,iv:jQ+6csYeQy1UIJUR6IZOBMftdsgpgoD6uexQs8hMQNc=,tag:Zlv8+pSjLDC5N/huAIQaOA==,type:str]
sops:
kms: []
gcp_kms: []
Expand All @@ -15,14 +13,14 @@ sops:
- recipient: age1w68rvrv30t2xfm42ctr02vurav5222065pl03ys6ps5aklraq42s4jeyjl
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBjVzUrN1FJazNqMHFIRDBp
cGNsTFdteTJSQWtGRDdxdkttSGhRcFpZZVRjCjhFZ1NzNmtndVVGVWlXNjlCMmRP
MjljTkpWbkNVcllCQXU2VEZNVVVVTU0KLS0tIFhoaUNrUUt1SFF6ck16cEZ3ekZV
MWxDUDloRTc4QUFYbzYxSjBteTFTd3cKBh6mosfV6NjhnNSDrj2m5/tC0qRmg/gG
zXeKcdhp/vq3worHNqJSuYvidw5jly0RxvEHcFkbbh5RWvnXoZ6YoQ==
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA0N1VQZU1zRzQ4N1JZSEJB
b2VZVi9RWUhQUWdRUVhNZEtianBtM3lOWm1VCmtIOUtMd0VPejUzVUxaZ3ZOZzBK
Y3puWTNNQ0paWnpRVjJpMGdObVBnWGsKLS0tIEk5M3RrRFpUZ1FNeUF6SjNLRnM5
MXhoTXQ2Wk5rMGtmWWtKNW1LdUk4WHMKc1MmUQ+eDFlFizVN8uewfeEbetjLF7fr
UYyGuHXzNgAeDB5JMCahuvZeBlOKOWeHxPX3lkB75h08Slm0AoQY2w==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-09-28T04:13:58Z"
mac: ENC[AES256_GCM,data:t2WlpUIFj1/b07NN9hza9QtehLcvhPEtCRLhGQ3scSDebsmhQ5c0mJ2uQR8hCoC4B+QG9JwpJgDaI+kEPU+4uPucmvmEFCfR8g9G0XTsxNAOkSBSIBxRZbC8QG/S3mboKT9D1qi6CvcAMbhHzqn39Nv/+K1tePjjdJZTlH5DYhU=,iv:lGSleB3nUYA9/HojAKYBhCOqZQc0J9KBV/M7oYAXjiw=,tag:ccWH22xS9AStzA0aqMTxBw==,type:str]
lastmodified: "2024-01-11T21:47:52Z"
mac: ENC[AES256_GCM,data:o4hRviorZtcT/1zNWxPtLXOI5z5Y5+IAYEtV2lhNb0JIRoUvgp4zMPHPaZ7VSV0Y9XvR/l0lmxbs4XNt6wGrmydiulvDMcal94HFs5MC82KF2oNlOotowJak8rZ/+FbYLEbU1CDfUV2fQD+VIjVY9TxtxHrHogCY89XyagHlxdo=,iv:WaeGLNqX/qjrfHJmuL1Mnp/+aTWzCO8gNVg2tRHXtn8=,tag:7Nbf/MwUenQiINTaXDDvZw==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.7.3
version: 3.8.1
14 changes: 11 additions & 3 deletions kubernetes/apps/cert-manager/cert-manager/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cert-manager
name: &app cert-manager
namespace: flux-system
spec:
path: ./kubernetes/apps/cert-manager/cert-manager/app
targetNamespace: cert-manager
commonMetadata:
labels:
app.kubernetes.io/name: *app
prune: true
sourceRef:
kind: GitRepository
Expand All @@ -18,12 +22,16 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cert-manager-issuers
name: &app cert-manager-issuers
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-cert-manager
- name: cert-manager
path: ./kubernetes/apps/cert-manager/cert-manager/issuers
targetNamespace: cert-manager
commonMetadata:
labels:
app.kubernetes.io/name: *app
prune: true
sourceRef:
kind: GitRepository
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/audiobookshelf/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/audiobookshelf/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/bazarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/bazarr/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/calibre-web/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/calibre-web/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/calibre/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/calibre/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/cloudnative-pg/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-cloudnative-pg
- name: cluster-apps-local-path-provisioner
- name: rancher-local-path-provisioner
- name: cluster-apps-minio
path: ./kubernetes/apps/default/cloudnative-pg/cluster
prune: true
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/grocy/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/grocy/app
prune: true
sourceRef:
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/apps/default/hajimari/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: hajimari
namespace: default
spec:
interval: 30m
chart:
Expand Down Expand Up @@ -38,7 +37,7 @@ spec:
namespaceSelector:
matchNames:
- default
- monitoring
- observability
ingress:
main:
enabled: true
Expand Down
1 change: 0 additions & 1 deletion kubernetes/apps/default/hajimari/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./helmrelease.yaml
6 changes: 5 additions & 1 deletion kubernetes/apps/default/hajimari/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-hajimari
name: &app hajimari
namespace: flux-system
spec:
path: ./kubernetes/apps/default/hajimari/app
targetNamespace: default
commonMetadata:
labels:
app.kubernetes.io/name: *app
prune: true
sourceRef:
kind: GitRepository
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/heimdall/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/heimdall/app
prune: true
sourceRef:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/apps/default/jellyfin/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: cluster-apps-device-plugin-amd-gpu
- name: volsync
- name: device-plugin-amd-gpu
path: ./kubernetes/apps/default/jellyfin/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/jellyseerr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/jellyseerr/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/lidarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/lidarr/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/mealie/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- name: cluster-apps-maddy
- name: cluster-apps-minio
- name: cluster-apps-openldap
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/mealie/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/minio/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
env:
TZ: ${TIMEZONE}
MINIO_UPDATE: "off"
# MINIO_PROMETHEUS_URL: http://kube-prometheus-stack-prometheus.monitoring.svc.cluster.local:9090
# MINIO_PROMETHEUS_URL: http://kube-prometheus-stack-prometheus.observability.svc.cluster.local:9090
# MINIO_PROMETHEUS_JOB_ID: minio
MINIO_BROWSER_REDIRECT_URL: https://minio.${SECRET_DOMAIN}
MINIO_SERVER_URL: https://s3.${SECRET_DOMAIN}
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/minio/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-csi-driver-nfs
- name: csi-driver-nfs
path: ./kubernetes/apps/default/minio/app
prune: true
sourceRef:
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/apps/default/nextcloud/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ spec:
dependsOn:
- name: cluster-apps-authelia
- name: cluster-apps-cloudnative-pg-cluster
- name: cluster-apps-csi-driver-nfs
- name: cluster-apps-local-path-provisioner
- name: csi-driver-nfs
- name: rancher-local-path-provisioner
- name: cluster-apps-minio
- name: cluster-apps-redis-lb
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/nextcloud/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/nzbget/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/nzbget/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/paperless-ngx/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- name: cluster-apps-cloudnative-pg-cluster
- name: cluster-apps-minio
- name: cluster-apps-redis-lb
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/paperless-ngx/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/prowlarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/prowlarr/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/qbittorrent/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/qbittorrent/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/radarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/radarr/app
prune: true
sourceRef:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/apps/default/readarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
dependsOn:
- name: cluster-apps-cloudnative-pg-cluster
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/readarr/ebook
prune: true
sourceRef:
Expand All @@ -27,7 +27,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/readarr/audio
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/redis/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-local-path-provisioner
- name: rancher-local-path-provisioner
path: ./kubernetes/apps/default/redis/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/romm/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/romm/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/sabnzbd/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/sabnzbd/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/sonarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/sonarr/app
prune: true
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/transmission/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
dependsOn:
- name: cluster-apps-minio
- name: cluster-apps-volsync
- name: volsync
path: ./kubernetes/apps/default/transmission/app
prune: true
sourceRef:
Expand Down
Loading

0 comments on commit 813756b

Please sign in to comment.