Revert "Use Deployment with leader election instead of StatefulSet"

This reverts commit a151bec94b.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2019-06-14 15:12:48 +05:30
committed by mergify[bot]
parent fb0cbef68b
commit 983f28ad2f
14 changed files with 90 additions and 38 deletions

View File

@ -87,9 +87,6 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
---
kind: RoleBinding

View File

@ -1,13 +1,25 @@
---
kind: Deployment
kind: Service
apiVersion: v1
metadata:
name: csi-rbdplugin-provisioner
labels:
app: csi-rbdplugin-provisioner
spec:
selector:
app: csi-rbdplugin-provisioner
ports:
- name: dummy
port: 12345
---
kind: StatefulSet
apiVersion: apps/v1beta1
metadata:
name: csi-rbdplugin-provisioner
spec:
replicas: 3
selector:
matchLabels:
app: csi-rbdplugin-provisioner
serviceName: "csi-rbdplugin-provisioner"
replicas: 1
template:
metadata:
labels:
@ -20,7 +32,6 @@ spec:
args:
- "--csi-address=$(ADDRESS)"
- "--v=5"
- --leader-election-type=leases"
env:
- name: ADDRESS
value: unix:///csi/csi-provisioner.sock