Skip to content

Commit

Permalink
Merge pull request #51 from wongma7/apps-manifest
Browse files Browse the repository at this point in the history
Clean up deploy manifest for 1.14
  • Loading branch information
k8s-ci-robot committed Jul 24, 2019
2 parents cb3267f + 6b143af commit ee468e4
Showing 1 changed file with 10 additions and 147 deletions.
157 changes: 10 additions & 147 deletions deploy/kubernetes/manifest.yaml
@@ -1,4 +1,3 @@

---

apiVersion: v1
Expand All @@ -9,51 +8,8 @@ metadata:

---

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-node
namespace: kube-system
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "update"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["csi.storage.k8s.io"]
resources: ["csinodeinfos"]
verbs: ["get", "list", "watch", "update"]

---

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-node
namespace: default
subjects:
- kind: ServiceAccount
name: csi-node-sa
namespace: default
roleRef:
kind: ClusterRole
name: csi-node
apiGroup: rbac.authorization.k8s.io

---

kind: DaemonSet
apiVersion: apps/v1beta2
apiVersion: apps/v1
metadata:
name: efs-csi-node
namespace: kube-system
Expand Down Expand Up @@ -87,16 +43,10 @@ spec:
mountPropagation: "Bidirectional"
- name: plugin-dir
mountPath: /csi
- name: device-dir
mountPath: /dev
- name: csi-driver-registrar
image: quay.io/k8scsi/driver-registrar:v0.4.2
imagePullPolicy: Always
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
args:
- --csi-address=$(ADDRESS)
- --mode=node-register
- --driver-requires-attachment=true
- --pod-info-mount-version="v1"
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=5
env:
Expand All @@ -118,107 +68,20 @@ spec:
hostPath:
path: /var/lib/kubelet
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/efs.csi.aws.com/
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins/
path: /var/lib/kubelet/plugins_registry/
type: Directory
- name: device-dir
- name: plugin-dir
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
path: /var/lib/kubelet/plugins/efs.csi.aws.com/
type: DirectoryOrCreate

---

kind: StatefulSet
apiVersion: apps/v1beta1
apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver
metadata:
name: efs-csi-controller
namespace: kube-system
name: efs.csi.aws.com
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: {}
attachRequired: false

0 comments on commit ee468e4

Please sign in to comment.