Skip to content

Commit

Permalink
Combine manifest files
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Pan committed Mar 29, 2019
1 parent 9ff4968 commit e84e69e
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 97 deletions.
89 changes: 0 additions & 89 deletions deploy/kubernetes/controller.yaml

This file was deleted.

95 changes: 95 additions & 0 deletions deploy/kubernetes/node.yaml → deploy/kubernetes/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

---

apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -127,3 +130,95 @@ spec:
hostPath:
path: /dev
type: Directory

---

apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-controller-sa
namespace: kube-system

---

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: external-attacher-role
namespace: default
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"]

---

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-attacher-role
namespace: default
subjects:
- kind: ServiceAccount
name: csi-controller-sa
namespace: kube-system
roleRef:
kind: ClusterRole
name: external-attacher-role
apiGroup: rbac.authorization.k8s.io

---

kind: StatefulSet
apiVersion: apps/v1beta1
metadata:
name: efs-csi-controller
namespace: kube-system
spec:
serviceName: efs-csi-controller
replicas: 1
template:
metadata:
labels:
app: efs-csi-controller
spec:
serviceAccount: csi-controller-sa
priorityClassName: system-cluster-critical
tolerations:
- key: CriticalAddonsOnly
operator: Exists
containers:
- name: efs-plugin
image: amazon/aws-efs-csi-driver:latest
imagePullPolicy: Always
args :
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=5
env:
- name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v0.4.2
imagePullPolicy: Always
args:
- --csi-address=$(ADDRESS)
- --v=5
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
volumes:
- name: socket-dir
emptyDir: {}
9 changes: 1 addition & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,10 @@ The following sections are Kubernetes specific. If you are Kubernetes user, use
* Since EFS is an elastic filesystem that doesn't really enforce any filesystem capacity. The actual storage capacity value in persistence volume and persistence volume claim is not used when creating the filesystem. However, since the storage capacity is a required field by Kubernetes, you must specify the value and you can use any valid value for the capacity.

### Installation
Checkout the project:
```sh
>> git clone https://github.com/aws/aws-efs-csi-driver.git
>> cd aws-efs-csi-driver
```

Deploy the driver:

```sh
>> kubectl apply -f deploy/kubernetes/controller.yaml
>> kubectl apply -f deploy/kubernetes/node.yaml
>> kubectl apply -f https://raw.githubusercontent.com/aws/aws-efs-csi-driver/master/deploy/kubernetes/manifest.yaml
```

### Examples
Expand Down

0 comments on commit e84e69e

Please sign in to comment.