forked from eksctl-io/eksctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eksctl-io#171 from mesosphere/csi-images
CSI image version and deployment manifests updates
- Loading branch information
Showing
23 changed files
with
234 additions
and
1,205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: csi-controller-sa | ||
namespace: kube-system | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: external-provisioner-role | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "list", "watch", "create", "delete"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims"] | ||
verbs: ["get", "list", "watch", "update"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["storageclasses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["events"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch"] | ||
|
||
--- | ||
|
||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: csi-provisioner-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: csi-controller-sa | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: external-provisioner-role | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: external-attacher-role | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "list", "watch", "update"] | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["csi.storage.k8s.io"] | ||
resources: ["csinodeinfos"] | ||
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-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: csi-controller-sa | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: external-attacher-role | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: cluster-driver-registrar-role | ||
rules: | ||
- apiGroups: ["apiextensions.k8s.io"] | ||
resources: ["customresourcedefinitions"] | ||
verbs: ["create", "list", "watch", "delete"] | ||
- apiGroups: ["csi.storage.k8s.io"] | ||
resources: ["csidrivers"] | ||
verbs: ["create", "delete"] | ||
|
||
--- | ||
|
||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: csi-driver-registrar-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: csi-controller-sa | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: cluster-driver-registrar-role | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
|
||
kind: StatefulSet | ||
apiVersion: apps/v1beta1 | ||
metadata: | ||
name: csi-controller | ||
namespace: kube-system | ||
spec: | ||
serviceName: csi-controller | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: csi-controller | ||
spec: | ||
serviceAccount: csi-controller-sa | ||
priorityClassName: system-cluster-critical | ||
tolerations: | ||
- key: CriticalAddonsOnly | ||
operator: Exists | ||
containers: | ||
- name: ebs-plugin | ||
image: amazon/aws-ebs-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 | ||
- name: AWS_ACCESS_KEY_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aws-secret | ||
key: key_id | ||
- name: AWS_SECRET_ACCESS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: aws-secret | ||
key: access_key | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
- name: cluster-driver-registrar | ||
imagePullPolicy: Always | ||
image: quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1 | ||
args: | ||
- --csi-address=$(ADDRESS) | ||
- --driver-requires-attachment=true | ||
- --v=5 | ||
env: | ||
- name: ADDRESS | ||
value: /csi/csi.sock | ||
volumeMounts: | ||
- name: plugin-dir | ||
mountPath: /csi | ||
- name: csi-provisioner | ||
image: quay.io/k8scsi/csi-provisioner:v1.0.1 | ||
imagePullPolicy: Always | ||
args: | ||
- --provisioner=ebs.csi.aws.com | ||
- --csi-address=$(ADDRESS) | ||
- --v=5 | ||
- --feature-gates=Topology=true | ||
env: | ||
- name: ADDRESS | ||
value: /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:v1.0.1 | ||
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: {} | ||
- name: plugin-dir | ||
hostPath: | ||
path: /var/lib/kubelet/plugins/ebs.csi.aws.com/ | ||
type: DirectoryOrCreate | ||
- name: registration-dir | ||
hostPath: | ||
path: /var/lib/kubelet/plugins_registry/ | ||
type: Directory |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.