@@ -46,8 +46,8 @@ metadata:
46
46
app : clustered-samba
47
47
spec :
48
48
ports :
49
- - port : 445
50
- name : smb
49
+ - port : 445
50
+ name : smb
51
51
clusterIP : None
52
52
selector :
53
53
app : clustered-samba
@@ -73,218 +73,218 @@ spec:
73
73
imagePullPolicy : Always
74
74
name : init
75
75
args :
76
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
77
- - " --id=demo"
78
- - " --skip-if-file=/var/lib/ctdb/shared/nodes"
79
- - " init"
76
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
77
+ - " --id=demo"
78
+ - " --skip-if-file=/var/lib/ctdb/shared/nodes"
79
+ - " init"
80
80
env : []
81
81
securityContext :
82
82
allowPrivilegeEscalation : true
83
83
volumeMounts :
84
- - mountPath : " /var/lib/samba"
85
- name : samba-state-dir
86
- - mountPath : " /var/lib/ctdb/shared"
87
- name : ctdb-shared
84
+ - mountPath : " /var/lib/samba"
85
+ name : samba-state-dir
86
+ - mountPath : " /var/lib/ctdb/shared"
87
+ name : ctdb-shared
88
88
- image : quay.io/samba.org/samba-server:latest
89
89
imagePullPolicy : Always
90
90
name : import
91
91
args :
92
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
93
- - " --id=demo"
94
- - " --skip-if-file=/var/lib/ctdb/shared/nodes"
95
- - " import"
92
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
93
+ - " --id=demo"
94
+ - " --skip-if-file=/var/lib/ctdb/shared/nodes"
95
+ - " import"
96
96
securityContext :
97
97
allowPrivilegeEscalation : true
98
98
volumeMounts :
99
- - mountPath : " /var/lib/samba"
100
- name : samba-state-dir
101
- - mountPath : " /var/lib/ctdb/shared"
102
- name : ctdb-shared
99
+ - mountPath : " /var/lib/samba"
100
+ name : samba-state-dir
101
+ - mountPath : " /var/lib/ctdb/shared"
102
+ name : ctdb-shared
103
103
- image : quay.io/samba.org/samba-server:latest
104
104
imagePullPolicy : Always
105
105
name : import-users
106
106
args :
107
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
108
- - " --id=demo"
109
- - " --skip-if-file=/var/lib/ctdb/shared/nodes"
110
- - " import-users"
107
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
108
+ - " --id=demo"
109
+ - " --skip-if-file=/var/lib/ctdb/shared/nodes"
110
+ - " import-users"
111
111
securityContext :
112
112
allowPrivilegeEscalation : true
113
113
volumeMounts :
114
- - mountPath : " /var/lib/samba"
115
- name : samba-state-dir
116
- - mountPath : " /var/lib/ctdb/shared"
117
- name : ctdb-shared
114
+ - mountPath : " /var/lib/samba"
115
+ name : samba-state-dir
116
+ - mountPath : " /var/lib/ctdb/shared"
117
+ name : ctdb-shared
118
118
- image : quay.io/samba.org/samba-server:latest
119
119
imagePullPolicy : Always
120
120
name : ctdb-migrate
121
121
args :
122
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
123
- - " --id=demo"
124
- - " --skip-if-file=/var/lib/ctdb/shared/nodes"
125
- - " ctdb-migrate"
126
- - " --dest-dir=/var/lib/ctdb/persistent"
122
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
123
+ - " --id=demo"
124
+ - " --skip-if-file=/var/lib/ctdb/shared/nodes"
125
+ - " ctdb-migrate"
126
+ - " --dest-dir=/var/lib/ctdb/persistent"
127
127
env :
128
- - name : SAMBACC_CTDB
129
- value : " ctdb-is-experimental"
128
+ - name : SAMBACC_CTDB
129
+ value : " ctdb-is-experimental"
130
130
securityContext :
131
131
allowPrivilegeEscalation : true
132
132
volumeMounts :
133
- - mountPath : " /var/lib/samba"
134
- name : samba-state-dir
135
- - mountPath : " /var/lib/ctdb/persistent"
136
- name : ctdb-persistent
137
- - mountPath : " /var/lib/ctdb/shared"
138
- name : ctdb-shared
133
+ - mountPath : " /var/lib/samba"
134
+ name : samba-state-dir
135
+ - mountPath : " /var/lib/ctdb/persistent"
136
+ name : ctdb-persistent
137
+ - mountPath : " /var/lib/ctdb/shared"
138
+ name : ctdb-shared
139
139
- image : quay.io/samba.org/samba-server:latest
140
140
imagePullPolicy : Always
141
141
name : ctdb-set-node
142
142
args :
143
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
144
- - " --id=demo"
145
- - " ctdb-set-node"
146
- - " --hostname=$(HOSTNAME)"
147
- - " --take-node-number-from-hostname=after-last-dash"
143
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
144
+ - " --id=demo"
145
+ - " ctdb-set-node"
146
+ - " --hostname=$(HOSTNAME)"
147
+ - " --take-node-number-from-hostname=after-last-dash"
148
148
env :
149
- - name : SAMBACC_CTDB
150
- value : " ctdb-is-experimental"
151
- - name : HOSTNAME
152
- valueFrom :
153
- fieldRef :
154
- fieldPath : metadata.name
149
+ - name : SAMBACC_CTDB
150
+ value : " ctdb-is-experimental"
151
+ - name : HOSTNAME
152
+ valueFrom :
153
+ fieldRef :
154
+ fieldPath : metadata.name
155
155
securityContext :
156
156
allowPrivilegeEscalation : true
157
157
volumeMounts :
158
- - mountPath : " /var/lib/ctdb/shared"
159
- name : ctdb-shared
160
- - mountPath : " /etc/ctdb"
161
- name : ctdb-config
158
+ - mountPath : " /var/lib/ctdb/shared"
159
+ name : ctdb-shared
160
+ - mountPath : " /etc/ctdb"
161
+ name : ctdb-config
162
162
- image : quay.io/samba.org/samba-server:latest
163
163
imagePullPolicy : Always
164
164
name : ctdb-must-have-node
165
165
args :
166
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
167
- - " --id=demo"
168
- - " ctdb-must-have-node"
169
- - " --hostname=$(HOSTNAME)"
170
- - " --take-node-number-from-hostname=after-last-dash"
166
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
167
+ - " --id=demo"
168
+ - " ctdb-must-have-node"
169
+ - " --hostname=$(HOSTNAME)"
170
+ - " --take-node-number-from-hostname=after-last-dash"
171
171
env :
172
- - name : SAMBACC_CTDB
173
- value : " ctdb-is-experimental"
174
- - name : HOSTNAME
175
- valueFrom :
176
- fieldRef :
177
- fieldPath : metadata.name
172
+ - name : SAMBACC_CTDB
173
+ value : " ctdb-is-experimental"
174
+ - name : HOSTNAME
175
+ valueFrom :
176
+ fieldRef :
177
+ fieldPath : metadata.name
178
178
securityContext :
179
179
allowPrivilegeEscalation : true
180
180
volumeMounts :
181
- - mountPath : " /var/lib/ctdb/shared"
182
- name : ctdb-shared
183
- - mountPath : " /etc/ctdb"
184
- name : ctdb-config
181
+ - mountPath : " /var/lib/ctdb/shared"
182
+ name : ctdb-shared
183
+ - mountPath : " /etc/ctdb"
184
+ name : ctdb-config
185
185
containers :
186
186
- image : quay.io/samba.org/samba-server:latest
187
187
imagePullPolicy : Always
188
188
name : ctdb
189
189
args :
190
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
191
- - " --id=demo"
192
- - " --debug-delay=2"
193
- - " run"
194
- - " ctdbd"
195
- - " --setup=smb_ctdb"
196
- - " --setup=ctdb_config"
197
- - " --setup=ctdb_etc"
198
- - " --setup=ctdb_nodes"
190
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
191
+ - " --id=demo"
192
+ - " --debug-delay=2"
193
+ - " run"
194
+ - " ctdbd"
195
+ - " --setup=smb_ctdb"
196
+ - " --setup=ctdb_config"
197
+ - " --setup=ctdb_etc"
198
+ - " --setup=ctdb_nodes"
199
199
env :
200
- - name : SAMBACC_CTDB
201
- value : " ctdb-is-experimental"
200
+ - name : SAMBACC_CTDB
201
+ value : " ctdb-is-experimental"
202
202
volumeMounts :
203
- - mountPath : " /var/lib/ctdb/shared"
204
- name : ctdb-shared
205
- - mountPath : " /var/lib/ctdb/persistent"
206
- name : ctdb-persistent
207
- - mountPath : " /var/lib/ctdb/volatile"
208
- name : ctdb-volatile
209
- - mountPath : " /etc/ctdb"
210
- name : ctdb-config
211
- - mountPath : " /var/run/ctdb"
212
- name : ctdb-sockets-dir
203
+ - mountPath : " /var/lib/ctdb/shared"
204
+ name : ctdb-shared
205
+ - mountPath : " /var/lib/ctdb/persistent"
206
+ name : ctdb-persistent
207
+ - mountPath : " /var/lib/ctdb/volatile"
208
+ name : ctdb-volatile
209
+ - mountPath : " /etc/ctdb"
210
+ name : ctdb-config
211
+ - mountPath : " /var/run/ctdb"
212
+ name : ctdb-sockets-dir
213
213
- image : quay.io/samba.org/samba-server:latest
214
214
imagePullPolicy : Always
215
215
name : ctdb-manage-nodes
216
216
args :
217
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
218
- - " --id=demo"
219
- - " ctdb-manage-nodes"
220
- - " --hostname=$(HOSTNAME)"
221
- - " --take-node-number-from-hostname=after-last-dash"
217
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
218
+ - " --id=demo"
219
+ - " ctdb-manage-nodes"
220
+ - " --hostname=$(HOSTNAME)"
221
+ - " --take-node-number-from-hostname=after-last-dash"
222
222
env :
223
- - name : SAMBACC_CTDB
224
- value : " ctdb-is-experimental"
225
- - name : HOSTNAME
226
- valueFrom :
227
- fieldRef :
228
- fieldPath : metadata.name
223
+ - name : SAMBACC_CTDB
224
+ value : " ctdb-is-experimental"
225
+ - name : HOSTNAME
226
+ valueFrom :
227
+ fieldRef :
228
+ fieldPath : metadata.name
229
229
volumeMounts :
230
- - mountPath : " /var/lib/ctdb/shared"
231
- name : ctdb-shared
232
- - mountPath : " /etc/ctdb"
233
- name : ctdb-config
234
- - mountPath : " /var/run/ctdb"
235
- name : ctdb-sockets-dir
230
+ - mountPath : " /var/lib/ctdb/shared"
231
+ name : ctdb-shared
232
+ - mountPath : " /etc/ctdb"
233
+ name : ctdb-config
234
+ - mountPath : " /var/run/ctdb"
235
+ name : ctdb-sockets-dir
236
236
- image : quay.io/samba.org/samba-server:latest
237
237
imagePullPolicy : Always
238
238
name : smb
239
239
args :
240
- - " --config=/usr/local/share/sambacc/examples/ctdb.json"
241
- - " --id=demo"
242
- - " --debug-delay=12"
243
- - " run"
244
- - " smbd"
245
- - " --setup=users"
246
- - " --setup=smb_ctdb"
240
+ - " --config=/usr/local/share/sambacc/examples/ctdb.json"
241
+ - " --id=demo"
242
+ - " --debug-delay=12"
243
+ - " run"
244
+ - " smbd"
245
+ - " --setup=users"
246
+ - " --setup=smb_ctdb"
247
247
ports :
248
- - containerPort : 445
249
- protocol : TCP
250
- name : " smb"
248
+ - containerPort : 445
249
+ protocol : TCP
250
+ name : " smb"
251
251
securityContext :
252
252
allowPrivilegeEscalation : true
253
253
volumeMounts :
254
- - mountPath : " /share"
255
- name : samba-share-data
256
- - mountPath : " /var/lib/ctdb/shared"
257
- name : ctdb-shared
258
- - mountPath : " /var/lib/ctdb/persistent"
259
- name : ctdb-persistent
260
- - mountPath : " /var/lib/ctdb/volatile"
261
- name : ctdb-volatile
262
- - mountPath : " /etc/ctdb"
263
- name : ctdb-config
264
- - mountPath : " /var/run/ctdb"
265
- name : ctdb-sockets-dir
254
+ - mountPath : " /share"
255
+ name : samba-share-data
256
+ - mountPath : " /var/lib/ctdb/shared"
257
+ name : ctdb-shared
258
+ - mountPath : " /var/lib/ctdb/persistent"
259
+ name : ctdb-persistent
260
+ - mountPath : " /var/lib/ctdb/volatile"
261
+ name : ctdb-volatile
262
+ - mountPath : " /etc/ctdb"
263
+ name : ctdb-config
264
+ - mountPath : " /var/run/ctdb"
265
+ name : ctdb-sockets-dir
266
266
volumes :
267
- # /etc/ctdb
268
- - emptyDir : {}
269
- name : ctdb-config
270
- # /var/lib/ctdb/persistent
271
- - emptyDir : {}
272
- name : ctdb-persistent
273
- # /var/lib/ctdb/volatile
274
- - emptyDir : {}
275
- name : ctdb-volatile
276
- # /var/lib/ctdb/shared
277
- - persistentVolumeClaim :
278
- claimName : ctdb-shared
279
- name : ctdb-shared
280
- # /var/run/ctdb
281
- - emptyDir :
282
- medium : Memory
283
- name : ctdb-sockets-dir
284
- # /var/lib/samba
285
- - emptyDir : {}
286
- name : samba-state-dir
287
- # /share
288
- - persistentVolumeClaim :
289
- claimName : samba-share-data
290
- name : samba-share-data
267
+ # /etc/ctdb
268
+ - emptyDir : {}
269
+ name : ctdb-config
270
+ # /var/lib/ctdb/persistent
271
+ - emptyDir : {}
272
+ name : ctdb-persistent
273
+ # /var/lib/ctdb/volatile
274
+ - emptyDir : {}
275
+ name : ctdb-volatile
276
+ # /var/lib/ctdb/shared
277
+ - persistentVolumeClaim :
278
+ claimName : ctdb-shared
279
+ name : ctdb-shared
280
+ # /var/run/ctdb
281
+ - emptyDir :
282
+ medium : Memory
283
+ name : ctdb-sockets-dir
284
+ # /var/lib/samba
285
+ - emptyDir : {}
286
+ name : samba-state-dir
287
+ # /share
288
+ - persistentVolumeClaim :
289
+ claimName : samba-share-data
290
+ name : samba-share-data
0 commit comments