mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
The CSI node and the status operator mount viewer certificates; the CSI controller (it deletes volumes) and the failback executor mount admin ones. The alpha certificate helper issues one certificate, role-file line and Secret per client, and the chart takes one Secret per client (tls.clientSecrets). A chart-render test fails when a client mounts a Secret other than its own, when an admin Secret appears outside the CSI controller and the failback executor, or when the role file gives a client more than its role. A node's refused reattach event is one log line and is not retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sw-block-csi-controller
|
|
namespace: kube-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: sw-block-csi-controller
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sw-block-csi-controller
|
|
spec:
|
|
serviceAccountName: sw-block-csi
|
|
containers:
|
|
- name: block-csi
|
|
image: sw-block-csi:local
|
|
imagePullPolicy: Never
|
|
args:
|
|
- "--endpoint=unix:///csi/csi.sock"
|
|
- "--master=$(BLOCKMASTER_ADDR)"
|
|
- "--node-id=$(NODE_NAME)"
|
|
- "--master-tls-cert=/etc/sw-block/master-tls/tls.crt"
|
|
- "--master-tls-key=/etc/sw-block/master-tls/tls.key"
|
|
- "--master-ca=/etc/sw-block/master-tls/ca.crt"
|
|
env:
|
|
- name: BLOCKMASTER_ADDR
|
|
value: "blockmaster.kube-system.svc.cluster.local:9333"
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
volumeMounts:
|
|
- name: master-tls
|
|
mountPath: /etc/sw-block/master-tls
|
|
readOnly: true
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
- name: csi-provisioner
|
|
image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0
|
|
args:
|
|
- "--csi-address=/csi/csi.sock"
|
|
- "--timeout=30s"
|
|
- "--leader-election=true"
|
|
- "--extra-create-metadata=true"
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
- name: csi-attacher
|
|
image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1
|
|
args:
|
|
- "--csi-address=/csi/csi.sock"
|
|
- "--timeout=30s"
|
|
- "--leader-election=true"
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
volumes:
|
|
- name: master-tls
|
|
secret:
|
|
secretName: sw-block-csi-controller-tls
|
|
- name: socket-dir
|
|
emptyDir: {}
|