diff --git a/controllers/submariner/globalnet_resources.go b/controllers/submariner/globalnet_resources.go index 82abc499df..01dd4b7cee 100644 --- a/controllers/submariner/globalnet_resources.go +++ b/controllers/submariner/globalnet_resources.go @@ -71,7 +71,7 @@ func newGlobalnetDaemonSet(cr *v1alpha1.Submariner, name string) *appsv1.DaemonS Spec: corev1.PodSpec{ Volumes: []corev1.Volume{ {Name: "host-run-xtables-lock", VolumeSource: corev1.VolumeSource{HostPath: &corev1.HostPathVolumeSource{ - Path: "/run/xtables.lock", + Path: "/run/xtables.lock", Type: ptr.To(corev1.HostPathFileOrCreate), }}}, }, Containers: []corev1.Container{ diff --git a/controllers/submariner/route_agent_resources.go b/controllers/submariner/route_agent_resources.go index 4d7954b576..75d70d0375 100644 --- a/controllers/submariner/route_agent_resources.go +++ b/controllers/submariner/route_agent_resources.go @@ -74,7 +74,7 @@ func newRouteAgentDaemonSet(cr *v1alpha1.Submariner, name string) *appsv1.Daemon Volumes: []corev1.Volume{ // We need to share /run/xtables.lock with the host for iptables {Name: "host-run-xtables-lock", VolumeSource: corev1.VolumeSource{HostPath: &corev1.HostPathVolumeSource{ - Path: "/run/xtables.lock", + Path: "/run/xtables.lock", Type: ptr.To(corev1.HostPathFileOrCreate), }}}, // We need to share /run/openvswitch/db.sock with the host for OVS {Name: "host-run-openvswitch-db-sock", VolumeSource: corev1.VolumeSource{HostPath: &corev1.HostPathVolumeSource{