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`.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user