Add the ability to use custom Nagios plugins
Change-Id: Ib309499140994448d7b3e0eef0c875c6edb3a2ac
This commit is contained in:
parent
15f55f32ec
commit
5833278b81
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Nagios
|
||||
name: nagios
|
||||
version: 0.1.12
|
||||
version: 0.1.13
|
||||
home: https://www.nagios.org
|
||||
sources:
|
||||
- https://opendev.org/openstack/openstack-helm-addons
|
||||
|
27
nagios/templates/configmap-additional-plugins.yaml
Normal file
27
nagios/templates/configmap-additional-plugins.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.configmap_additional_plugins }}
|
||||
{{- $envAll := . }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: nagios-additional-plugins
|
||||
type: Opaque
|
||||
data:
|
||||
{{- range .Values.conf.nagios.additionalPlugins }}
|
||||
{{ .name }}: {{ .content | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
@ -239,6 +239,14 @@ spec:
|
||||
{{- end }}
|
||||
- name: pod-var-log
|
||||
mountPath: /opt/nagios/var/log
|
||||
{{- if not (empty .Values.conf.nagios.additionalPlugins) }}
|
||||
{{- range .Values.conf.nagios.additionalPlugins }}
|
||||
- name: additional-plugins
|
||||
mountPath: /usr/lib/nagios/plugins/{{ .name }}
|
||||
subPath: {{ .name }}
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- dict "enabled" .Values.manifests.certificates "name" $envAll.Values.endpoints.monitoring.auth.admin.secret.tls.internal "path" "/etc/ssl/certs" "certs" tuple "ca.crt" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
|
||||
volumes:
|
||||
- name: pod-tmp
|
||||
@ -255,5 +263,9 @@ spec:
|
||||
configMap:
|
||||
name: nagios-bin
|
||||
defaultMode: 0555
|
||||
- name: additional-plugins
|
||||
secret:
|
||||
secretName: nagios-additional-plugins
|
||||
defaultMode: 0755
|
||||
{{- dict "enabled" .Values.manifests.certificates "name" $envAll.Values.endpoints.monitoring.auth.admin.secret.tls.internal | include "helm-toolkit.snippets.tls_volume" | indent 8 }}
|
||||
{{- end }}
|
||||
|
@ -321,6 +321,7 @@ pod:
|
||||
|
||||
manifests:
|
||||
certificates: false
|
||||
configmap_additional_plugins: false
|
||||
configmap_bin: true
|
||||
configmap_etc: true
|
||||
deployment: true
|
||||
@ -1225,4 +1226,5 @@ conf:
|
||||
use_pending_states=1
|
||||
use_ssl_authentication=0
|
||||
query_es_clauses: null
|
||||
additionalPlugins: []
|
||||
...
|
||||
|
@ -13,4 +13,5 @@ nagios:
|
||||
- 0.1.10 Correct selenium v3 syntax
|
||||
- 0.1.11 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
|
||||
- 0.1.12 Update nagios image tag to latest-ubuntu_jammy
|
||||
- 0.1.13 Add the ability to use custom Nagios plugins
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user