k3s-cluster/cluster/base/ks.yaml

87 lines
1.6 KiB
YAML
Raw Normal View History

apiVersion: kustomize.toolkit.fluxcd.io/v1
2023-04-05 02:42:19 +00:00
kind: Kustomization
2023-04-10 04:44:31 +00:00
metadata:
name: cluster-secrets
namespace: flux-system
spec:
2023-04-10 05:08:28 +00:00
timeout: 5m
interval: 10m
2023-04-10 04:44:31 +00:00
path: ./cluster/secrets
prune: true
sourceRef:
kind: GitRepository
name: flux-system
decryption:
provider: sops
secretRef:
name: sops-gpg
2023-04-10 04:44:31 +00:00
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
2023-04-10 04:44:31 +00:00
kind: Kustomization
2023-04-05 02:42:19 +00:00
metadata:
name: crds
namespace: flux-system
spec:
2023-04-10 05:08:28 +00:00
timeout: 5m
2023-04-05 02:42:19 +00:00
interval: 10m
path: ./cluster/crds
2023-04-10 05:00:54 +00:00
prune: true
2023-04-05 02:42:19 +00:00
sourceRef:
kind: GitRepository
name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
2023-04-05 02:42:19 +00:00
kind: Kustomization
metadata:
name: core
namespace: flux-system
spec:
2023-04-10 05:08:28 +00:00
timeout: 5m
interval: 10m
2023-04-05 02:42:19 +00:00
dependsOn:
2023-04-10 04:44:31 +00:00
- name: cluster-secrets
2023-04-10 04:57:48 +00:00
- name: crds
2023-04-05 02:42:19 +00:00
path: ./cluster/core
2023-04-10 05:00:54 +00:00
prune: true
2023-04-05 02:42:19 +00:00
sourceRef:
kind: GitRepository
name: flux-system
decryption:
provider: sops
secretRef:
name: sops-gpg
postBuild:
substitute: {}
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
2023-04-05 02:42:19 +00:00
kind: Kustomization
metadata:
name: apps
namespace: flux-system
spec:
2023-04-10 05:08:28 +00:00
timeout: 5m
interval: 10m
2023-04-05 02:42:19 +00:00
dependsOn:
2023-04-10 04:44:31 +00:00
- name: cluster-secrets
2023-04-10 04:57:48 +00:00
- name: core
2023-04-05 02:42:19 +00:00
path: ./cluster/apps
prune: true
sourceRef:
kind: GitRepository
name: flux-system
decryption:
provider: sops
secretRef:
name: sops-gpg
postBuild:
substitute: {}
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets