diff --git a/submariner-operator/templates/operator-deployment.yaml b/submariner-operator/templates/operator-deployment.yaml index 5f84969..ff9f0d2 100644 --- a/submariner-operator/templates/operator-deployment.yaml +++ b/submariner-operator/templates/operator-deployment.yaml @@ -27,8 +27,8 @@ spec: name: {{ template "submariner.fullname" . }} spec: containers: - - command: - - submariner-operator + - args: + - --leader-elect env: - name: WATCH_NAMESPACE valueFrom: diff --git a/submariner-operator/templates/rbac.yaml b/submariner-operator/templates/rbac.yaml index 488b1ca..790fc9c 100644 --- a/submariner-operator/templates/rbac.yaml +++ b/submariner-operator/templates/rbac.yaml @@ -87,6 +87,17 @@ rules: - servicediscoveries/finalizers verbs: - update + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - list + - watch + - create + - update + - delete --- kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1