195 lines
4.9 KiB
YAML
195 lines
4.9 KiB
YAML
resources:
|
|
# - ../../namespaces/kubernetes-dashboard
|
|
- ../../namespaces/gitea
|
|
- ../../namespaces/monitoring
|
|
- ../../namespaces/nextcloud
|
|
|
|
# resources:
|
|
# - probes/external-services-bobcat-miner.yaml
|
|
|
|
buildMetadata:
|
|
- originAnnotations
|
|
|
|
images:
|
|
- name: gitea/gitea
|
|
newTag: 1.16.9
|
|
- name: grafana/grafana
|
|
newTag: 9.2.1
|
|
# - name: prom/node-exporter
|
|
# newTag: v0.18.1
|
|
- name: prom/blackbox-exporter
|
|
newName: badjware/blackbox-exporter-tweak
|
|
newTag: 0.21.1
|
|
- name: drone/drone
|
|
newTag: 2.14.0
|
|
- name: drone/drone-runner-kube
|
|
newTag: 1.0.0-rc.3
|
|
- name: nextcloud
|
|
newName: badjware/nextcloud-tweak
|
|
newTag: 25.0.3
|
|
- name: postgres
|
|
newTag: 9.6.23
|
|
- name: redis
|
|
newTag: 6.2.5
|
|
|
|
configMapGenerator:
|
|
- name: replacements
|
|
namespace: default
|
|
literals:
|
|
- 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
|
|
|
|
- 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
|
|
|
|
secretGenerator:
|
|
- name: additional-scrape-configs
|
|
type: Opaque
|
|
namespace: monitoring
|
|
behavior: replace
|
|
files:
|
|
- prometheus-additional.yaml=configurations/prometheus/prometheus-additional.yaml
|
|
|
|
# allow "kubectl apply -l app.kubernetes.io/managed-by=kustomize --prune ..."
|
|
commonLabels:
|
|
app.kubernetes.io/managed-by: kustomize
|
|
|
|
patches:
|
|
- 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
|
|
|
|
# patchesStrategicMerge:
|
|
# - patches/blackbox-exporter-probe-patch.yaml
|
|
|
|
replacements:
|
|
- source:
|
|
kind: ConfigMap
|
|
name: replacements
|
|
namespace: default
|
|
fieldPath: data.GITEA_EXTERNAL_HOST
|
|
targets:
|
|
- 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:
|
|
- spec.template.spec.containers.0.env.0.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
|
|
- 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:
|
|
- spec.template.spec.containers.0.env.1.value
|
|
- select:
|
|
kind: Deployment
|
|
name: drone-server
|
|
namespace: gitea
|
|
fieldPaths:
|
|
- spec.template.spec.containers.0.env.1.value
|
|
- 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 |