2019-06-20 19:30:40 +00:00
|
|
|
---
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: csi-cephfsplugin-provisioner
|
|
|
|
labels:
|
2019-08-21 09:28:02 +00:00
|
|
|
app: csi-metrics
|
2019-06-20 19:30:40 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
|
|
|
ports:
|
|
|
|
- name: http-metrics
|
|
|
|
port: 8080
|
|
|
|
protocol: TCP
|
2019-08-27 18:55:15 +00:00
|
|
|
targetPort: 8681
|
2019-06-20 19:30:40 +00:00
|
|
|
|
2019-02-07 09:59:26 +00:00
|
|
|
---
|
2019-07-25 06:49:44 +00:00
|
|
|
kind: Deployment
|
2019-06-19 09:05:44 +00:00
|
|
|
apiVersion: apps/v1
|
2019-06-14 09:42:48 +00:00
|
|
|
metadata:
|
|
|
|
name: csi-cephfsplugin-provisioner
|
|
|
|
spec:
|
2019-06-19 09:05:44 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
2019-07-25 06:49:44 +00:00
|
|
|
replicas: 3
|
2018-07-18 14:48:43 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
|
|
|
spec:
|
2020-09-20 00:43:26 +00:00
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: app
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- csi-cephfsplugin-provisioner
|
|
|
|
topologyKey: "kubernetes.io/hostname"
|
2021-04-05 11:43:45 +00:00
|
|
|
serviceAccountName: cephfs-csi-provisioner
|
2020-05-05 08:28:39 +00:00
|
|
|
priorityClassName: system-cluster-critical
|
2018-07-18 14:48:43 +00:00
|
|
|
containers:
|
2024-02-14 12:23:11 +00:00
|
|
|
- name: csi-cephfsplugin
|
2024-12-10 10:01:42 +00:00
|
|
|
image: quay.io/cephcsi/cephcsi:v3.13.0
|
2024-02-14 12:23:11 +00:00
|
|
|
args:
|
|
|
|
- "--nodeid=$(NODE_ID)"
|
|
|
|
- "--type=cephfs"
|
|
|
|
- "--controllerserver=true"
|
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
|
|
- "--v=5"
|
|
|
|
- "--drivername=cephfs.csi.ceph.com"
|
|
|
|
- "--pidlimit=-1"
|
|
|
|
- "--enableprofiling=false"
|
|
|
|
- "--setmetadata=true"
|
|
|
|
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
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
# - name: KMS_CONFIGMAP_NAME
|
|
|
|
# value: encryptionConfig
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
|
|
|
- name: host-sys
|
|
|
|
mountPath: /sys
|
|
|
|
- name: lib-modules
|
|
|
|
mountPath: /lib/modules
|
|
|
|
readOnly: true
|
|
|
|
- name: host-dev
|
|
|
|
mountPath: /dev
|
|
|
|
- name: ceph-config
|
|
|
|
mountPath: /etc/ceph/
|
|
|
|
- name: ceph-csi-config
|
|
|
|
mountPath: /etc/ceph-csi-config/
|
|
|
|
- name: keys-tmp-dir
|
|
|
|
mountPath: /tmp/csi/keys
|
|
|
|
- name: ceph-csi-encryption-kms-config
|
|
|
|
mountPath: /etc/ceph-csi-encryption-kms-config/
|
2018-07-18 14:48:43 +00:00
|
|
|
- name: csi-provisioner
|
2024-05-27 06:20:25 +00:00
|
|
|
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
|
2018-07-18 14:48:43 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
2022-07-26 04:52:19 +00:00
|
|
|
- "--v=1"
|
2019-11-26 08:29:28 +00:00
|
|
|
- "--timeout=150s"
|
2020-09-30 04:58:08 +00:00
|
|
|
- "--leader-election=true"
|
Move locks to more granular locking than CPU count based
As detailed in issue #279, current lock scheme has hash
buckets that are count of CPUs. This causes a lot of contention
when parallel requests are made to the CSI plugin. To reduce
lock contention, this commit introduces granular locks per
identifier.
The commit also changes the timeout for gRPC requests to Create
and Delete volumes, as the current timeout is 10s (kubernetes
documentation says 15s but code defaults are 10s). A virtual
setup takes about 12-15s to complete a request at times, that leads
to unwanted retries of the same request, hence the increased
timeout to enable operation completion with minimal retries.
Tests to create PVCs before and after these changes look like so,
Before:
Default master code + sidecar provisioner --timeout option set
to 30 seconds
20 PVCs
Creation: 3 runs, 396/391/400 seconds
Deletion: 3 runs, 218/271/118 seconds
- Once was stalled for more than 8 minutes and cancelled the run
After:
Current commit + sidecar provisioner --timeout option set to 30 sec
20 PVCs
Creation: 3 runs, 42/59/65 seconds
Deletion: 3 runs, 32/32/31 seconds
Fixes: #279
Signed-off-by: ShyamsundarR <srangana@redhat.com>
2019-06-22 16:43:28 +00:00
|
|
|
- "--retry-interval-start=500ms"
|
2022-06-15 07:14:49 +00:00
|
|
|
- "--feature-gates=HonorPVReclaimPolicy=true"
|
|
|
|
- "--prevent-volume-mode-conversion=true"
|
2020-10-22 05:07:05 +00:00
|
|
|
- "--extra-create-metadata=true"
|
2024-10-04 06:51:23 +00:00
|
|
|
- "--http-endpoint=$(POD_IP):8090"
|
2018-07-18 14:48:43 +00:00
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
2019-03-18 06:50:06 +00:00
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2024-10-04 06:51:23 +00:00
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2018-07-18 14:48:43 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
2024-10-04 06:51:23 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8090
|
|
|
|
name: http-endpoint
|
|
|
|
protocol: TCP
|
2018-07-18 14:48:43 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2019-03-18 06:50:06 +00:00
|
|
|
mountPath: /csi
|
2019-11-25 11:09:24 +00:00
|
|
|
- name: csi-resizer
|
2024-05-27 06:20:25 +00:00
|
|
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1
|
2019-11-25 11:09:24 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
2022-07-26 04:52:19 +00:00
|
|
|
- "--v=1"
|
2020-09-30 04:58:08 +00:00
|
|
|
- "--timeout=150s"
|
2019-11-25 11:09:24 +00:00
|
|
|
- "--leader-election"
|
2020-05-22 06:23:58 +00:00
|
|
|
- "--retry-interval-start=500ms"
|
2020-09-30 04:58:08 +00:00
|
|
|
- "--handle-volume-inuse-error=false"
|
2022-05-04 06:19:19 +00:00
|
|
|
- "--feature-gates=RecoverVolumeExpansionFailure=true"
|
2024-10-04 06:51:23 +00:00
|
|
|
- "--http-endpoint=$(POD_IP):8091"
|
2019-11-25 11:09:24 +00:00
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2024-10-04 06:51:23 +00:00
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2019-11-25 11:09:24 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
2024-10-04 06:51:23 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8091
|
|
|
|
name: http-endpoint
|
|
|
|
protocol: TCP
|
2019-11-25 11:09:24 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2020-08-03 09:47:00 +00:00
|
|
|
mountPath: /csi
|
|
|
|
- name: csi-snapshotter
|
2024-05-27 06:20:25 +00:00
|
|
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
|
2020-08-03 09:47:00 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
2022-07-26 04:52:19 +00:00
|
|
|
- "--v=1"
|
2020-08-03 09:47:00 +00:00
|
|
|
- "--timeout=150s"
|
|
|
|
- "--leader-election=true"
|
2022-06-08 07:11:41 +00:00
|
|
|
- "--extra-create-metadata=true"
|
2024-02-20 07:48:37 +00:00
|
|
|
- "--enable-volume-group-snapshots=true"
|
2024-10-04 06:51:23 +00:00
|
|
|
- "--http-endpoint=$(POD_IP):8092"
|
2020-08-03 09:47:00 +00:00
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2024-10-04 06:51:23 +00:00
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2020-08-03 09:47:00 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
2024-10-04 06:51:23 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8092
|
|
|
|
name: http-endpoint
|
|
|
|
protocol: TCP
|
2020-08-03 09:47:00 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2019-11-25 11:09:24 +00:00
|
|
|
mountPath: /csi
|
2019-06-20 19:30:40 +00:00
|
|
|
- name: liveness-prometheus
|
2024-12-10 10:01:42 +00:00
|
|
|
image: quay.io/cephcsi/cephcsi:v3.13.0
|
2019-06-20 19:30:40 +00:00
|
|
|
args:
|
|
|
|
- "--type=liveness"
|
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
2019-08-27 18:55:15 +00:00
|
|
|
- "--metricsport=8681"
|
2019-08-21 09:28:02 +00:00
|
|
|
- "--metricspath=/metrics"
|
2019-06-20 19:30:40 +00:00
|
|
|
- "--polltime=60s"
|
|
|
|
- "--timeout=3s"
|
|
|
|
env:
|
|
|
|
- name: CSI_ENDPOINT
|
2019-09-17 10:30:16 +00:00
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2019-06-20 19:30:40 +00:00
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2024-10-04 06:51:23 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8681
|
|
|
|
name: http-metrics
|
|
|
|
protocol: TCP
|
2019-06-20 19:30:40 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
|
|
|
imagePullPolicy: "IfNotPresent"
|
2018-07-18 14:48:43 +00:00
|
|
|
volumes:
|
|
|
|
- name: socket-dir
|
2020-01-13 04:05:50 +00:00
|
|
|
emptyDir: {
|
|
|
|
medium: "Memory"
|
|
|
|
}
|
2019-01-23 14:14:11 +00:00
|
|
|
- name: host-sys
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
|
|
|
- name: lib-modules
|
|
|
|
hostPath:
|
|
|
|
path: /lib/modules
|
|
|
|
- name: host-dev
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
2021-08-26 05:28:02 +00:00
|
|
|
- name: ceph-config
|
|
|
|
configMap:
|
|
|
|
name: ceph-config
|
2019-05-28 19:03:18 +00:00
|
|
|
- name: ceph-csi-config
|
|
|
|
configMap:
|
|
|
|
name: ceph-csi-config
|
2019-06-25 19:29:17 +00:00
|
|
|
- name: keys-tmp-dir
|
|
|
|
emptyDir: {
|
|
|
|
medium: "Memory"
|
|
|
|
}
|
2022-08-19 13:25:13 +00:00
|
|
|
- name: ceph-csi-encryption-kms-config
|
|
|
|
configMap:
|
|
|
|
name: ceph-csi-encryption-kms-config
|