-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
104 lines (103 loc) · 2.73 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
base:
image: k8s.gcr.io/pause:3.6
ports:
- "8080:8080"
plugin:
build:
context: .
target: develop
network_mode: "service:base"
environment:
# NODE_NAME: worker-11
KUBECONFIG: /etc/kubernetes/kubeconfig
# UNSAFEMOUNT: "true"
command:
- "make"
- "run"
volumes:
- type: volume
source: socket-dir
target: /csi
- type: bind
source: ./hack
target: /etc/kubernetes
- type: bind
source: ./
target: /src
csi-attacher:
image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1
network_mode: "service:base"
command:
- "--v=5"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "--default-fstype=ext4"
- "--kubeconfig=/etc/kubernetes/kubeconfig"
volumes:
- type: volume
source: socket-dir
target: /csi
- type: bind
source: ./hack
target: /etc/kubernetes
csi-resizer:
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.2
network_mode: "service:base"
command:
- "--v=5"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "-workers=1"
- "--kubeconfig=/etc/kubernetes/kubeconfig"
volumes:
- type: volume
source: socket-dir
target: /csi
- type: bind
source: ./hack
target: /etc/kubernetes
csi-provisioner:
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.2
network_mode: "service:base"
command:
- "--v=5"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "--default-fstype=ext4"
- "--feature-gates=Topology=true"
- "--enable-capacity"
- "--capacity-ownerref-level=-1"
- "--capacity-poll-interval=2m"
# - "--extra-create-metadata=true"
# - "--node-deployment"
- "--kubeconfig=/etc/kubernetes/kubeconfig"
environment:
NAMESPACE: csi-proxmox
POD_NAME: csi-provisioner
# NODE_NAME: worker-11
volumes:
- type: volume
source: socket-dir
target: /csi
- type: bind
source: ./hack
target: /etc/kubernetes
# csi-node-driver-registrar:
# image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1
# network_mode: "service:base"
# command:
# - "--v=5"
# - "--csi-address=unix:///csi/csi.sock"
# - "--kubelet-registration-path=/var/lib/kubelet/plugins/csi.proxmox.sinextra.dev/csi.sock"
# environment:
# KUBE_NODE_NAME: worker-11
# volumes:
# - type: volume
# source: socket-dir
# target: /csi
# - type: bind
# source: ./hack
# target: /etc/kubernetes
volumes:
socket-dir: