[WIP] More work implementing create/delete volume and publish/unpublish volume
This commit is contained in:
@@ -5,28 +5,34 @@ metadata:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/name: p5x-controller
|
||||
name: p5x-controller
|
||||
namespace: default
|
||||
namespace: p5x-system
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: p5x-csi-controller
|
||||
serviceName: csi-controller
|
||||
serviceName: p5x-csi-controller
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: p5x-csi-controller
|
||||
spec:
|
||||
priorityClassName: system-cluster-critical
|
||||
serviceAccountName: csi-controller
|
||||
serviceAccountName: p5x-csi-controller
|
||||
tolerations:
|
||||
- key: CriticalAddonsOnly
|
||||
operator: Exists
|
||||
volumes:
|
||||
- emptyDir: {}
|
||||
name: socket-dir
|
||||
containers:
|
||||
- args:
|
||||
- name: csi-plugin
|
||||
args:
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
- --logtostderr
|
||||
# - --logtostderr
|
||||
- --nodeid=$(NODE_NAME)
|
||||
- --p5x-endpoint=http://172.20.0.22
|
||||
- --p5x-token=1
|
||||
env:
|
||||
- name: CSI_ENDPOINT
|
||||
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
@@ -34,7 +40,7 @@ spec:
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
image: csi-image
|
||||
image: registry.millslan.net/p5x-csi:latest
|
||||
livenessProbe:
|
||||
failureThreshold: 5
|
||||
httpGet:
|
||||
@@ -43,7 +49,6 @@ spec:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
name: csi-plugin
|
||||
ports:
|
||||
- containerPort: 9909
|
||||
name: healthz
|
||||
@@ -56,19 +61,38 @@ spec:
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
name: socket-dir
|
||||
- args:
|
||||
|
||||
|
||||
- name: csi-provisioner
|
||||
args:
|
||||
- --csi-address=$(ADDRESS)
|
||||
- --timeout=60s
|
||||
- --v=5
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
image: quay.io/k8scsi/csi-provisioner:v1.6.0
|
||||
name: csi-provisioner
|
||||
image: registry.k8s.io/sig-storage/csi-provisioner:v3.6.0
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
name: socket-dir
|
||||
- args:
|
||||
|
||||
|
||||
- name: csi-attacher
|
||||
args:
|
||||
- --csi-address=$(ADDRESS)
|
||||
- --timeout=60s
|
||||
- --v=5
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
image: registry.k8s.io/sig-storage/csi-attacher:v4.4.0
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
name: socket-dir
|
||||
|
||||
|
||||
- name: liveness-probe
|
||||
args:
|
||||
- --csi-address=$(ADDRESS)
|
||||
- --health-port=$(HEALTH_PORT)
|
||||
env:
|
||||
@@ -77,10 +101,6 @@ spec:
|
||||
- name: HEALTH_PORT
|
||||
value: "9909"
|
||||
image: quay.io/k8scsi/livenessprobe:v1.1.0
|
||||
name: liveness-probe
|
||||
volumeMounts:
|
||||
- mountPath: /csi
|
||||
name: socket-dir
|
||||
volumes:
|
||||
- emptyDir: {}
|
||||
name: socket-dir
|
||||
Reference in New Issue
Block a user