aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/ovs-daemonset.yml30
1 files changed, 18 insertions, 12 deletions
diff --git a/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/ovs-daemonset.yml b/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/ovs-daemonset.yml
index 8a854c06..160bd531 100644
--- a/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/ovs-daemonset.yml
+++ b/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/ovs-daemonset.yml
@@ -1,5 +1,5 @@
kind: ClusterRole
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ovs-cni-marker-cr
rules:
@@ -14,7 +14,7 @@ rules:
- patch
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ovs-cni-marker-crb
roleRef:
@@ -58,10 +58,14 @@ spec:
- 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"
@@ -74,8 +78,16 @@ spec:
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
@@ -92,10 +104,4 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- volumes:
- - name: cnibin
- hostPath:
- path: /opt/cni/bin
- - name: ovs-var-run
- hostPath:
- path: /var/run/openvswitch
+