2022-03-30 08:06:07 +00:00
|
|
|
---
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: csi-nfsplugin-provisioner
|
|
|
|
labels:
|
|
|
|
app: csi-metrics
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: csi-nfsplugin-provisioner
|
|
|
|
ports:
|
|
|
|
- name: http-metrics
|
|
|
|
port: 8080
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 8682
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: csi-nfsplugin-provisioner
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: csi-nfsplugin-provisioner
|
|
|
|
replicas: 3
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: csi-nfsplugin-provisioner
|
|
|
|
spec:
|
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: app
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- csi-nfsplugin-provisioner
|
|
|
|
topologyKey: "kubernetes.io/hostname"
|
|
|
|
containers:
|
2024-02-14 12:23:11 +00:00
|
|
|
- name: csi-nfsplugin
|
2024-04-02 15:08:52 +00:00
|
|
|
image: quay.io/cephcsi/cephcsi:v3.11-canary
|
2024-02-14 12:23:11 +00:00
|
|
|
args:
|
|
|
|
- "--nodeid=$(NODE_ID)"
|
|
|
|
- "--type=nfs"
|
|
|
|
- "--controllerserver=true"
|
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
|
|
- "--v=5"
|
|
|
|
- "--drivername=nfs.csi.ceph.com"
|
|
|
|
- "--pidlimit=-1"
|
|
|
|
- "--enableprofiling=false"
|
|
|
|
env:
|
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
|
|
|
- name: NODE_ID
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
- name: CSI_ENDPOINT
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
|
|
|
- name: host-sys
|
|
|
|
mountPath: /sys
|
|
|
|
- name: ceph-csi-config
|
|
|
|
mountPath: /etc/ceph-csi-config/
|
|
|
|
- name: keys-tmp-dir
|
|
|
|
mountPath: /tmp/csi/keys
|
2022-03-30 08:06:07 +00:00
|
|
|
- name: csi-provisioner
|
2024-04-22 06:20:46 +00:00
|
|
|
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.1
|
2022-03-30 08:06:07 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
2022-07-26 04:52:19 +00:00
|
|
|
- "--v=1"
|
2022-03-30 08:06:07 +00:00
|
|
|
- "--timeout=150s"
|
|
|
|
- "--leader-election=true"
|
|
|
|
- "--retry-interval-start=500ms"
|
2022-07-20 06:34:10 +00:00
|
|
|
- "--feature-gates=HonorPVReclaimPolicy=true"
|
2022-06-15 07:14:49 +00:00
|
|
|
- "--prevent-volume-mode-conversion=true"
|
2022-03-30 08:06:07 +00:00
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
2022-05-02 11:18:20 +00:00
|
|
|
- name: csi-resizer
|
2024-04-22 06:20:46 +00:00
|
|
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.10.1
|
2022-05-02 11:18:20 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
2022-07-26 04:52:19 +00:00
|
|
|
- "--v=1"
|
2022-05-02 11:18:20 +00:00
|
|
|
- "--timeout=150s"
|
|
|
|
- "--leader-election"
|
|
|
|
- "--retry-interval-start=500ms"
|
|
|
|
- "--handle-volume-inuse-error=false"
|
2023-11-23 11:48:47 +00:00
|
|
|
- "--feature-gates=RecoverVolumeExpansionFailure=true"
|
2022-05-02 11:18:20 +00:00
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
2022-05-16 07:20:43 +00:00
|
|
|
- name: csi-snapshotter
|
2024-04-22 06:20:46 +00:00
|
|
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.2
|
2022-05-16 07:20:43 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
2022-07-26 04:52:19 +00:00
|
|
|
- "--v=1"
|
2022-05-16 07:20:43 +00:00
|
|
|
- "--timeout=150s"
|
|
|
|
- "--leader-election=true"
|
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
2022-03-30 08:06:07 +00:00
|
|
|
- name: liveness-prometheus
|
2024-04-02 15:08:52 +00:00
|
|
|
image: quay.io/cephcsi/cephcsi:v3.11-canary
|
2022-03-30 08:06:07 +00:00
|
|
|
args:
|
|
|
|
- "--type=liveness"
|
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
|
|
- "--metricsport=8682"
|
|
|
|
- "--metricspath=/metrics"
|
|
|
|
- "--polltime=60s"
|
|
|
|
- "--timeout=3s"
|
|
|
|
env:
|
|
|
|
- name: CSI_ENDPOINT
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
serviceAccountName: nfs-csi-provisioner
|
|
|
|
volumes:
|
|
|
|
- emptyDir:
|
|
|
|
medium: Memory
|
|
|
|
name: socket-dir
|
|
|
|
- name: host-sys
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
|
|
|
- name: ceph-csi-config
|
|
|
|
configMap:
|
|
|
|
name: ceph-csi-config
|
|
|
|
- emptyDir:
|
|
|
|
medium: Memory
|
|
|
|
name: keys-tmp-dir
|