@@ -12,6 +12,7 @@ resources:
|
|||||||
- ./namespaces/prometheus-operator.yaml
|
- ./namespaces/prometheus-operator.yaml
|
||||||
- ./namespaces/snippet-box.yaml
|
- ./namespaces/snippet-box.yaml
|
||||||
- ./namespaces/uptime-kuma.yaml
|
- ./namespaces/uptime-kuma.yaml
|
||||||
|
- ./namespaces.yaml
|
||||||
- ./repositories/repositories.yaml
|
- ./repositories/repositories.yaml
|
||||||
# - ./cilium/cilium.yaml
|
# - ./cilium/cilium.yaml
|
||||||
- ./ingress-nginx/ingress-nginx-config.yaml
|
- ./ingress-nginx/ingress-nginx-config.yaml
|
||||||
|
|||||||
16
kubernetes/infrastructure/namespaces.yaml
Normal file
16
kubernetes/infrastructure/namespaces.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/gitrepository_v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: namespaces
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
timeout: 1m30s
|
||||||
|
retryInterval: 30s
|
||||||
|
path: ./kubernetes/infrastructure/namespaces
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
namespace: flux-system
|
||||||
|
name: flux-system
|
||||||
4
kubernetes/infrastructure/namespaces/jellyfin.yaml
Normal file
4
kubernetes/infrastructure/namespaces/jellyfin.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: jellyfin
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
filePath=$1
|
|
||||||
|
|
||||||
AGE_PUB_KEY"age1d47q8mlty404pxx378q49hr93aqexca4mkeqtdm00w4gjd09xd0qhxcdcz"
|
|
||||||
|
|
||||||
sops --age=$AGE_PUB_KEY --encrypt --encrypted-regex '^(data|stringData)$' --in-place $filePath
|
|
||||||
echo "File encrypted: $filePath."
|
|
||||||
|
|
||||||
git add $filePath
|
|
||||||
git commit -am "Encrypt file $filePath by Age."
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
filePath=$1
|
|
||||||
|
|
||||||
sops --encrypt --in-place $filePath
|
|
||||||
echo "File encrypted: $filePath."
|
|
||||||
|
|
||||||
git add $filePath
|
|
||||||
git commit -am "Encrypt file $filePath by GPG."
|
|
||||||
Reference in New Issue
Block a user