diff --git a/daemonset/kube-router-all-service-daemonset-advertise-routes.yaml b/daemonset/kube-router-all-service-daemonset-advertise-routes.yaml index 30d35cbd9..7118416ad 100644 --- a/daemonset/kube-router-all-service-daemonset-advertise-routes.yaml +++ b/daemonset/kube-router-all-service-daemonset-advertise-routes.yaml @@ -20,6 +20,7 @@ spec: - "--run-router=true" - "--run-firewall=true" - "--run-service-proxy=true" + - "--kubeconfig=/var/lib/kube-router/kubeconfig" - "--advertise-cluster-ip=true" - "--cluster-asn=64512" - "--peer-router=192.168.1.99" diff --git a/daemonset/kube-router-all-service-daemonset.yaml b/daemonset/kube-router-all-service-daemonset.yaml index f7eb47ac0..5ee6bec30 100644 --- a/daemonset/kube-router-all-service-daemonset.yaml +++ b/daemonset/kube-router-all-service-daemonset.yaml @@ -16,7 +16,7 @@ spec: containers: - name: kube-router image: cloudnativelabs/kube-router - args: ["--run-router=true", "--run-firewall=true", "--run-service-proxy=true"] + args: ["--run-router=true", "--run-firewall=true", "--run-service-proxy=true", "--kubeconfig=/var/lib/kube-router/kubeconfig"] securityContext: privileged: true imagePullPolicy: Always diff --git a/daemonset/kube-router-firewall-daemonset.yaml b/daemonset/kube-router-firewall-daemonset.yaml index bb3c11bf7..8917630c9 100644 --- a/daemonset/kube-router-firewall-daemonset.yaml +++ b/daemonset/kube-router-firewall-daemonset.yaml @@ -16,7 +16,7 @@ spec: containers: - name: kube-router image: cloudnativelabs/kube-router - args: ["--run-router=false", "--run-firewall=true", "--run-service-proxy=false"] + args: ["--run-router=false", "--run-firewall=true", "--run-service-proxy=false", "--kubeconfig=/var/lib/kube-router/kubeconfig"] securityContext: privileged: true imagePullPolicy: Always diff --git a/daemonset/kube-router-proxy-daemonset.yaml b/daemonset/kube-router-proxy-daemonset.yaml index 7dd8a3cb8..85a3710b2 100644 --- a/daemonset/kube-router-proxy-daemonset.yaml +++ b/daemonset/kube-router-proxy-daemonset.yaml @@ -16,7 +16,7 @@ spec: containers: - name: kube-router image: cloudnativelabs/kube-router - args: ["--run-router=false", "--run-firewall=false", "--run-service-proxy=true"] + args: ["--run-router=false", "--run-firewall=false", "--run-service-proxy=true", "--kubeconfig=/var/lib/kube-router/kubeconfig"] securityContext: privileged: true imagePullPolicy: Always