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

233 lines
5.8 KiB
YAML
Raw Normal View History

2022-09-23 23:11:09 +00:00
resources:
- ../../overlays/system
2021-09-06 23:45:09 +00:00
# - ../../namespaces/kubernetes-dashboard
- ../../overlays/gitea
- ../../overlays/monitoring
- ../../overlays/nextcloud
2021-08-26 16:42:41 +00:00
2022-08-28 22:29:06 +00:00
# resources:
# - probes/external-services-bobcat-miner.yaml
2021-09-06 23:45:09 +00:00
buildMetadata:
- originAnnotations
2021-08-26 16:42:48 +00:00
images:
- name: gitea/gitea
2022-08-28 22:29:06 +00:00
newTag: 1.16.9
- name: grafana/grafana
2022-10-20 03:56:34 +00:00
newTag: 9.2.1
2022-08-28 22:29:06 +00:00
# - name: prom/node-exporter
# newTag: v0.18.1
- name: prom/blackbox-exporter
newName: badjware/blackbox-exporter-tweak
2022-08-28 22:29:06 +00:00
newTag: 0.21.1
2021-08-26 16:42:48 +00:00
- name: drone/drone
2022-10-20 03:56:34 +00:00
newTag: 2.14.0
2021-08-26 16:42:48 +00:00
- name: drone/drone-runner-kube
2022-10-20 03:56:34 +00:00
newTag: 1.0.0-rc.3
2021-08-27 19:57:29 +00:00
- name: nextcloud
2021-08-29 05:15:00 +00:00
newName: badjware/nextcloud-tweak
2023-02-05 03:11:39 +00:00
newTag: 25.0.3
2021-08-27 19:57:29 +00:00
- name: postgres
2021-08-29 05:15:00 +00:00
newTag: 9.6.23
2021-08-28 03:54:21 +00:00
- name: redis
newTag: 6.2.10
2021-08-26 16:42:41 +00:00
2022-11-01 04:45:57 +00:00
configMapGenerator:
2023-02-06 15:31:21 +00:00
- name: replacements
namespace: default
literals:
- TRAEFIK_EXTERNAL_HOST=traefik.badjnet.home
- LONGHORN_EXTERNAL_HOST=longhorn.badjnet.home
2023-02-06 15:31:21 +00:00
- GITEA_EXTERNAL_HOST=code.badjware.dev
- GITEA_EXTERNAL_URL=https://code.badjware.dev
- GRAFANA_EXTERNAL_HOST=grafana.badjware.dev
- GRAFANA_EXTERNAL_URL=https://grafana.badjware.dev
2023-02-06 15:31:21 +00:00
- DRONE_EXTERNAL_HOST=drone.badjware.dev
- NEXTCLOUD_EXTERNAL_HOST=cloud.badjware.dev
- PROMETHEUS_EXTERNAL_HOST=prometheus.badjnet.home
# - name: ecommerce-exporter-config
# namespace: monitoring
# behavior: replace
# files:
# - ecommerce-exporter.yml=configurations/ecommerce-exporter/ecommerce-exporter.yml
2022-11-01 04:45:57 +00:00
2021-08-26 16:42:48 +00:00
secretGenerator:
2022-09-23 23:11:09 +00:00
- name: additional-scrape-configs
type: Opaque
namespace: monitoring
behavior: replace
files:
- prometheus-additional.yaml=configurations/prometheus/prometheus-additional.yaml
2021-08-26 16:42:41 +00:00
2023-02-05 03:11:39 +00:00
# allow "kubectl apply -l app.kubernetes.io/managed-by=kustomize --prune ..."
2021-09-26 21:00:29 +00:00
commonLabels:
2023-02-05 03:11:39 +00:00
app.kubernetes.io/managed-by: kustomize
2021-08-26 16:42:41 +00:00
patches:
2021-12-13 05:44:49 +00:00
- target:
version: v1
kind: Deployment
name: nextcloud
path: patches/nextcloud-deployment-patch.yaml
# - target:
# version: v1
# kind: Prometheus
# name: prometheus
# path: patches/prometheus-patch.yaml
2021-09-06 23:45:09 +00:00
# patchesStrategicMerge:
# - patches/blackbox-exporter-probe-patch.yaml
2023-02-06 15:31:21 +00:00
replacements:
- source:
kind: ConfigMap
name: 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: 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
2023-02-06 15:31:21 +00:00
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.GITEA_EXTERNAL_HOST
targets:
2023-02-21 02:26:50 +00:00
- select:
kind: Deployment
name: gitea
namespace: gitea
fieldPaths:
- spec.template.spec.containers.0.env.0.value
2023-02-06 15:31:21 +00:00
- select:
kind: Ingress
name: gitea
namespace: gitea
fieldPaths:
- spec.rules.0.host
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.GITEA_EXTERNAL_URL
targets:
- select:
kind: Deployment
name: gitea
namespace: gitea
fieldPaths:
2023-02-21 02:26:50 +00:00
- spec.template.spec.containers.0.env.1.value
- select:
kind: Deployment
name: drone-server
namespace: gitea
fieldPaths:
- spec.template.spec.containers.0.env.0.value
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.GRAFANA_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: grafana
namespace: monitoring
fieldPaths:
- spec.rules.0.host
- select:
kind: Deployment
name: grafana
namespace: monitoring
fieldPaths:
- spec.template.spec.containers.0.env.0.value
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.GRAFANA_EXTERNAL_URL
targets:
- select:
kind: Deployment
name: grafana
namespace: monitoring
fieldPaths:
- spec.template.spec.containers.0.env.1.value
2023-02-06 15:31:21 +00:00
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.DRONE_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: drone
namespace: gitea
fieldPaths:
- spec.rules.0.host
- select:
kind: Deployment
name: drone-server
namespace: gitea
fieldPaths:
- spec.template.spec.containers.0.env.1.value
- select:
kind: Deployment
name: gitea
namespace: gitea
fieldPaths:
2023-02-21 02:26:50 +00:00
- spec.template.spec.containers.0.env.2.value
- select:
kind: Deployment
name: drone-server
namespace: gitea
fieldPaths:
- spec.template.spec.containers.0.env.1.value
2023-02-06 15:31:21 +00:00
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.NEXTCLOUD_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: nextcloud
namespace: nextcloud
fieldPaths:
- spec.rules.0.host
- source:
kind: ConfigMap
name: replacements
namespace: default
fieldPath: data.PROMETHEUS_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: prometheus
namespace: monitoring
fieldPaths:
- spec.rules.0.host