netflux-kubernetes/deploy/dev/kustomization.yaml

69 lines
1.5 KiB
YAML
Raw Normal View History

---
2022-05-02 15:26:33 +00:00
namePrefix: dev-
resources:
- ../base
2022-05-05 15:44:44 +00:00
- svc-db.yaml
helmCharts:
- name: postgresql
version: "11.1.28"
repo: https://charts.bitnami.com/bitnami
releaseName: postgresql
valuesInline:
metrics:
enabled: true
auth:
postgresPassword: testme
database: default
configMapGenerator:
- name: prometheus-server
behavior: merge
files:
- prometheus.yml=prometheus.yaml
2022-05-09 03:34:36 +00:00
- name: grafana
behavior: merge
files:
- grafana.ini
- datasources.yaml=grafana-datasources.yaml
secretGenerator:
- name: grafana-credentials
literals:
- admin-user=rob
- admin-password=testme
2022-05-05 15:44:44 +00:00
2022-05-05 20:52:39 +00:00
patches:
# Patch the ingress-nginx deployment to allow it to use a service with a
# namePrefix. See https://github.com/kubernetes/ingress-nginx/issues/2599#issuecomment-601170289.
- target:
kind: Deployment
name: ingress-nginx-controller
path: deploy-ingress-nginx.yaml
2022-05-09 03:34:36 +00:00
# Patch the ingress-nginx-admission-create job to reference its webhook with a
# namePrefix.
- target:
kind: Job
name: ingress-nginx-admission-create
path: job-ingress-nginx-admission-create.yaml
# Patch the ingress-nginx-admission-patch job to reference its webhook with a
# namePrefix.
- target:
kind: Job
name: ingress-nginx-admission-patch
path: job-ingress-nginx-admission-patch.yaml
# Patch the ingress resource with stage-specific hostnames:
- target:
kind: Ingress
name: ingress
path: ingress.yaml
2022-05-09 03:34:36 +00:00
# Patch Grafana deployment to inject PostgreSQL credentials:
- target:
kind: Deployment
name: grafana
path: deploy-grafana.yaml