General:
- none of the sidecars use CSI_ENDPOINT
external-provisioner:
- Do we need to setup -provisioner?
- Shouldn't csi-provisioner.go:96 of the provisioner use the name from returned by the endpoint?
- Got error:
$ kk logs csi-mock-driver-0 csi-external-provisioner
container_linux.go:247: starting container process caused "exec: \"/opt/csi-flex/flex-provision\": stat /opt/csi-flex/flex-provision: no such file or directory"
driver-registrar
- What is the expected yaml/spec for this?
- Error
* $ kk logs csi-mock-driver-0 csi-driver-registrar
E1207 05:25:14.707114 1 main.go:65] Node name not found. The environment variable KUBE_NODE_NAME is empty.
flexdriver
- Why does the flexdriver use "Biderectional"
csi-attacher
- All works
Yaml used to test:
kind: StatefulSet
apiVersion: apps/v1beta1
metadata:
name: csi-mock-driver
spec:
serviceName: "csi-attacher"
replicas: 1
template:
metadata:
labels:
app: csi-mock-driver
spec:
serviceAccount: csi-attacher
containers:
- name: csi-external-provisioner
image: docker.io/k8scsi/csi-provision
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/mock.socket
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-driver-registrar
image: docker.io/k8scsi/driver-registrar
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/mock.socket
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-attacher
image: docker.io/k8scsi/csi-attacher:0.1
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/mock.socket
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: mock-driver
image: docker.io/k8scsi/mock-plugin:0.1
env:
- name: CSI_ENDPOINT
value: /var/lib/csi/sockets/pluginproxy/mock.socket
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
volumes:
- name: socket-dir
emptyDir: