Last active
August 12, 2020 19:46
-
-
Save hexfusion/400d43d511a967814f5ccd8a7e09db8c to your computer and use it in GitHub Desktop.
atop monitor in machineconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: machineconfiguration.openshift.io/v1 | |
kind: MachineConfig | |
metadata: | |
creationTimestamp: null | |
labels: | |
machineconfiguration.openshift.io/role: master | |
name: 10-atop-monitor | |
spec: | |
config: | |
ignition: | |
config: {} | |
security: | |
tls: {} | |
timeouts: {} | |
version: 2.2.0 | |
networkd: {} | |
passwd: {} | |
storage: {} | |
systemd: | |
units: | |
- contents: | | |
[Unit] | |
Description=atop performance monitor | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=3 | |
DefaultDependencies=no | |
ExecStart=/usr/bin/podman run --rm \ | |
--volume /var/log/kube-apiserver:/var/log/kube-apiserver:z \ | |
--pid=host \ | |
docker.io/sttts/atop:latest \ | |
/usr/bin/atop -w /var/log/kube-apiserver/atop 1 | |
[Install] | |
WantedBy=sysinit.target | |
name: atop-monitor.service | |
enabled: true | |
osImageURL: "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment