Created
November 3, 2022 20:05
-
-
Save jabbas/cc97ee0430c5c537c9b440263d7aa9bb to your computer and use it in GitHub Desktop.
This file contains 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: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: qemu-guest-agent | |
namespace: kube-system | |
spec: | |
selector: | |
matchLabels: | |
name: qemu-guest-agent | |
template: | |
metadata: | |
labels: | |
name: qemu-guest-agent | |
spec: | |
volumes: | |
- name: virtio | |
hostPath: | |
path: /dev/virtio-ports | |
type: '' | |
containers: | |
- name: qemu-guest-agent | |
image: alpine | |
command: ['sh'] | |
args: | |
- -c | |
- apk add --no-cache qemu-guest-agent && qemu-ga | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- name: virtio | |
mountPath: /dev/virtio-ports |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brilliant script!
sadly it doesnt detect the IP addresses correctly,
its showing mine as a 10.244 range which is actually the pod range and not the ip of the host itself !