mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
35 lines
837 B
YAML
35 lines
837 B
YAML
kind: StatefulSet
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: csi-mockplugin-resizer
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: csi-mockplugin-resizer
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-mockplugin-resizer
|
|
spec:
|
|
serviceAccountName: csi-mock
|
|
containers:
|
|
- name: csi-resizer
|
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.6.0
|
|
args:
|
|
- "--v=5"
|
|
- "--csi-address=$(ADDRESS)"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
volumes:
|
|
- hostPath:
|
|
path: /var/lib/kubelet/plugins/csi-mock
|
|
type: DirectoryOrCreate
|
|
name: socket-dir
|