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 - scrape.yml
options: options:
disableNameSuffixHash: true disableNameSuffixHash: true
labels:
app.kubernetes.io/component: vmagent
- name: vmalert-rules - name: vmalert-rules
files: files:
- alerts.yml - alerts.yml
options: options:
disableNameSuffixHash: true disableNameSuffixHash: true
labels:
app.kubernetes.io/component: vmalert
- name: alertmanager - name: alertmanager
files: files:
- alertmanager.yml=alertmanager.config.yml - alertmanager.yml=alertmanager.config.yml
options: options:
disableNameSuffixHash: true disableNameSuffixHash: true
labels:
app.kubernetes.io/component: alertmanager
- name: alertmanager-ntfy - name: alertmanager-ntfy
files: files:
- config.yml=alertmanager-ntfy.config.yml - config.yml=alertmanager-ntfy.config.yml
options:
labels:
app.kubernetes.io/component: alertmanager-ntfy
- name: blackbox - name: blackbox
files: files:
- blackbox.yml - blackbox.yml
options: options:
disableNameSuffixHash: true disableNameSuffixHash: true
labels:
app.kubernetes.io/component: blackbox
replicas: replicas:
# When changing the number of vmstorage replicas, be sure to update # When changing the number of vmstorage replicas, be sure to update