Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable kube-health-monitor #5267

Merged
merged 2 commits into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .werft/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ components:

wsDaemon:
hostWorkspaceArea: /mnt/disks/ssd0/workspaces
disableKubeHealthMonitor: true
volumes:
- name: gcloud-tmp
hostPath:
Expand Down
30 changes: 30 additions & 0 deletions chart/templates/ws-daemon-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,36 @@ spec:
{{- if (or $comp.userNamespaces.shiftfsModuleLoader.enabled $comp.userNamespaces.seccompProfileInstaller.enabled) }}
initContainers:
{{- end }}
{{- if $comp.disableKubeHealthMonitor }}
- name: disable-kube-health-monitor
# 20.4 is Ubuntu Focal, which we run on GKE atm
image: ubuntu:20.04
securityContext:
privileged: true
procMount: Default
# use nsenter to run code on the node
command:
- /usr/bin/nsenter
- -t
- "1"
- -a
- /bin/bash
- -c
args:
- |
exec {BASH_XTRACEFD}>&1 # this causes 'set -x' to write to stdout insted of stderr
set -euExo pipefail
systemctl status kube-container-runtime-monitor.service || true
if [ "$(systemctl is-active kube-container-runtime-monitor.service)" == "active" ]
then
echo "kube-container-runtime-monitor.service is active"
systemctl stop kube-container-runtime-monitor.service
systemctl disable kube-container-runtime-monitor.service
systemctl status kube-container-runtime-monitor.service || true
else
echo "kube-container-runtime-monitor.service is not active, not doing anything"
fi
{{- end }}
{{- if $comp.setupSSDRaid }}
- name: raid-local-disks
image: scylladb/raid-setup:0.1
Expand Down