-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We split the deployment manifests and make them referencable through kustomize. This simplifies the deployment for users as they don't necessarily need to clone the repo.
- Loading branch information
Showing
15 changed files
with
568 additions
and
521 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
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
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,138 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: exoscale-csi-controller | ||
namespace: kube-system | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: exoscale-csi-provisioner | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["storageclasses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["events"] | ||
verbs: ["list", "watch", "create", "patch"] | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["csinodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["volumeattachments", "volumeattachments/status"] | ||
verbs: ["get", "list", "watch", "update", "create", "patch"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshots", "volumesnapshots/status", "volumesnapshotclasses", "volumesnapshotcontents", "volumesnapshotcontents/status"] | ||
verbs: ["get", "list", "watch", "update", "create", "patch"] | ||
- apiGroups: ["coordination.k8s.io"] | ||
resources: ["leases"] | ||
verbs: ["get", "watch", "list", "delete", "update", "create"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: exoscale-csi-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: exoscale-csi-controller | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: exoscale-csi-provisioner | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: exoscale-csi-attacher | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "watch", "list", "update", "patch"] | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get", "watch", "list"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["csinodes"] | ||
verbs: ["get", "watch", "list", "update", "patch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["volumeattachments", "volumeattachments/status"] | ||
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: exoscale-csi-attacher | ||
subjects: | ||
- kind: ServiceAccount | ||
name: exoscale-csi-controller | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: exoscale-csi-attacher | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: exoscale-csi-snapshotter | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes", "persistentvolumeclaims", "events"] | ||
verbs: ["get", "watch", "list", "create", "update", "patch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["storageclasses"] | ||
verbs: ["get", "watch", "list"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshots", "volumesnapshots/status", "volumesnapshotclasses", "volumesnapshotcontents"] | ||
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"] | ||
- apiGroups: ["apiextensions.k8s.io"] | ||
resources: ["customresourcedefinitions", "leases"] | ||
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: exoscale-csi-snapshotter | ||
subjects: | ||
- kind: ServiceAccount | ||
name: exoscale-csi-controller | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: exoscale-csi-snapshotter | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: external-resizer | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes", "persistentvolumeclaims", "persistentvolumeclaims/status"] | ||
verbs: ["get", "watch", "list", "create", "update", "patch"] | ||
- apiGroups: [""] | ||
resources: ["pods", "events"] | ||
verbs: ["get", "watch", "list"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: csi-resizer-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: exoscale-csi-controller | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: external-resizer | ||
apiGroup: rbac.authorization.k8s.io |
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,172 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: exoscale-csi-controller | ||
namespace: kube-system | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: exoscale-csi-controller | ||
replicas: 2 | ||
template: | ||
metadata: | ||
labels: | ||
app: exoscale-csi-controller | ||
spec: | ||
dnsPolicy: Default | ||
priorityClassName: system-cluster-critical | ||
serviceAccount: exoscale-csi-controller | ||
containers: | ||
- name: exoscale-csi-plugin | ||
image: exoscale/csi-driver:latest | ||
imagePullPolicy: Always | ||
args : | ||
- "--endpoint=$(CSI_ENDPOINT)" | ||
- "--mode=controller" | ||
- "--v=4" | ||
env: | ||
- name: CSI_ENDPOINT | ||
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
envFrom: | ||
- secretRef: | ||
name: exoscale-credentials | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
ports: | ||
- name: healthz | ||
containerPort: 9808 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: healthz | ||
initialDelaySeconds: 10 | ||
timeoutSeconds: 3 | ||
periodSeconds: 2 | ||
failureThreshold: 5 | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 500Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: csi-provisioner | ||
image: registry.k8s.io/sig-storage/csi-provisioner:v3.6.0 | ||
args: | ||
- "--v=5" | ||
- "--csi-address=$(CSI_ADDRESS)" | ||
- "--leader-election" | ||
- "--feature-gates=Topology=true" | ||
- "--default-fstype=ext4" | ||
env: | ||
- name: CSI_ADDRESS | ||
value: /var/lib/csi/sockets/pluginproxy/csi.sock | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 500Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: csi-attacher | ||
image: registry.k8s.io/sig-storage/csi-attacher:v4.4.1 | ||
args: | ||
- "--v=5" | ||
- "--csi-address=$(CSI_ADDRESS)" | ||
- "--leader-election" | ||
env: | ||
- name: CSI_ADDRESS | ||
value: /var/lib/csi/sockets/pluginproxy/csi.sock | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 500Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: csi-snapshotter | ||
image: registry.k8s.io/sig-storage/csi-snapshotter:v6.3.0 | ||
args: | ||
- "--v=5" | ||
- "--csi-address=$(CSI_ADDRESS)" | ||
- "--leader-election" | ||
env: | ||
- name: CSI_ADDRESS | ||
value: /var/lib/csi/sockets/pluginproxy/csi.sock | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
resources: | ||
limits: | ||
cpu: 400m | ||
memory: 200Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: snapshot-controller | ||
image: registry.k8s.io/sig-storage/snapshot-controller:v6.3.0 | ||
args: | ||
- "--v=5" | ||
- "--leader-election" | ||
resources: | ||
limits: | ||
cpu: 400m | ||
memory: 200Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: csi-resizer | ||
image: registry.k8s.io/sig-storage/csi-resizer:v1.9.0 | ||
args: | ||
- "--v=5" | ||
- "--csi-address=$(CSI_ADDRESS)" | ||
- "--leader-election" | ||
env: | ||
- name: CSI_ADDRESS | ||
value: /var/lib/csi/sockets/pluginproxy/csi.sock | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 500Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: liveness-probe | ||
image: registry.k8s.io/sig-storage/livenessprobe:v2.11.0 | ||
args: | ||
- "--csi-address=$(CSI_ADDRESS)" | ||
env: | ||
- name: CSI_ADDRESS | ||
value: /var/lib/csi/sockets/pluginproxy/csi.sock | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
volumes: | ||
- name: socket-dir | ||
emptyDir: {} |
Oops, something went wrong.