mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 13:30:23 +00:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: csi-hostpath-provisioner
|
|
labels:
|
|
app: csi-hostpath-provisioner
|
|
spec:
|
|
selector:
|
|
app: csi-hostpath-provisioner
|
|
ports:
|
|
- name: dummy
|
|
port: 12345
|
|
|
|
---
|
|
kind: StatefulSet
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: csi-hostpath-provisioner
|
|
spec:
|
|
serviceName: "csi-hostpath-provisioner"
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: csi-hostpath-provisioner
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-hostpath-provisioner
|
|
spec:
|
|
serviceAccountName: csi-provisioner
|
|
containers:
|
|
- name: csi-provisioner
|
|
image: gcr.io/gke-release/csi-provisioner:v1.0.0-gke.0
|
|
args:
|
|
- "--provisioner=csi-hostpath"
|
|
- "--csi-address=$(ADDRESS)"
|
|
- "--connection-timeout=15s"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
volumes:
|
|
- hostPath:
|
|
path: /var/lib/kubelet/plugins/csi-hostpath
|
|
type: DirectoryOrCreate
|
|
name: socket-dir
|