1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/fastdfs100-fastcfs-csi

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
node.yaml 4.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
vazmin Отправлено 17.03.2024 18:16 d5c7067
---
# Source: fcfs-csi-driver/templates/node.yaml
# Node Service
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: fcfs-csi-node
labels:
app.kubernetes.io/name: fcfs-csi-driver
spec:
selector:
matchLabels:
app: fcfs-csi-node
app.kubernetes.io/name: fcfs-csi-driver
template:
metadata:
labels:
app: fcfs-csi-node
app.kubernetes.io/name: fcfs-csi-driver
spec:
nodeSelector:
kubernetes.io/os: linux
hostNetwork: true
serviceAccountName: fcfs-csi-node-sa
priorityClassName: system-node-critical
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- operator: Exists
effect: NoExecute
tolerationSeconds: 300
containers:
- name: fcfs-plugin
securityContext:
privileged: true
capabilities:
add: [ "SYS_ADMIN" ]
image: vazmin/fcfs-csi:v0.4.6-fastcfs5.3.0-1
args:
- --node-server=true
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(CSI_NODE_NAME)
- --v=4
- "--domain-labels=kubernetes.io/hostname"
env:
- name: CSI_ENDPOINT
value: unix://csi/csi.sock
- name: CSI_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: kubelet-dir
mountPath: /var/lib/kubelet
mountPropagation: "Bidirectional"
- name: socket-dir
mountPath: /csi
- name: device-dir
mountPath: /dev
- mountPath: /etc/fastcfs-client-config
name: fcfs-config
- mountPath: /tmp/csi/keys
name: keys-tmp-dir
ports:
- name: healthz
containerPort: 9808
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 5
- name: node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.1.0
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=5
env:
- name: ADDRESS
value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/fcfs.csi.vazmin.github.io/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: liveness-probe
image: k8s.gcr.io/sig-storage/livenessprobe:v2.2.0
args:
- --csi-address=$(ADDRESS)
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
volumes:
- name: kubelet-dir
hostPath:
path: /var/lib/kubelet
type: Directory
- name: socket-dir
hostPath:
path: /var/lib/kubelet/plugins/fcfs.csi.vazmin.github.io/
type: DirectoryOrCreate
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
type: Directory
- name: device-dir
hostPath:
path: /dev
type: Directory
- name: fcfs-config
configMap:
name: fastcfs-client-config
items:
- key: fdir-cluster
path: fastcfs/fdir/cluster.conf
- key: fstore-cluster
path: fastcfs/fstore/cluster.conf
- key: auth-cluster
path: fastcfs/auth/cluster.conf
- key: auth-config
path: fastcfs/auth/auth.conf
- key: auth-client
path: fastcfs/auth/client.conf
- key: fuse-config
path: fastcfs/fcfs/fuse.conf
- name: keys-tmp-dir
emptyDir: {
medium: "Memory"
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/fastdfs100-fastcfs-csi.git
git@api.gitlife.ru:oschina-mirror/fastdfs100-fastcfs-csi.git
oschina-mirror
fastdfs100-fastcfs-csi
fastdfs100-fastcfs-csi
main