1
0
Fork 0

v-m: Add component labels to configmaps

Adding a `component` label to each ConfigMap will make it possible to
target them specifically, e.g. with `kubectl apply -l`.
etcd
Dustin 2024-06-30 12:01:58 -05:00
parent 65e53ad16d
commit a8ef4c7a80
1 changed files with 11 additions and 0 deletions

View File

@ -32,28 +32,39 @@ configMapGenerator:
- scrape.yml
options:
disableNameSuffixHash: true
labels:
app.kubernetes.io/component: vmagent
- name: vmalert-rules
files:
- alerts.yml
options:
disableNameSuffixHash: true
labels:
app.kubernetes.io/component: vmalert
- name: alertmanager
files:
- alertmanager.yml=alertmanager.config.yml
options:
disableNameSuffixHash: true
labels:
app.kubernetes.io/component: alertmanager
- name: alertmanager-ntfy
files:
- config.yml=alertmanager-ntfy.config.yml
options:
labels:
app.kubernetes.io/component: alertmanager-ntfy
- name: blackbox
files:
- blackbox.yml
options:
disableNameSuffixHash: true
labels:
app.kubernetes.io/component: blackbox
replicas:
# When changing the number of vmstorage replicas, be sure to update