commit
d8c5760642
5 changed files with 14 additions and 6 deletions
|
@ -22,6 +22,8 @@ kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
name: csi-s3-secret
|
name: csi-s3-secret
|
||||||
|
# Namespace depends on the configuration in the storageclass.yaml
|
||||||
|
namespace: kube-system
|
||||||
stringData:
|
stringData:
|
||||||
accessKeyID: <YOUR_ACCESS_KEY_ID>
|
accessKeyID: <YOUR_ACCESS_KEY_ID>
|
||||||
secretAccessKey: <YOUR_SECRET_ACCES_KEY>
|
secretAccessKey: <YOUR_SECRET_ACCES_KEY>
|
||||||
|
@ -67,7 +69,7 @@ csi-s3-pvc Bound pvc-c5d4634f-8507-11e8-9f33-0e243832354b 5Gi RWO
|
||||||
3. Create a test pod which mounts your volume:
|
3. Create a test pod which mounts your volume:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl create -f poc.yaml
|
kubectl create -f pod.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If the pod can start, everything should be working.
|
If the pod can start, everything should be working.
|
||||||
|
|
|
@ -23,7 +23,7 @@ rules:
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
- apiGroups: ["storage.k8s.io"]
|
- apiGroups: ["storage.k8s.io"]
|
||||||
resources: ["volumeattachments"]
|
resources: ["volumeattachments"]
|
||||||
verbs: ["get", "list", "watch", "update"]
|
verbs: ["get", "list", "watch", "update", "patch"]
|
||||||
---
|
---
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
@ -64,6 +64,9 @@ spec:
|
||||||
app: "csi-attacher-s3"
|
app: "csi-attacher-s3"
|
||||||
serviceName: "csi-attacher-s3"
|
serviceName: "csi-attacher-s3"
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: csi-attacher-s3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -72,7 +75,7 @@ spec:
|
||||||
serviceAccount: csi-attacher-sa
|
serviceAccount: csi-attacher-sa
|
||||||
containers:
|
containers:
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: quay.io/k8scsi/csi-attacher:v1.1.0
|
image: quay.io/k8scsi/csi-attacher:v2.2.0
|
||||||
args:
|
args:
|
||||||
- "--v=4"
|
- "--v=4"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
|
|
@ -56,7 +56,7 @@ spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: driver-registrar
|
- name: driver-registrar
|
||||||
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
|
image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
|
||||||
args:
|
args:
|
||||||
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
||||||
- "--v=4"
|
- "--v=4"
|
||||||
|
|
|
@ -63,6 +63,9 @@ spec:
|
||||||
app: "csi-provisioner-s3"
|
app: "csi-provisioner-s3"
|
||||||
serviceName: "csi-provisioner-s3"
|
serviceName: "csi-provisioner-s3"
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: csi-provisioner-s3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -71,7 +74,7 @@ spec:
|
||||||
serviceAccount: csi-provisioner-sa
|
serviceAccount: csi-provisioner-sa
|
||||||
containers:
|
containers:
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: quay.io/k8scsi/csi-provisioner:v1.1.0
|
image: quay.io/k8scsi/csi-provisioner:v1.3.1
|
||||||
args:
|
args:
|
||||||
- "--provisioner=ch.ctrox.csi.s3-driver"
|
- "--provisioner=ch.ctrox.csi.s3-driver"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
|
Loading…
Reference in a new issue