1
0
Fork 0
home-stack-kustomize/kustomize/overlays/prod-cluster/kustomization.yaml

57 lines
1.4 KiB
YAML
Raw Normal View History

resources:
2021-08-26 16:42:41 +00:00
- ../../namespaces/kube-system
- ../../bases/longhorn
buildMetadata:
- originAnnotations
2021-09-26 21:00:29 +00:00
commonLabels:
2023-02-05 03:11:39 +00:00
app.kubernetes.io/managed-by: kustomize-cluster
2021-08-26 16:42:48 +00:00
transformers:
2021-12-18 06:23:55 +00:00
- transformers/ssm-secrets.yaml
configMapGenerator:
- name: cluster-replacements
namespace: default
literals:
- TRAEFIK_EXTERNAL_HOST=traefik.badjnet.home
- LONGHORN_EXTERNAL_HOST=longhorn.badjnet.home
2021-12-18 06:23:55 +00:00
secretGenerator:
- name: s3-backupstore-credentials
type: Opaque
namespace: longhorn-system
behavior: replace
literals:
- AWS_ACCESS_KEY_ID=${ssm:/k3s/prod/longhorn/s3_access_key_id}
- AWS_SECRET_ACCESS_KEY=${ssm:/k3s/prod/longhorn/s3_secret_access_key}
2023-02-06 15:31:21 +00:00
- AWS_ENDPOINTS=https://s3.badjware.dev
replacements:
- source:
kind: ConfigMap
name: cluster-replacements
namespace: default
fieldPath: data.TRAEFIK_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: traefik
namespace: kube-system
fieldPaths:
- spec.rules.0.host
- source:
kind: ConfigMap
name: cluster-replacements
namespace: default
fieldPath: data.LONGHORN_EXTERNAL_HOST
targets:
- select:
kind: HelmChart
name: longhorn
namespace: kube-system
fieldPaths:
- spec.set.[ingress.host]
options:
create: true