2022-09-23 23:11:09 +00:00
|
|
|
resources:
|
2021-09-06 23:45:09 +00:00
|
|
|
# - ../../namespaces/kubernetes-dashboard
|
2021-08-26 16:42:48 +00:00
|
|
|
- ../../namespaces/gitea
|
|
|
|
- ../../namespaces/monitoring
|
2021-08-27 19:57:29 +00:00
|
|
|
- ../../namespaces/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
|
|
|
|
2023-02-05 04:24:50 +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
|
2021-09-11 03:30:38 +00:00
|
|
|
- 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
|
2021-09-11 03:30:38 +00:00
|
|
|
- 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
|
2021-08-29 05:15:00 +00:00
|
|
|
newTag: 6.2.5
|
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:
|
|
|
|
- GITEA_EXTERNAL_HOST=code.badjware.dev
|
2023-02-07 05:02:13 +00:00
|
|
|
- GITEA_EXTERNAL_URL=https://code.badjware.dev
|
|
|
|
|
2023-02-06 15:31:21 +00:00
|
|
|
- DRONE_EXTERNAL_HOST=drone.badjware.dev
|
|
|
|
- NEXTCLOUD_EXTERNAL_HOST=cloud.badjware.dev
|
|
|
|
- GRAFANA_EXTERNAL_HOST=grafana.badjware.dev
|
|
|
|
- PROMETHEUS_EXTERNAL_HOST=prometheus.badjnet.home
|
2023-02-07 05:02:13 +00:00
|
|
|
# - 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:
|
|
|
|
- name: drone-secret
|
|
|
|
type: Opaque
|
|
|
|
namespace: gitea
|
|
|
|
behavior: replace
|
|
|
|
literals:
|
|
|
|
- rpc_secret=${ssm:/k3s/prod/drone/gitea/rpc_secret}
|
2021-09-02 04:00:42 +00:00
|
|
|
- database_secret=${ssm:/k3s/prod/drone/gitea/database_secret}
|
2021-08-26 16:42:48 +00:00
|
|
|
# https://docs.drone.io/server/provider/gitea/
|
|
|
|
- name: drone-gitea-oauth-secret
|
|
|
|
type: Opaque
|
|
|
|
namespace: gitea
|
|
|
|
behavior: replace
|
|
|
|
literals:
|
|
|
|
- client_id=${ssm:/k3s/prod/drone/gitea/client_id}
|
|
|
|
- client_secret=${ssm:/k3s/prod/drone/gitea/client_secret}
|
2021-08-28 03:54:21 +00:00
|
|
|
- name: postgres-credentials
|
2021-08-27 19:57:29 +00:00
|
|
|
type: Opaque
|
|
|
|
namespace: nextcloud
|
|
|
|
behavior: replace
|
|
|
|
literals:
|
|
|
|
- database=nextcloud
|
|
|
|
- username=nextcloud
|
|
|
|
- password=${ssm:/k3s/prod/nextcloud/postgres/password}
|
2021-08-28 03:54:21 +00:00
|
|
|
- name: redis-credentials
|
|
|
|
type: Opaque
|
|
|
|
namespace: nextcloud
|
|
|
|
behavior: replace
|
|
|
|
literals:
|
|
|
|
- password=${ssm:/k3s/prod/nextcloud/redis/password}
|
2022-05-26 20:16:05 +00:00
|
|
|
- name: grafana-agent
|
|
|
|
namespace: monitoring
|
|
|
|
behavior: replace
|
|
|
|
files:
|
|
|
|
- agent.yaml=configurations/grafana-agent/agent.yaml
|
2022-08-28 22:29:26 +00:00
|
|
|
- name: grafana-config
|
|
|
|
type: Opaque
|
2023-02-05 03:11:39 +00:00
|
|
|
namespace: monitoring
|
2022-08-28 22:29:26 +00:00
|
|
|
behavior: replace
|
|
|
|
files:
|
|
|
|
- custom.ini=configurations/grafana/custom.ini
|
2022-05-26 17:14:50 +00:00
|
|
|
# - name: grafana-cloud-credentials
|
|
|
|
# type: Opaque
|
|
|
|
# namespace: monitoring
|
|
|
|
# behavior: replace
|
|
|
|
# literals:
|
|
|
|
# - username=${ssm:/k3s/prod/monitoring/grafana-cloud/username}
|
|
|
|
# - password=${ssm:/k3s/prod/monitoring/grafana-cloud/password}
|
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
|
|
|
|
2021-08-26 16:42:48 +00:00
|
|
|
transformers:
|
|
|
|
- transformers/ssm-secrets.yaml
|
2021-08-26 16:42:41 +00:00
|
|
|
|
2021-12-13 05:44:49 +00:00
|
|
|
patchesJson6902:
|
|
|
|
- target:
|
|
|
|
version: v1
|
|
|
|
kind: Deployment
|
|
|
|
name: nextcloud
|
|
|
|
path: patches/nextcloud-deployment-patch.yaml
|
2022-05-26 17:14:50 +00:00
|
|
|
# - 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.GITEA_EXTERNAL_HOST
|
|
|
|
targets:
|
|
|
|
- select:
|
|
|
|
kind: Ingress
|
|
|
|
name: gitea
|
|
|
|
namespace: gitea
|
|
|
|
fieldPaths:
|
|
|
|
- spec.rules.0.host
|
2023-02-07 05:02:13 +00:00
|
|
|
- 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
|
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
|
2023-02-07 05:02:13 +00:00
|
|
|
- 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
|
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.GRAFANA_EXTERNAL_HOST
|
|
|
|
targets:
|
|
|
|
- select:
|
|
|
|
kind: Ingress
|
|
|
|
name: grafana
|
|
|
|
namespace: monitoring
|
|
|
|
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
|