Skip to content
Snippets Groups Projects
Verified Commit 2cd8568c authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(system-upgrade): Add temprature monitoring tools

This patch should help to identify and monitore cpu tempratures of the
hosts.
parent 05f80df6
No related branches found
No related tags found
No related merge requests found
---
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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment