-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
131 lines (130 loc) · 3.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
131 lines (130 loc) · 3.46 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
services:
base:
image: k8s.gcr.io/pause:3.10
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
- type: bind
source: ../proxmox
target: /proxmox
csi-attacher:
image: registry.k8s.io/sig-storage/csi-attacher:v4.10.0
restart: always
network_mode: "service:base"
command:
- "--v=5"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "--timeout=1m"
- "--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:v2.0.0
restart: always
network_mode: "service:base"
command:
- "--v=5"
- "--workers=1"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "--timeout=1m"
- "--kubeconfig=/etc/kubernetes/kubeconfig"
# - "--feature-gates=VolumeAttributesClass=true"
volumes:
- type: volume
source: socket-dir
target: /csi
- type: bind
source: ./hack
target: /etc/kubernetes
csi-snapshotter:
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.4.0
restart: always
network_mode: "service:base"
command:
- "--v=5"
- "--worker-threads=1"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "--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:v6.0.0
restart: always
network_mode: "service:base"
command:
- "--v=5"
- "--csi-address=unix:///csi/csi.sock"
- "--leader-election=false"
- "--timeout=1m"
- "--default-fstype=ext4"
# - "--feature-gates=VolumeAttributesClass=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.14.0
# 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: