Skip to content

Commit

Permalink
Update document for xns-ss-provision for separate controller
Browse files Browse the repository at this point in the history
  • Loading branch information
mkimuram committed Jun 6, 2022
1 parent 75eacaa commit 5a5d362
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions xns-ss-provision.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,35 @@ curl -L https://raw.githubusercontent.com/mkimuram/external-provisioner/transfer
kubectl apply -f https://raw.githubusercontent.com/mkimuram/external-provisioner/transfer-by-reference/deploy/kubernetes/rbac.yaml
```

- Build external-provisioner with this feature and update the image for csi-hostpathplugin
- Build external-provisioner with this feature

```bash
cd /tmp
git clone --depth=1 -b transfer-by-reference https://github.com/mkimuram/external-provisioner.git
git clone --depth=1 -b separate-controller https://github.com/mkimuram/external-provisioner.git
cd external-provisioner
make container-csi-provisioner
kubectl set image statefulset csi-hostpathplugin csi-provisioner=csi-provisioner:latest
make container-csi-xns-ss-provisioner
```

- Add csi-xns-ss-provisioner container to csi-hostpathplugin statefulset
```bash
kubectl edit sts csi-hostpathplugin -n default
```

(Add below yaml in `spec.template.spec.containers`).

```yaml
- name: csi-xns-ss-provisioner
image: csi-xns-ss-provisioner:latest
imagePullPolicy: IfNotPresent
args:
- -v=5
- --csi-address=/csi/csi.sock
- --feature-gates=Topology=true
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
```
Depending on the environment, the container image above may need to be imported.
Expand Down

0 comments on commit 5a5d362

Please sign in to comment.