Files
ubicloud/kubernetes/csi/manifests/nodeplugin-daemonset.yaml
mohi-kalantari 22c3d989f4 Add CSI deployment manifests for Kubernetes
Add initial Ubicsi manifests for provisioner and node plugin
2025-07-25 15:20:55 +02:00

125 lines
3.6 KiB
YAML

---
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: ubicsi-nodeplugin
namespace: ubicsi
spec:
selector:
matchLabels:
app: ubicsi
component: nodeplugin
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: ubicsi
component: nodeplugin
spec:
serviceAccountName: ubicsi-nodeplugin
hostNetwork: true
hostPID: true
priorityClassName: system-node-critical
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: ubicsi
image: ubicloud/ubicsi:0.1.0
imagePullPolicy: IfNotPresent
env:
- name: NODE_ID
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: CSI_ENDPOINT
value: "unix:///csi/csi.sock"
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
volumeMounts:
- name: socket-dir
mountPath: /csi
- mountPath: /dev
name: host-dev
- mountPath: /run/mount
name: host-mount
- mountPath: /sys
name: host-sys
- mountPath: /etc/selinux
name: etc-selinux
readOnly: true
- mountPath: /lib/modules
name: lib-modules
readOnly: true
- name: plugin-dir
mountPath: /var/lib/kubelet/plugins
mountPropagation: Bidirectional
- name: mountpoint-dir
mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
- name: ubicsi-local-data
mountPath: /var/lib/ubicsi
mountPropagation: Bidirectional
resources:
{}
- name: driver-registrar
securityContext:
privileged: true
allowPrivilegeEscalation: true
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.13.0
imagePullPolicy: IfNotPresent
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
- "--kubelet-registration-path=/var/lib/kubelet/plugins/csi.ubicloud.com/csi.sock"
env:
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
resources:
{}
volumes:
- name: socket-dir
hostPath:
path: /var/lib/kubelet/plugins/csi.ubicloud.com
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins
type: Directory
- name: mountpoint-dir
hostPath:
path: /var/lib/kubelet/pods
type: DirectoryOrCreate
- name: host-dev
hostPath:
path: /dev
- name: host-mount
hostPath:
path: /run/mount
- name: host-sys
hostPath:
path: /sys
- name: etc-selinux
hostPath:
path: /etc/selinux
- name: lib-modules
hostPath:
path: /lib/modules
- name: ubicsi-local-data
hostPath:
path: /var/lib/ubicsi
type: DirectoryOrCreate