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

[WIP] Bug 1872238: oVirt: Introduce qemu-guest-agent container #2042

Closed
wants to merge 1 commit into from
Closed
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
55 changes: 55 additions & 0 deletions manifests/ovirt/qemu-guest-agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
kind: Pod
apiVersion: v1
metadata:
name: qemu-guest-agent
namespace: openshift-ovirt-infra
creationTimestamp:
deletionGracePeriodSeconds: 65
labels:
app: qemu-guest-agent
spec:
volumes:
- name: dev
hostPath:
path: "/dev"
- name: virtio-ports
hostPath:
path: "/dev/virtio-ports"
- name: dbus
hostPath:
path: "/run/dbus"
- name: systemd
hostPath:
path: "/run/systemd"
- name: zoneinfo
hostPath:
path: "/usr/share/zoneinfo"

containers:
- name: qemu-guest-agent
securityContext:
privileged: true
image: registry.svc.ci.openshift.org/ovirt/qemu-guest-agent:4.2
resources:
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: dev
mountPath: "/dev"
- name: virtio-ports
mountPath: "/dev/virtio-ports"
- name: dbus
mountPath: "/run/dbus"
- name: systemd
mountPath: "/run/systemd"
- name: zoneinfo
mountPath: "/usr/share/zoneinfo"

terminationMessagePolicy: FallbackToLogsOnError
hostNetwork: true
tolerations:
- operator: Exists
priorityClassName: system-node-critical
status: {}
75 changes: 75 additions & 0 deletions pkg/operator/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pkg/operator/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ func appendManifestsByPlatform(manifests []manifest, infra configv1.Infrastructu
name: "manifests/ovirt/keepalived.conf.tmpl",
filename: "ovirt/static-pod-resources/keepalived/keepalived.conf.tmpl",
},
manifest{
name: "manifests/ovirt/qemu-guest-agent.yaml",
filename: "ovirt/manifests/qemu-guest-agent.yaml",
},
)
}
if infra.Status.PlatformStatus.VSphere != nil && infra.Status.PlatformStatus.VSphere.APIServerInternalIP != "" {
Expand Down
59 changes: 59 additions & 0 deletions templates/common/ovirt/files/ovirt-qemu-guest-agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
mode: 0644
path: "/etc/kubernetes/manifests/qemu-guest-agent.yaml"
contents:
inline: |
---
kind: Pod
apiVersion: v1
metadata:
name: qemu-guest-agent
namespace: openshift-ovirt-infra
creationTimestamp:
deletionGracePeriodSeconds: 65
labels:
app: qemu-guest-agent
spec:
volumes:
- name: dev
hostPath:
path: "/dev"
- name: virtio-ports
hostPath:
path: "/dev/virtio-ports"
- name: dbus
hostPath:
path: "/run/dbus"
- name: systemd
hostPath:
path: "/run/systemd"
- name: zoneinfo
hostPath:
path: "/usr/share/zoneinfo"

containers:
- name: qemu-guest-agent
securityContext:
privileged: true
image: registry.svc.ci.openshift.org/ovirt/qemu-guest-agent:4.2
resources:
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: dev
mountPath: "/dev"
- name: virtio-ports
mountPath: "/dev/virtio-ports"
- name: dbus
mountPath: "/run/dbus"
- name: systemd
mountPath: "/run/systemd"
- name: zoneinfo
mountPath: "/usr/share/zoneinfo"

terminationMessagePolicy: FallbackToLogsOnError
hostNetwork: true
tolerations:
- operator: Exists
priorityClassName: system-node-critical
status: {}