Skip to content

Commit 672dbaa

Browse files
authored
update: relocate configMaps and update buildConfig (#14)
1 parent 72b46d2 commit 672dbaa

40 files changed

+1197
-1161
lines changed

base/monitoring/grafana/grafana.Dashboards.ConfigMap.yaml

Lines changed: 0 additions & 501 deletions
This file was deleted.

base/monitoring/grafana/grafana.StatefulSet.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ spec:
5858
configMap:
5959
defaultMode: 0777
6060
name: grafana
61-
- name: dashboards
62-
configMap:
63-
defaultMode: 0777
64-
name: grafana-dashboards
6561
securityContext:
6662
runAsUser: 472
6763
fsGroup: 472

base/monitoring/grafana/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ resources:
44
- grafana.ConfigMap.yaml
55
- grafana.Service.yaml
66
- grafana.StatefulSet.yaml
7-
- grafana.Dashboards.ConfigMap.yaml
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- prometheus.ConfigMap.yaml
54
- prometheus.Deployment.yaml
65
- prometheus.PersistentVolumeClaim.yaml
76
- prometheus.Service.yaml
7+
8+
# Create ConfigMap with prometheus.yml
9+
configMapGenerator:
10+
- name: prometheus
11+
behavior: create
12+
files:
13+
- prometheus.yml
14+
literals:
15+
- extra_rules.yml=
16+
- prometheus_targets.yml=
17+
options:
18+
disableNameSuffixHash: true
19+
labels:
20+
deploy: sourcegraph
21+
sourcegraph-resource-requires: no-cluster-admin
22+
app.kubernetes.io/component: prometheus

base/monitoring/prometheus/prometheus.ConfigMap.yaml

Lines changed: 0 additions & 243 deletions
This file was deleted.

0 commit comments

Comments
 (0)