mirror of
https://github.com/bitnami/charts.git
synced 2026-04-02 07:17:26 +08:00
[bitnami/metallb] Adding the MetalLB Helm Chart. (#2068)
* added objectstorageConfig to the sidecar container * Bumped version and added documentation of the added values. * Fixed indentation of environment variables * Rename ConfigMap to Secret and added to production-values * Fixed missing space * added the metallb chart * Update bitnami/metallb/Chart.yaml Co-Authored-By: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * Update bitnami/metallb/README.md Co-Authored-By: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * Update bitnami/metallb/templates/tests/test-connection.yaml Co-Authored-By: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * Update bitnami/metallb/values.yaml Co-Authored-By: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * Update bitnami/metallb/values.yaml Co-Authored-By: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * Update README.md * Update bitnami/metallb/README.md Co-Authored-By: Carlos Rodríguez Hernández <carrodher1179@gmail.com> * fixed `---` * Added templating * Fixed some bugs and added securityContext also bumped metallb appVersion * Bumped versions * Added metallb templates * Added metallb 0.9.2 changes to the chart * Added metallb 0.9.2 changes to the chart * Added missing EOL * Fixed the appVersion * added secret autogeneration for the members to join * Bumped version accordingly to cellebyte/helm * Fixed missing EOL * Bumped templates to the new versiona and bumped metallb version * Fixed some template behaviour * Bumped chart version * Bumped image tags to use the latest version * Run the container as Root because the speaker needs the capability to use root specific network features * fixed typo and email * use bitnami images * added app.kubernetes.io/component app.kubernetes.io/app * Use nindent * Fixed nindent and some old labels * added more configurable options * Fixed nindent stuff * Fixed trim-suffix * added templates to handle secrets and configmaps the proper way * fixed wrong documentation * Fixed template executing if configInline defined * fixed the psps * Make psp also autogenerated * remove one eol * Added eol * Added the missing doc pieces * added ref for securityContext * Fixed securityContext * added some NOTES after the deployment Co-authored-by: Carlos Rodríguez Hernández <carrodher1179@gmail.com>
This commit is contained in:
27
bitnami/metallb/templates/prometheus/metallb.alerts.yaml
Normal file
27
bitnami/metallb/templates/prometheus/metallb.alerts.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
{{- if and .Values.prometheus.prometheusRule.enabled .Values.prometheus.enabled }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ include "metallb.fullname" . }}
|
||||
labels: {{ include "metallb.labels" . | nindent 4 }}
|
||||
spec:
|
||||
groups:
|
||||
- name: {{ include "metallb.fullname" . }}.alerts
|
||||
rules:
|
||||
- alert: MetalLBStaleConfig
|
||||
annotations:
|
||||
message: {{`'{{ $labels.job }} - MetalLB {{ $labels.container_name }} on {{ $labels.instance
|
||||
}} has a stale config for > 1 minute'`}}
|
||||
expr: metallb_k8s_client_config_stale_bool{job="{{ .Values.prometheus.serviceMonitor.jobLabel }}"} == 1
|
||||
for: 1m
|
||||
labels:
|
||||
severity: warning
|
||||
- alert: MetalLBConfigNotLoaded
|
||||
annotations:
|
||||
message: {{`'{{ $labels.job }} - MetalLB {{ $labels.container_name }} on {{ $labels.instance
|
||||
}} has not loaded for > 1 minute'`}}
|
||||
expr: metallb_k8s_client_config_loaded_bool{job="{{ .Values.prometheus.serviceMonitor.jobLabel }}"} == 0
|
||||
for: 1m
|
||||
labels:
|
||||
severity: warning
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user