Skip to content

Commit

Permalink
WIP oVirt: Introduce qemu-guest-agent container
Browse files Browse the repository at this point in the history
ocp VMs  needs to run oVirt QEMU agent container.

Bug: 1764804
Signed-off-by: Evgeny Slutsky <[email protected]>
  • Loading branch information
eslutsky committed Sep 9, 2020
1 parent bfa831c commit e452a3a
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 0 deletions.
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: {}

0 comments on commit e452a3a

Please sign in to comment.