mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-24 05:50:22 +00:00
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: csi-snapshotter
|
||
|
---
|
||
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: csi-snapshotter
|
||
|
labels:
|
||
|
app: csi-snapshotter
|
||
|
spec:
|
||
|
selector:
|
||
|
app: csi-snapshotter
|
||
|
ports:
|
||
|
- name: dummy
|
||
|
port: 12345
|
||
|
---
|
||
|
kind: StatefulSet
|
||
|
apiVersion: apps/v1
|
||
|
metadata:
|
||
|
name: csi-snapshotter
|
||
|
spec:
|
||
|
serviceName: "csi-snapshotter"
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: csi-snapshotter
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: csi-snapshotter
|
||
|
spec:
|
||
|
serviceAccount: csi-snapshotter
|
||
|
containers:
|
||
|
- name: csi-snapshotter
|
||
|
image: quay.io/k8scsi/csi-snapshotter:v0.4.0
|
||
|
args:
|
||
|
- "--csi-address=$(ADDRESS)"
|
||
|
- "--connection-timeout=15s"
|
||
|
- "--v=5"
|
||
|
env:
|
||
|
- name: ADDRESS
|
||
|
value: /csi/csi.sock
|
||
|
imagePullPolicy: Always
|
||
|
securityContext:
|
||
|
privileged: true
|
||
|
volumeMounts:
|
||
|
- name: socket-dir
|
||
|
mountPath: /csi
|
||
|
imagePullPolicy: Always
|
||
|
volumes:
|
||
|
- hostPath:
|
||
|
path: /var/lib/kubelet/plugins/csi-rbdplugin
|
||
|
type: DirectoryOrCreate
|
||
|
name: socket-dir
|