Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #892 from wongma7/leader-election
Browse files Browse the repository at this point in the history
Replace per-PVC leader election with per-cluster
  • Loading branch information
wongma7 authored Aug 10, 2018
2 parents b73dc28 + 8052cf7 commit 2db4446
Show file tree
Hide file tree
Showing 135 changed files with 120,496 additions and 1,563 deletions.
74 changes: 39 additions & 35 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 2 additions & 11 deletions aws/efs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,24 +141,15 @@ If your cluster has RBAC enabled or you are running OpenShift you must authorize

#### RBAC
```console
$ kubectl create -f deploy/auth/serviceaccount.yaml
serviceaccount "efs-provisioner" created
$ kubectl create -f deploy/auth/clusterrole.yaml
clusterrole "efs-provisioner-runner" created
$ kubectl create -f deploy/auth/clusterrolebinding.yaml
clusterrolebinding "run-efs-provisioner" created
$ kubectl patch deployment efs-provisioner -p '{"spec":{"template":{"spec":{"serviceAccount":"efs-provisioner"}}}}'
$ kubectl create -f deploy/rbac.yaml
```

#### OpenShift
```console
$ oc create -f deploy/auth/serviceaccount.yaml
serviceaccount "efs-provisioner" created
$ oc create -f deploy/auth/openshift-clusterrole.yaml
$ oc create -f deploy/openshift-clusterrole.yaml
clusterrole "efs-provisioner-runner" created
$ oadm policy add-scc-to-user hostmount-anyuid system:serviceaccount:default:efs-provisioner
$ oadm policy add-cluster-role-to-user efs-provisioner-runner system:serviceaccount:default:efs-provisioner
$ oc patch deployment efs-provisioner -p '{"spec":{"template":{"spec":{"serviceAccount":"efs-provisioner"}}}}'
```
### SELinux
If SELinux is enforcing on the node where the provisioner runs, you must enable writing from a pod to a remote NFS server (EFS in this case) on the node by running:
Expand Down
12 changes: 0 additions & 12 deletions aws/efs/deploy/auth/clusterrolebinding.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions aws/efs/deploy/auth/serviceaccount.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions aws/efs/deploy/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: efs-provisioner
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
Expand All @@ -11,6 +16,7 @@ spec:
labels:
app: efs-provisioner
spec:
serviceAccount: efs-provisioner
containers:
- name: efs-provisioner
image: quay.io/external_storage/efs-provisioner:latest
Expand Down
Loading

0 comments on commit 2db4446

Please sign in to comment.