-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathcondensed-manifest.yml
1077 lines (1016 loc) · 33.4 KB
/
condensed-manifest.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ----- 01-oci-ccm.yml -----
# oci-ccm-00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: oci-cloud-controller-manager
annotations:
workload.openshift.io/allowed: management
labels:
"pod-security.kubernetes.io/enforce": "privileged"
"pod-security.kubernetes.io/audit": "privileged"
"pod-security.kubernetes.io/warn": "privileged"
"security.openshift.io/scc.podSecurityLabelSync": "false"
"openshift.io/run-level": "0"
"pod-security.kubernetes.io/enforce-version": "v1.24"
---
# oci-ccm-01-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: cloud-controller-manager
namespace: oci-cloud-controller-manager
---
# oci-ccm-02-cluster-role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:cloud-controller-manager
labels:
kubernetes.io/cluster-service: "true"
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- '*'
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- patch
- apiGroups:
- ""
resources:
- services
verbs:
- list
- watch
- patch
- get
- apiGroups:
- ""
resources:
- services/status
verbs:
- patch
- get
- update
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- "extension-apiserver-authentication"
verbs:
- get
- apiGroups:
- ""
resources:
- events
verbs:
- list
- watch
- create
- patch
- update
# For leader election
- apiGroups:
- ""
resources:
- endpoints
verbs:
- create
- apiGroups:
- ""
resources:
- endpoints
resourceNames:
- "cloud-controller-manager"
verbs:
- get
- list
- watch
- update
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- create
- update
- delete
- patch
- watch
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- "cloud-controller-manager"
verbs:
- get
- update
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- "extension-apiserver-authentication"
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- create
- list
- get
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
# For the PVL
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- list
- watch
- patch
---
# oci-ccm-03-cluster-role-binding.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: oci-cloud-controller-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:cloud-controller-manager
subjects:
- kind: ServiceAccount
name: cloud-controller-manager
namespace: oci-cloud-controller-manager
---
# oci-ccm-05-daemon-set.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: oci-cloud-controller-manager
namespace: oci-cloud-controller-manager
labels:
k8s-app: oci-cloud-controller-manager
spec:
selector:
matchLabels:
component: oci-cloud-controller-manager
tier: control-plane
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
component: oci-cloud-controller-manager
tier: control-plane
spec:
serviceAccountName: cloud-controller-manager
hostNetwork: true
nodeSelector:
node-role.kubernetes.io/control-plane: ""
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoSchedule
volumes:
- name: cfg
secret:
secretName: oci-cloud-controller-manager
- name: kubernetes
hostPath:
path: /etc/kubernetes
containers:
- name: oci-cloud-controller-manager
image: ghcr.io/oracle/cloud-provider-oci:v1.30.0
command:
- /bin/bash
- -c
- |
#!/bin/bash
set -o allexport
if [[ -f /etc/kubernetes/apiserver-url.env ]]; then
source /etc/kubernetes/apiserver-url.env
fi
exec /usr/local/bin/oci-cloud-controller-manager --cloud-config=/etc/oci/cloud-provider.yaml --cloud-provider=oci --leader-elect-resource-lock=leases --concurrent-service-syncs=3 --v=2
volumeMounts:
- name: cfg
mountPath: /etc/oci
readOnly: true
- name: kubernetes
mountPath: /etc/kubernetes
readOnly: true
---
# ----- 01-oci-csi.yml -----
# oci-csi-00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: oci-csi
annotations:
workload.openshift.io/allowed: management
labels:
"pod-security.kubernetes.io/enforce": "privileged"
"pod-security.kubernetes.io/audit": "privileged"
"pod-security.kubernetes.io/warn": "privileged"
"security.openshift.io/scc.podSecurityLabelSync": "false"
"openshift.io/run-level": "0"
"pod-security.kubernetes.io/enforce-version": "v1.24"
---
# oci-csi-02-controller-driver.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deprecated.daemonset.template.generation: "1"
generation: 1
name: csi-oci-controller
namespace: oci-csi
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
app: csi-oci-controller
template:
metadata:
creationTimestamp: null
labels:
app: csi-oci-controller
role: csi-oci
spec:
nodeSelector:
node-role.kubernetes.io/control-plane: ""
containers:
- name: csi-volume-provisioner
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
args:
- --csi-address=/var/run/shared-tmpfs/csi.sock
- --volume-name-prefix=csi
- --feature-gates=Topology=true
- --timeout=120s
- --leader-election
- --leader-election-namespace=oci-csi
volumeMounts:
- name: config
mountPath: /etc/oci/
readOnly: true
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
- name: csi-fss-volume-provisioner
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
args:
- --csi-address=/var/run/shared-tmpfs/csi-fss.sock
- --volume-name-prefix=csi-fss
- --feature-gates=Topology=true
- --timeout=120s
- --leader-election
- --leader-election-namespace=oci-csi
volumeMounts:
- name: config
mountPath: /etc/oci/
readOnly: true
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
- name: csi-attacher
image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1
args:
- --csi-address=/var/run/shared-tmpfs/csi.sock
- --timeout=120s
- --leader-election=true
- --leader-election-namespace=oci-csi
volumeMounts:
- name: config
mountPath: /etc/oci/
readOnly: true
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
- name: csi-resizer
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1
args:
- --csi-address=/var/run/shared-tmpfs/csi.sock
- --leader-election
imagePullPolicy: "IfNotPresent"
volumeMounts:
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
- name: snapshot-controller
image: registry.k8s.io/sig-storage/snapshot-controller:v6.3.0
args:
- --leader-election
imagePullPolicy: "IfNotPresent"
volumeMounts:
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
- name: csi-snapshotter
image: registry.k8s.io/sig-storage/csi-snapshotter:v6.3.0
args:
- --csi-address=/var/run/shared-tmpfs/csi.sock
- --leader-election
imagePullPolicy: "IfNotPresent"
volumeMounts:
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
- name: oci-csi-controller-driver
args:
- --endpoint=unix://var/run/shared-tmpfs/csi.sock
- --fss-csi-endpoint=unix://var/run/shared-tmpfs/csi-fss.sock
command:
- /usr/local/bin/oci-csi-controller-driver
image: ghcr.io/oracle/cloud-provider-oci:v1.30.0
imagePullPolicy: IfNotPresent
volumeMounts:
- name: config
mountPath: /etc/oci/
readOnly: true
- name: kubernetes
mountPath: /etc/kubernetes
readOnly: true
- mountPath: /var/run/shared-tmpfs
name: shared-tmpfs
volumes:
- name: config
secret:
secretName: oci-volume-provisioner
- name: kubernetes
hostPath:
path: /etc/kubernetes
- name: shared-tmpfs
emptyDir: {}
dnsPolicy: ClusterFirst
hostNetwork: true
imagePullSecrets:
- name: image-pull-secret
restartPolicy: Always
schedulerName: default-scheduler
serviceAccount: csi-oci-node-sa
serviceAccountName: csi-oci-node-sa
terminationGracePeriodSeconds: 30
tolerations:
- operator: Exists
---
# oci-csi-03-fss-driver.yaml
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: fss.csi.oraclecloud.com
spec:
attachRequired: false
podInfoOnMount: false
---
# oci-csi-04-bv-driver.yaml
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: blockvolume.csi.oraclecloud.com
spec:
fsGroupPolicy: File
---
# oci-csi-05-iscsiadm.yaml
kind: ConfigMap
apiVersion: v1
metadata:
name: oci-csi-iscsiadm
namespace: oci-csi
data:
iscsiadm: |
#!/bin/sh
if [ -x /host/sbin/iscsiadm ]; then
chroot /host /sbin/iscsiadm "$@"
elif [ -x /host/usr/local/sbin/iscsiadm ]; then
chroot /host /usr/local/sbin/iscsiadm "$@"
elif [ -x /host/bin/iscsiadm ]; then
chroot /host /bin/iscsiadm "$@"
elif [ -x /host/usr/local/bin/iscsiadm ]; then
chroot /host /usr/local/bin/iscsiadm "$@"
else
chroot /host iscsiadm "$@"
fi
---
# oci-csi-06-fss-csi.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: oci-fss-csi
namespace: oci-csi
data:
mount: |-
#!/bin/sh
if [ -x /sbin/mount ]; then
chroot /host mount "$@"
elif [ -x /usr/local/sbin/mount ]; then
chroot /host mount "$@"
elif [ -x /usr/sbin/mount ]; then
chroot /host mount "$@"
elif [ -x /usr/local/bin/mount ]; then
chroot /host mount "$@"
else
chroot /host mount "$@"
fi
umount: |-
#!/bin/sh
if [ -x /sbin/umount ]; then
chroot /host umount "$@"
elif [ -x /usr/local/sbin/umount ]; then
chroot /host umount "$@"
elif [ -x /usr/sbin/umount ]; then
chroot /host umount "$@"
elif [ -x /usr/local/bin/umount ]; then
chroot /host umount "$@"
else
chroot /host umount "$@"
fi
umount.oci-fss: |-
#!/bin/sh
if [ -x /sbin/umount-oci-fss ]; then
chroot /host umount.oci-fss "$@"
elif [ -x /usr/local/sbin/umount-oci-fss ]; then
chroot /host umount.oci-fss "$@"
elif [ -x /usr/sbin/umount-oci-fss ]; then
chroot /host umount.oci-fss "$@"
elif [ -x /usr/local/bin/umount-oci-fss ]; then
chroot /host umount.oci-fss "$@"
else
chroot /host umount.oci-fss "$@"
fi
---
# oci-csi-07-node-driver.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
deprecated.daemonset.template.generation: "1"
generation: 1
name: csi-oci-node
namespace: oci-csi
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
app: csi-oci-node
template:
metadata:
creationTimestamp: null
labels:
app: csi-oci-node
role: csi-oci
spec:
nodeSelector:
node-role.kubernetes.io/worker: ""
containers:
- name: oci-csi-node-driver
args:
- --v=2
- --endpoint=unix:///csi/csi.sock
- --nodeid=$(KUBE_NODE_NAME)
- --loglevel=debug
- --fss-endpoint=unix:///fss/csi.sock
command:
- /usr/local/bin/oci-csi-node-driver
env:
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/host/usr/bin:/host/sbin
image: ghcr.io/oracle/cloud-provider-oci:v1.30.0
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: plugin-dir
- mountPath: /fss
name: fss-plugin-dir
- mountPath: /var/lib/kubelet
mountPropagation: Bidirectional
name: pods-mount-dir
- mountPath: /dev
name: device-dir
- mountPath: /host
mountPropagation: HostToContainer
name: host-root
- mountPath: /sbin/iscsiadm
name: chroot-iscsiadm
subPath: iscsiadm
- mountPath: /host/var/lib/kubelet
mountPropagation: Bidirectional
name: encrypt-pods-mount-dir
- mountPath: /sbin/umount.oci-fss
name: fss-driver-mounts
subPath: umount.oci-fss
- mountPath: /sbin/umount
name: fss-driver-mounts
subPath: umount
- mountPath: /sbin/mount
name: fss-driver-mounts
subPath: mount
- name: csi-node-registrar
args:
- --csi-address=/csi/csi.sock
- --kubelet-registration-path=/var/lib/kubelet/plugins/blockvolume.csi.oraclecloud.com/csi.sock
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.12.0
securityContext:
privileged: true
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- rm -rf /registration/blockvolume.csi.oraclecloud.com /registration/blockvolume.csi.oraclecloud.com-reg.sock
volumeMounts:
- mountPath: /csi
name: plugin-dir
- mountPath: /registration
name: registration-dir
- name: csi-node-registrar-fss
args:
- --csi-address=/fss/csi.sock
- --kubelet-registration-path=/var/lib/kubelet/plugins/fss.csi.oraclecloud.com/csi.sock
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.12.0
securityContext:
privileged: true
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- rm -rf /registration/fss.csi.oraclecloud.com /registration/fss.csi.oraclecloud.com-reg.sock
volumeMounts:
- mountPath: /fss
name: fss-plugin-dir
- mountPath: /registration
name: registration-dir
dnsPolicy: ClusterFirst
hostNetwork: true
restartPolicy: Always
schedulerName: default-scheduler
serviceAccount: csi-oci-node-sa
serviceAccountName: csi-oci-node-sa
terminationGracePeriodSeconds: 30
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /var/lib/kubelet/plugins_registry/
type: DirectoryOrCreate
name: registration-dir
- hostPath:
path: /var/lib/kubelet/plugins/blockvolume.csi.oraclecloud.com
type: DirectoryOrCreate
name: plugin-dir
- hostPath:
path: /var/lib/kubelet/plugins/fss.csi.oraclecloud.com
type: DirectoryOrCreate
name: fss-plugin-dir
- hostPath:
path: /var/lib/kubelet
type: Directory
name: pods-mount-dir
- hostPath:
path: /var/lib/kubelet
type: Directory
name: encrypt-pods-mount-dir
- hostPath:
path: /dev
type: ""
name: device-dir
- hostPath:
path: /
type: Directory
name: host-root
- configMap:
name: oci-csi-iscsiadm
defaultMode: 0755
name: chroot-iscsiadm
- configMap:
name: oci-fss-csi
defaultMode: 0755
name: fss-driver-mounts
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
---
# oci-csi-08-node-rbac-sa.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-oci-node-sa
namespace: oci-csi
---
# oci-csi-09-node-rbac-cr.yaml
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-oci
namespace: oci-csi
rules:
- apiGroups: [""]
resources: ["events"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["volume.oci.oracle.com"]
resources: ["blockscsiinfos"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update", "create"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses", "volumeattachments", "volumeattachments/status", "csinodes"]
verbs: ["get", "list", "watch", "patch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "watch", "create", "update"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["patch"]
- apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshotclasses" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshotcontents" ]
verbs: [ "create", "get", "list", "watch", "update", "delete", "patch" ]
- apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshotcontents/status" ]
verbs: [ "update", "patch" ]
- apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshots" ]
verbs: [ "get", "list", "watch", "update", "patch" ]
- apiGroups: [ "snapshot.storage.k8s.io" ]
resources: [ "volumesnapshots/status" ]
verbs: [ "update", "patch" ]
- apiGroups: [ "" ]
resources: [ "serviceaccounts" ]
verbs: [ "get", "list", "watch", "create" ]
---
# oci-csi-10-node-rbac-crb.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-oci-binding
subjects:
- kind: ServiceAccount
name: csi-oci-node-sa
namespace: oci-csi
roleRef:
kind: ClusterRole
name: csi-oci
apiGroup: rbac.authorization.k8s.io
---
# oci-csi-11-storage-class-bv.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: oci-bv
provisioner: blockvolume.csi.oraclecloud.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
reclaimPolicy: Delete
---
# oci-csi-12-storage-class-bv-enc.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: oci-bv-encrypted
provisioner: blockvolume.csi.oraclecloud.com
parameters:
attachment-type: "paravirtualized"
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
---
# 01-oci-driver-configs.yml
# TODO - configure before use
apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
name: oci-cloud-controller-manager
namespace: oci-cloud-controller-manager
stringData:
cloud-provider.yaml: |
useInstancePrincipals: true
compartment: $COMPARTMENT_ID
vcn: $OCP_VCN_ID
loadBalancer:
subnet1: $OCP_SUBNET_ID
securityListManagementMode: Frontend
securityLists:
$OCP_SUBNET_ID: $OPC_SEC_LIST_ID
rateLimiter:
rateLimitQPSRead: 20.0
rateLimitBucketRead: 5
rateLimitQPSWrite: 20.0
rateLimitBucketWrite: 5
---
# TODO - configure before use
apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
name: oci-volume-provisioner
namespace: oci-csi
stringData:
config.yaml: |
useInstancePrincipals: true
compartment: $COMPARTMENT_ID
vcn: $OCP_VCN_ID
loadBalancer:
subnet1: $OCP_SUBNET_ID
securityListManagementMode: Frontend
securityLists:
$OCP_SUBNET_ID: $OPC_SEC_LIST_ID
rateLimiter:
rateLimitQPSRead: 20.0
rateLimitBucketRead: 5
rateLimitQPSWrite: 20.0
rateLimitBucketWrite: 5
---
# Generated by Butane; do not edit
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 00-master-oci-kubelet-providerid
spec:
config:
ignition:
version: 3.4.0
storage:
files:
- contents:
compression: gzip
source: data:;base64,H4sIAAAAAAAC/1yPUYvaQBCA3/dXTFMf2odkrbSFWlNQE2moJEW9exGRdTO5DBd3w+4YvBP/+yF6IPf0zcPMxzefP8kdGblTvhYeGUKE0EJLLVaKGiHyIkmnRT6LJbKW/sUz7ssb5fNhhw1y5NF1pDEq5aAfWk1h62xHJToqI21NJQRVsL64g97p3XgOYPMbuEYjAABQ1xaC3DI4bBulyTwBHsnzZbi/um4fiaEvKhJZvlyN82m6zZK490UfXAPhXwjGB66to1fFZM0QJqgcOiic0g0GEPo51MztUMpvP39Fgx/foxulbbXsBpKMZ2U0Siq/CqEVw58P8aNRWszEenn9fSNS05GzZo+G4+DfwySdp6vt/0XxmCXpIktiq2koZe90F3wOxMXxFgAA///yWfIkhAEAAA==
mode: 493
path: /usr/local/bin/oci-kubelet-providerid
systemd:
units:
- contents: |
[Unit]
Description=Fetch kubelet provider id from OCI Metadata
# Wait for NetworkManager to report it's online
After=NetworkManager-wait-online.service
# Run before kubelet
Before=kubelet.service
[Service]
ExecStart=/usr/local/bin/oci-kubelet-providerid
Type=oneshot
[Install]
WantedBy=network-online.target
enabled: true
name: oci-kubelet-providerid.service
---
# Generated by Butane; do not edit
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 00-worker-oci-kubelet-providerid
spec:
config:
ignition:
version: 3.4.0
storage:
files:
- contents:
compression: gzip
source: data:;base64,H4sIAAAAAAAC/1yPUYvaQBCA3/dXTFMf2odkrbSFWlNQE2moJEW9exGRdTO5DBd3w+4YvBP/+yF6IPf0zcPMxzefP8kdGblTvhYeGUKE0EJLLVaKGiHyIkmnRT6LJbKW/sUz7ssb5fNhhw1y5NF1pDEq5aAfWk1h62xHJToqI21NJQRVsL64g97p3XgOYPMbuEYjAABQ1xaC3DI4bBulyTwBHsnzZbi/um4fiaEvKhJZvlyN82m6zZK490UfXAPhXwjGB66to1fFZM0QJqgcOiic0g0GEPo51MztUMpvP39Fgx/foxulbbXsBpKMZ2U0Siq/CqEVw58P8aNRWszEenn9fSNS05GzZo+G4+DfwySdp6vt/0XxmCXpIktiq2koZe90F3wOxMXxFgAA///yWfIkhAEAAA==
mode: 493
path: /usr/local/bin/oci-kubelet-providerid
systemd:
units:
- contents: |
[Unit]
Description=Fetch kubelet provider id from OCI Metadata
# Wait for NetworkManager to report it's online
After=NetworkManager-wait-online.service
# Run before kubelet
Before=kubelet.service
[Service]
ExecStart=/usr/local/bin/oci-kubelet-providerid
Type=oneshot
[Install]
WantedBy=network-online.target
enabled: true
name: oci-kubelet-providerid.service
---
# Generated by Butane; do not edit
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 99-master-iscsid
spec:
config:
ignition:
version: 3.4.0
systemd:
units:
- enabled: true
name: iscsid.service
---
# Generated by Butane; do not edit
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 99-worker-iscsid
spec:
config:
ignition:
version: 3.4.0
systemd:
units:
- enabled: true
name: iscsid.service
---
# Generated by Butane; do not edit
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 00-master-oci-add-consistent-device-path
spec:
config:
ignition:
version: 3.4.0
storage:
files:
- contents:
compression: gzip
source: data:;base64,H4sIAAAAAAAC/6SQQW/TQBCF7/4VT7Z6gRBLcPahNBZYTVwrTo1yQuvdMV1h70S741UR4r8juzlwqZDgNpr93ns7L8ODV3ok3I08G1Ru8CqIn7XMnrZoRlKBYBiOBZ4mjpQkGb4Q5kDYlV1ze/oM5Qyq3dd1jspb1Y8UIAxDQn6yjiBPhP1jnWFgD9vetVXedOhVILPK67baQYn4Fai7A708JhlOTwTNLpIPlh0Gz9OL1QIuMmEM3pIz4w8YilYTnJoINiDY6TLSu6vLwH5SsuxzQzHn9XTW9jpF8/ycZHiPnjRP9CrVb/Dhb4xerwoMdttres8siDzOi0x5wsVztIbMWs6fH+fhNVu1TZL78liX+6JIg3mTbtA+fmzP7ak8FEXaj6y/pxuUdfdzV3anc1P+KorU2LBsm+PDp+PtoUhzEp2ztrOheFlqDUJOnJqs+4abBW3Ph31V378t0hud/kPiRXmxYtn9T+zvAAAA//+dZsHsnQIAAA==
mode: 511
path: /etc/udev/rules.d/99-systemoci-persistent-names.rules
- contents:
compression: gzip
source: data:;base64,H4sIAAAAAAAC/6xWeW/bOhL/X59iKrtrO43ONCnq3RRI2hRrIE27m6RdIMkuaGpkEaFIlaSco9v32R9IyleS9h14QSBL5HCO3/xmOL1nyZSJZEp0FQQ9OKWKNQaMBKqQGAR9V3MmrjUwAQXOGUUNpiIGmIYp0ViAFHB8fgKTdzoOenDMxDXMCwKE35A7DY1kwmir0FQISkrTqbHCZxXToL3JG6muNUjB76CUCtjp29MJEGMIrWq0KoaHaAgo5Eg0OplPpx9G1ulJCaKtp6hAltAQRWo0qDRMkYkZaBTG218ZYxqENIBfW8LtXhb0YBtuEEyl5A0QAaiUVDF8QcDbBqlx7l+jEsi7AECQGoGza4RQFyTctj/TENDQOGAlXEDY74UQCYQMrv5uFYgAAGklIWRiTjgr4B9e15sQ3vwtt7u3zEAWlCxwKqyOd0efPx2c/TOEfdgK50wZJsMtuFpp7MG5toFO3v3PCtp4FBrFcI7O6+Nz6DmxhQDT4PVEDWVRmqbp2P6/jNNIU82idJyO83GWu0NfmKmcGt1OtWGmNUwKh9WNbHkBUwQy5WitztBAlsNNxWhljXjjJ11y4gDs135/6CHod+6E8H+wPBroJN4aJ8lgFCDXuBZYh8ATgZ10kS0kmIakY2nScGJKqeqkktrsJhq1ZlLsJIaoGZrdcTpOE/ccZ3ky5ZJeJ7qgq5hLprR5ELXDwSjr1BSprFHD04c1UimK33V6HWWmnjrDiTZAK6IINahskAprOccCiChsJohaJWGBkFO7mYFVZrL8UTaWNHuQjdX35fAiubocxVvJZbZc14Mk7rukLTgLt2H/+PzE8jW8DdeZv+J2zxYWJQJajeu8LdmsVQiyNV0DmNqGMZe8rVEHGwxmTZTtvY7z3ZdxGufjnXwvjZijL/sq4jzNdqM0j6UilGNs1YxbLFnEWxHZaj8oLZRP8trSeE328OPHM4fUt8564pH5HvSWW48p/YDRvSficWlTSOVMsHss4MZyYM3wogF0VnwDWO1vNoHOgWyVv54uLkh0f7Xlnj2PhKQs8W/zgvRmg0Va0i4tEwHUtldZwqfPcLjy1jPxj3SQdGxxPrwD0jT8zpL+h2g/oCnRriFn1oxukDLCvVcKNSrLe9v916FcNtw1rMJsnXz+78+j1J1fx+oMtbtYUGhLWkt66zHpwggU7g/+e5FGr69e9AfWwWc+n96/X6CvEK6u4If1QTi3dxHU5JbVbb1x7RhpG++8uL+HCKhUCnUjReFQlq6wX6U5DPM9eOGeW5DvjUYLlJwH0cxA+CrNf1aihRQD0zmy7LidcY7ajQICsk29HCFMf6h1Unom/evEksy+MkFlbT3vAqyJoRX660MKDHrQoNJMGz9s2OWScdR32mC97bW72ikJ463C4P3JwYejn98zvlNstDdXVfGWK1cXT1RCmMyJSricdXSIKJdtEZEZCpM0vJ0xoRNJWeSuANIaSaUo2SzpOx/CR/e+m3gcSRpiO760+W25Ye6zm4zg9Jo1jZtd/PTlhzEmRfgQzbdSzFGZFeusyoPTt5OJuzACWqnhCL4FAI1iwpRwedkfdq+D5+mOHLhyGAXfO23aqJYaIJADR2N7pG7Lkt1Cqxcl7Kc9O7/lUCMRGubFdBt2lh/U3UtaghRW6NVyg5DVThwcH52dHf072+8Ph8fnJ4kjqF/L7ZpdhAiGnVhHYXjumbyknD8QQoRfIV3De6FpcO/Ld0M+8/LZowax8GngD3WDyOZef0grBdbrzrMX8Hp3NBo5wZItppdVKBviuRXf8+JP+ZT+ZT7trflk2XJ6/v795D/7S3tL7ILgYV8Mf7sv9r263iwMuq74awAAAP//hKNgEksMAAA=
mode: 511
path: /etc/ociudevpersistentnaming
---
# Generated by Butane; do not edit
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 00-worker-oci-add-consistent-device-path
spec:
config:
ignition:
version: 3.4.0
storage:
files:
- contents:
compression: gzip
source: data:;base64,H4sIAAAAAAAC/6SQQW/TQBCF7/4VT7Z6gRBLcPahNBZYTVwrTo1yQuvdMV1h70S741UR4r8juzlwqZDgNpr93ns7L8ODV3ok3I08G1Ru8CqIn7XMnrZoRlKBYBiOBZ4mjpQkGb4Q5kDYlV1ze/oM5Qyq3dd1jspb1Y8UIAxDQn6yjiBPhP1jnWFgD9vetVXedOhVILPK67baQYn4Fai7A708JhlOTwTNLpIPlh0Gz9OL1QIuMmEM3pIz4w8YilYTnJoINiDY6TLSu6vLwH5SsuxzQzHn9XTW9jpF8/ycZHiPnjRP9CrVb/Dhb4xerwoMdttres8siDzOi0x5wsVztIbMWs6fH+fhNVu1TZL78liX+6JIg3mTbtA+fmzP7ak8FEXaj6y/pxuUdfdzV3anc1P+KorU2LBsm+PDp+PtoUhzEp2ztrOheFlqDUJOnJqs+4abBW3Ph31V378t0hud/kPiRXmxYtn9T+zvAAAA//+dZsHsnQIAAA==
mode: 511
path: /etc/udev/rules.d/99-systemoci-persistent-names.rules
- contents:
compression: gzip
source: data:;base64,H4sIAAAAAAAC/6xWeW/bOhL/X59iKrtrO43ONCnq3RRI2hRrIE27m6RdIMkuaGpkEaFIlaSco9v32R9IyleS9h14QSBL5HCO3/xmOL1nyZSJZEp0FQQ9OKWKNQaMBKqQGAR9V3MmrjUwAQXOGUUNpiIGmIYp0ViAFHB8fgKTdzoOenDMxDXMCwKE35A7DY1kwmir0FQISkrTqbHCZxXToL3JG6muNUjB76CUCtjp29MJEGMIrWq0KoaHaAgo5Eg0OplPpx9G1ulJCaKtp6hAltAQRWo0qDRMkYkZaBTG218ZYxqENIBfW8LtXhb0YBtuEEyl5A0QAaiUVDF8QcDbBqlx7l+jEsi7AECQGoGza4RQFyTctj/TENDQOGAlXEDY74UQCYQMrv5uFYgAAGklIWRiTjgr4B9e15sQ3vwtt7u3zEAWlCxwKqyOd0efPx2c/TOEfdgK50wZJsMtuFpp7MG5toFO3v3PCtp4FBrFcI7O6+Nz6DmxhQDT4PVEDWVRmqbp2P6/jNNIU82idJyO83GWu0NfmKmcGt1OtWGmNUwKh9WNbHkBUwQy5WitztBAlsNNxWhljXjjJ11y4gDs135/6CHod+6E8H+wPBroJN4aJ8lgFCDXuBZYh8ATgZ10kS0kmIakY2nScGJKqeqkktrsJhq1ZlLsJIaoGZrdcTpOE/ccZ3ky5ZJeJ7qgq5hLprR5ELXDwSjr1BSprFHD04c1UimK33V6HWWmnjrDiTZAK6IINahskAprOccCiChsJohaJWGBkFO7mYFVZrL8UTaWNHuQjdX35fAiubocxVvJZbZc14Mk7rukLTgLt2H/+PzE8jW8DdeZv+J2zxYWJQJajeu8LdmsVQiyNV0DmNqGMZe8rVEHGwxmTZTtvY7z3ZdxGufjnXwvjZijL/sq4jzNdqM0j6UilGNs1YxbLFnEWxHZaj8oLZRP8trSeE328OPHM4fUt8564pH5HvSWW48p/YDRvSficWlTSOVMsHss4MZyYM3wogF0VnwDWO1vNoHOgWyVv54uLkh0f7Xlnj2PhKQs8W/zgvRmg0Va0i4tEwHUtldZwqfPcLjy1jPxj3SQdGxxPrwD0jT8zpL+h2g/oCnRriFn1oxukDLCvVcKNSrLe9v916FcNtw1rMJsnXz+78+j1J1fx+oMtbtYUGhLWkt66zHpwggU7g/+e5FGr69e9AfWwWc+n96/X6CvEK6u4If1QTi3dxHU5JbVbb1x7RhpG++8uL+HCKhUCnUjReFQlq6wX6U5DPM9eOGeW5DvjUYLlJwH0cxA+CrNf1aihRQD0zmy7LidcY7ajQICsk29HCFMf6h1Unom/evEksy+MkFlbT3vAqyJoRX660MKDHrQoNJMGz9s2OWScdR32mC97bW72ikJ463C4P3JwYejn98zvlNstDdXVfGWK1cXT1RCmMyJSricdXSIKJdtEZEZCpM0vJ0xoRNJWeSuANIaSaUo2SzpOx/CR/e+m3gcSRpiO760+W25Ye6zm4zg9Jo1jZtd/PTlhzEmRfgQzbdSzFGZFeusyoPTt5OJuzACWqnhCL4FAI1iwpRwedkfdq+D5+mOHLhyGAXfO23aqJYaIJADR2N7pG7Lkt1Cqxcl7Kc9O7/lUCMRGubFdBt2lh/U3UtaghRW6NVyg5DVThwcH52dHf072+8Ph8fnJ4kjqF/L7ZpdhAiGnVhHYXjumbyknD8QQoRfIV3De6FpcO/Ld0M+8/LZowax8GngD3WDyOZef0grBdbrzrMX8Hp3NBo5wZItppdVKBviuRXf8+JP+ZT+ZT7trflk2XJ6/v795D/7S3tL7ILgYV8Mf7sv9r263iwMuq74awAAAP//hKNgEksMAAA=
mode: 511
path: /etc/ociudevpersistentnaming
---
# ----- 04-cluster-network.yml -----
# required for iscsi boot volumes on OCP 4.17+
apiVersion: operator.openshift.io/v1
kind: Network
metadata:
name: cluster
spec:
defaultNetwork:
ovnKubernetesConfig:
gatewayConfig:
ipv4:
internalMasqueradeSubnet: 169.254.64.0/18
type: OVNKubernetes
managementState: Managed
---
# Generated by Butane; do not edit