kind: ClusterRole
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ovs-cni-marker-cr
rules:
- patch
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ovs-cni-marker-crb
roleRef:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
- containers:
+ initContainers:
- name: ovs-cni-plugin
- image: quay.io/kubevirt/ovs-cni-plugin:latest
+ image: quay.io/kubevirt/ovs-cni-plugin:v0.22.0
imagePullPolicy: IfNotPresent
+ command: ["cp"]
+ args:
+ - "/ovs"
+ - "/host/opt/cni/bin/ovs"
resources:
requests:
cpu: "100m"
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
+ volumes:
+ - name: cnibin
+ hostPath:
+ path: /opt/cni/bin
+ - name: ovs-var-run
+ hostPath:
+ path: /var/run/openvswitch
+ containers:
- name: ovs-cni-marker
- image: quay.io/kubevirt/ovs-cni-marker:latest
+ image: quay.io/kubevirt/ovs-cni-marker:v0.22.0
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- volumes:
- - name: cnibin
- hostPath:
- path: /opt/cni/bin
- - name: ovs-var-run
- hostPath:
- path: /var/run/openvswitch
+