1
1
---
2
+ apiVersion : v1
3
+ kind : ConfigMap
4
+ metadata :
5
+ name : meshrr-lothlorien-conf
6
+ data :
7
+ meshrr.conf.yml : |+
8
+ encrypted_root_pw: NOLOGIN
9
+ asn: "65000"
10
+ mode: ipv4rr
11
+ bgpgroups:
12
+ - name: MESHRR-MESH
13
+ type: mesh
14
+ source:
15
+ sourcetype: dns
16
+ hostname: meshrr-lothlorien
17
+ - name: MESHRR-CLIENTS
18
+ type: subtractive
19
+ prefixes:
20
+ - 0.0.0.0/0
21
+ - name: MESHRR-UPSTREAM
22
+ type: mesh
23
+ source:
24
+ sourcetype: dns
25
+ hostname: meshrr-core
26
+ max_peers: 2
27
+ ---
2
28
apiVersion : metallb.io/v1beta1
3
29
kind : IPAddressPool
4
30
metadata :
@@ -121,6 +147,15 @@ spec:
121
147
emptyDir : {}
122
148
- name : ssh-id
123
149
emptyDir : {}
150
+ - name : meshrr-conf
151
+ configMap :
152
+ defaultMode : 256
153
+ items :
154
+ - key : meshrr.conf.yml
155
+ mode : 256
156
+ path : meshrr.conf.yml
157
+ name : meshrr-lothlorien-conf
158
+ optional : false
124
159
- configMap :
125
160
defaultMode : 256
126
161
items :
@@ -140,7 +175,11 @@ spec:
140
175
mountPath : /secret/ssh/
141
176
- name : config
142
177
mountPath : /config/
143
- - mountPath : /opt/meshrr/overrides/juniper.conf.j2
178
+ - name : meshrr-conf
179
+ mountPath : /opt/meshrr/conf/meshrr.conf.yml
180
+ readOnly : true
181
+ subPath : meshrr.conf.yml
182
+ - mountPath : /opt/meshrr/conf/juniper.conf.j2
144
183
name : override-config
145
184
readOnly : true
146
185
subPath : juniper.conf.j2
@@ -154,17 +193,6 @@ spec:
154
193
secretKeyRef :
155
194
name : crpd-license
156
195
key : crpd-license
157
- - name : AUTONOMOUS_SYSTEM
158
- value : ' 65000'
159
- - name : ENCRYPTED_ROOT_PW
160
- value : >-
161
- $6$4XN/d$QdZrrRZNL2MtGXqKuZ/mr1S5tH46eyBKTKeWGVugxfqCGjKKqH2LhP8yNoqfYwVNvc0xsd0JSl6s9epsSPB7M1
162
- - name : MESH_SERVICE_NAME
163
- value : meshrr-lothlorien
164
- - name : UPSTREAM_SERVICE_NAME
165
- value : meshrr-core
166
- - name : MESHRR_CLIENTRANGE
167
- value : 0/0
168
196
containers :
169
197
- name : crpd
170
198
image : localhost/juniper/crpd:23.2R1.13
@@ -212,17 +240,15 @@ spec:
212
240
volumeMounts :
213
241
- name : ssh-id
214
242
mountPath : /secret/ssh/
243
+ - name : meshrr-conf
244
+ mountPath : /opt/meshrr/conf/meshrr.conf.yml
245
+ readOnly : true
246
+ subPath : meshrr.conf.yml
215
247
env :
216
248
- name : POD_IP
217
249
valueFrom :
218
250
fieldRef :
219
251
fieldPath : status.podIP
220
- - name : MESH_SERVICE_NAME
221
- value : meshrr-lothlorien
222
- - name : UPSTREAM_SERVICE_NAME
223
- value : meshrr-core
224
- - name : MESHRR_CLIENTRANGE
225
- value : 0/0
226
252
affinity :
227
253
nodeAffinity :
228
254
requiredDuringSchedulingIgnoredDuringExecution :
@@ -269,6 +295,15 @@ spec:
269
295
emptyDir : {}
270
296
- name : ssh-id
271
297
emptyDir : {}
298
+ - name : meshrr-conf
299
+ configMap :
300
+ defaultMode : 256
301
+ items :
302
+ - key : meshrr.conf.yml
303
+ mode : 256
304
+ path : meshrr.conf.yml
305
+ name : meshrr-lothlorien-conf
306
+ optional : false
272
307
- configMap :
273
308
defaultMode : 256
274
309
items :
@@ -288,7 +323,11 @@ spec:
288
323
mountPath : /secret/ssh/
289
324
- name : config
290
325
mountPath : /config/
291
- - mountPath : /opt/meshrr/overrides/juniper.conf.j2
326
+ - name : meshrr-conf
327
+ mountPath : /opt/meshrr/conf/meshrr.conf.yml
328
+ readOnly : true
329
+ subPath : meshrr.conf.yml
330
+ - mountPath : /opt/meshrr/conf/juniper.conf.j2
292
331
name : override-config
293
332
readOnly : true
294
333
subPath : juniper.conf.j2
@@ -302,17 +341,6 @@ spec:
302
341
secretKeyRef :
303
342
name : crpd-license
304
343
key : crpd-license
305
- - name : AUTONOMOUS_SYSTEM
306
- value : ' 65000'
307
- - name : ENCRYPTED_ROOT_PW
308
- value : >-
309
- $6$4XN/d$QdZrrRZNL2MtGXqKuZ/mr1S5tH46eyBKTKeWGVugxfqCGjKKqH2LhP8yNoqfYwVNvc0xsd0JSl6s9epsSPB7M1
310
- - name : MESH_SERVICE_NAME
311
- value : meshrr-lothlorien
312
- - name : UPSTREAM_SERVICE_NAME
313
- value : meshrr-core
314
- - name : MESHRR_CLIENTRANGE
315
- value : 0/0
316
344
containers :
317
345
- name : crpd
318
346
image : localhost/juniper/crpd:23.2R1.13
@@ -360,17 +388,15 @@ spec:
360
388
volumeMounts :
361
389
- name : ssh-id
362
390
mountPath : /secret/ssh/
391
+ - name : meshrr-conf
392
+ mountPath : /opt/meshrr/conf/meshrr.conf.yml
393
+ readOnly : true
394
+ subPath : meshrr.conf.yml
363
395
env :
364
396
- name : POD_IP
365
397
valueFrom :
366
398
fieldRef :
367
399
fieldPath : status.podIP
368
- - name : MESH_SERVICE_NAME
369
- value : meshrr-lothlorien
370
- - name : UPSTREAM_SERVICE_NAME
371
- value : meshrr-core
372
- - name : MESHRR_CLIENTRANGE
373
- value : 0/0
374
400
affinity :
375
401
nodeAffinity :
376
402
requiredDuringSchedulingIgnoredDuringExecution :
0 commit comments