From 2cd8568c56368145004f34bf7a45a167df18e04d Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Tue, 25 Jan 2022 03:58:16 +0100 Subject: [PATCH] feat(system-upgrade): Add temprature monitoring tools This patch should help to identify and monitore cpu tempratures of the hosts. --- .../temprature-monitoring.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 infrastructure/system-upgrades/temprature-monitoring.yaml diff --git a/infrastructure/system-upgrades/temprature-monitoring.yaml b/infrastructure/system-upgrades/temprature-monitoring.yaml new file mode 100644 index 000000000..269f5aee2 --- /dev/null +++ b/infrastructure/system-upgrades/temprature-monitoring.yaml @@ -0,0 +1,41 @@ +--- +apiVersion: v1 +kind: Secret +metadata: + name: fedora-install-temperature-monitoring + namespace: system-upgrade +type: Opaque +stringData: + install.sh: | + #!/bin/sh + set -e + set -x + systemd-run --same-dir --wait --collect --service-type=exec dnf install -y lm_sensors + sensors-detect --auto +--- +apiVersion: upgrade.cattle.io/v1 +kind: Plan +metadata: + name: fedora-temperature-monitoring + namespace: system-upgrade +spec: + concurrency: 1 + nodeSelector: + matchExpressions: + - key: feature.node.kubernetes.io/system-os_release.ID + operator: In + values: + - fedora + - key: feature.node.kubernetes.io/system-os_release.VERSION_ID.major + operator: In + values: + - "35" + serviceAccountName: system-upgrade + secrets: + - name: fedora-install-temperature-monitoring + path: /host/run/system-upgrade/secrets/fedora + version: 1.0.0 + upgrade: + image: registry.fedoraproject.org/fedora:35 + command: ["chroot", "/host"] + args: ["sh", "/run/system-upgrade/secrets/fedora/install.sh"] -- GitLab