openstack-helm-infra/kubernetes-node-problem-detector/templates/bin/_node-problem-detector.sh.tpl
Pai, Radhika (rp592h) efac80f2d2 Updated the Node Problem Detector chart
The image for the npd is updated to use from the openstackhelm images
repo rather than the k8 image . The k8 image had some security
vulnerabities.
The version for the image is updated to latest ie v0.8.2.

Added the apparmor file.

Change-Id: I4cb40d8bac0533d516d2105f9589636c81fa4111
2020-07-20 08:55:36 -05:00

26 lines
890 B
Smarty

#!/bin/sh
{{/*
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.
*/}}
set -ex
exec /opt/node-problem-detector/bin/node-problem-detector \
{{- range $monitor, $monitorConfig := .Values.conf.monitors }}
{{- if $monitorConfig.enabled }}
--config.{{$monitor}}={{ include "helm-toolkit.utils.joinListWithComma" $monitorConfig.enabled }} \
{{- end }}
{{- end }}
--logtostderr \
--prometheus-address=0.0.0.0