forked from openshift/release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
master-sidecar-4.4.yaml
1972 lines (1825 loc) · 77.1 KB
/
master-sidecar-4.4.yaml
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
kind: Template
apiVersion: template.openshift.io/v1
parameters:
- name: JOB_NAME_SAFE
required: true
- name: LOCAL_IMAGE_SRC
required: true
- name: IMAGE_CLI
required: true
- name: IMAGE_OPENSHIFT_APISERVER
required: true
- name: IMAGE_OPENSHIFT_CONTROLLER_MANAGER
required: true
- name: IMAGE_HYPERKUBE
required: true
- name: IMAGE_ETCD
required: true
- name: COMMAND
required: true
- name: NAMESPACE
required: true
objects:
# We want the cluster to be able to access these images
- kind: RoleBinding
apiVersion: authorization.openshift.io/v1
metadata:
name: ${JOB_NAME_SAFE}-image-puller
namespace: ${NAMESPACE}
roleRef:
name: system:image-puller
subjects:
- kind: SystemGroup
name: system:unauthenticated
- kind: SystemGroup
name: system:authenticated
# The pod spins up a simple openshift control plane as a sidecar and waits for the
# COMMAND specified to the template to be executed, before itself exiting. The test
# container is given access to the generated config and the admin.kubeconfig.
- kind: Pod
apiVersion: v1
metadata:
name: ${JOB_NAME_SAFE}
namespace: ${NAMESPACE}
annotations:
ci-operator.openshift.io/container-sub-tests: "setup,test"
ci-operator.openshift.io/save-container-logs: "true"
ci-operator.openshift.io/wait-for-container-artifacts: setup
spec:
# otherwise the control plane is attempting to load the wrong credentials
automountServiceAccountToken: false
restartPolicy: Never
activeDeadlineSeconds: 7200
terminationGracePeriodSeconds: 600
volumes:
- name: artifacts
emptyDir: {}
- name: shared-tmp
emptyDir: {}
- name: start
configMap:
name: master-start-4
defaultMode: 0555
- name: sa-secrets
emptyDir: {}
initContainers:
- name: bin-cli
image: ${IMAGE_CLI}
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
command:
- /bin/sh
- -c
- |
mkdir /tmp/shared/bin
cp /usr/bin/oc /tmp/shared/bin/
- name: bin-hyperkube
image: ${IMAGE_HYPERKUBE}
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
command:
- cp
- /usr/bin/hyperkube
- /usr/bin/kube-apiserver
- /usr/bin/kube-controller-manager
- /tmp/shared/bin/
- name: bin-openshift-controller-manager
image: ${IMAGE_OPENSHIFT_CONTROLLER_MANAGER}
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
command:
- cp
- /usr/bin/openshift-controller-manager
- /tmp/shared/bin/
- name: bin-openshift-apiserver
image: ${IMAGE_OPENSHIFT_APISERVER}
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
command:
- cp
- /usr/bin/openshift-apiserver
- /tmp/shared/bin/
- name: bin-etcd
image: ${IMAGE_ETCD}
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
command:
- cp
- /usr/bin/etcd
- /tmp/shared/bin/
containers:
# Once admin.kubeconfig exists, executes shared tests
- name: test
image: ${LOCAL_IMAGE_SRC}
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
- name: artifacts
mountPath: /tmp/artifacts
env:
- name: ARTIFACT_DIR
value: /tmp/artifacts
command:
- /bin/bash
- -c
- |
#!/bin/bash
set -euo pipefail
trap 'touch /tmp/shared/exit' EXIT
trap 'jobs -p | xargs -r kill || true; exit 0' TERM
# wait until the master job creates admin.kubeconfig
while true; do
if [[ ! -f /tmp/shared/admin.kubeconfig ]]; then
sleep 5 & wait
continue
fi
break
done
echo "Found kubeconfig"
export KUBECONFIG=/tmp/shared/admin.kubeconfig
${COMMAND}
# Start a standalone master
- name: setup
image: ${LOCAL_IMAGE_SRC}
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: shared-tmp
mountPath: /tmp/shared
- name: artifacts
mountPath: /tmp/artifacts
- name: start
mountPath: /tmp/start
- name: sa-secrets
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
env:
- name: ARTIFACT_DIR
value: /tmp/artifacts
- name: API_HOST_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: API_HOST
value: $(API_HOST_IP)
- name: TYPE
value: ${CLUSTER_TYPE}
resources:
requests:
cpu: 1
memory: 300Mi
limits:
memory: 1Gi
command:
- /bin/bash
- -c
- |
#!/bin/bash
set -euo pipefail
function teardown() {
set +e
echo "Gathering artifacts ..."
cp -R /tmp/shared/logs ${ARTIFACT_DIR}/
}
trap 'teardown' EXIT
trap 'jobs -p | xargs -r kill || true; wait; exit 0' TERM
export HOME=/tmp/home
export PATH=/tmp/shared/bin:$PATH
mkdir /tmp/home
mkdir /tmp/cluster
(
while true; do
if [[ -f /tmp/shared/exit ]]; then
echo "Shutting down"
kill 1
exit 0
fi
sleep 5
done
) &
/tmp/start/start.sh /tmp/shared &
wait $!
# ---
- apiVersion: v1
data:
apiservice-00_role_binding_restriction_crd.yaml: |
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: rolebindingrestrictions.authorization.openshift.io
spec:
group: authorization.openshift.io
names:
kind: RoleBindingRestriction
listKind: RoleBindingRestrictionList
plural: rolebindingrestrictions
singular: rolebindingrestriction
subresources:
status: {}
scope: Namespaced
versions:
- name: v1
served: true
storage: true
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: Spec defines the matcher.
properties:
grouprestriction:
description: GroupRestriction matches against group subjects.
nullable: true
properties:
groups:
description: Groups is a list of groups used to match against an
individual user's groups. If the user is a member of one of the
allowlisted groups, the user is allowed to be bound to a role.
items:
type: string
type: array
nullable: true
labels:
description: Selectors specifies a list of label selectors over
group labels.
items:
type: object
type: array
nullable: true
type: object
serviceaccountrestriction:
description: ServiceAccountRestriction matches against service-account
subjects.
nullable: true
properties:
namespaces:
description: Namespaces specifies a list of literal namespace names.
items:
type: string
type: array
serviceaccounts:
description: ServiceAccounts specifies a list of literal service-account
names.
items:
properties:
name:
description: Name is the name of the service account.
type: string
namespace:
description: Namespace is the namespace of the service account. Service
accounts from inside the allowlisted namespaces are allowed
to be bound to roles. If Namespace is empty, then the namespace
of the RoleBindingRestriction in which the ServiceAccountReference
is embedded is used.
type: string
type: object
type: array
type: object
userrestriction:
description: UserRestriction matches against user subjects.
nullable: true
properties:
groups:
description: Groups specifies a list of literal group names.
items:
type: string
type: array
nullable: true
labels:
description: Selectors specifies a list of label selectors over
user labels.
items:
type: object
type: array
nullable: true
users:
description: Users specifies a list of literal user names.
items:
type: string
type: array
type: object
type: object
apiservice-00_security_context_constraint_crd.yaml: |
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: securitycontextconstraints.security.openshift.io
spec:
group: security.openshift.io
names:
kind: SecurityContextConstraints
listKind: SecurityContextConstraintsList
plural: securitycontextconstraints
singular: securitycontextconstraints
subresources:
status: {}
scope: Cluster
versions:
- name: v1
served: true
storage: true
validation:
openAPIV3Schema:
properties:
allowHostDirVolumePlugin:
nullable: true
description: AllowHostDirVolumePlugin determines if the policy allow containers
to use the HostDir volume plugin +k8s:conversion-gen=false
type: boolean
allowHostIPC:
nullable: true
description: AllowHostIPC determines if the policy allows host ipc in the
containers.
type: boolean
allowHostNetwork:
nullable: true
description: AllowHostNetwork determines if the policy allows the use of
HostNetwork in the pod spec.
type: boolean
allowHostPID:
nullable: true
description: AllowHostPID determines if the policy allows host pid in the
containers.
type: boolean
allowHostPorts:
nullable: true
description: AllowHostPorts determines if the policy allows host ports in
the containers.
type: boolean
allowPrivilegeEscalation:
nullable: true
description: AllowPrivilegeEscalation determines if a pod can request to
allow privilege escalation. If unspecified, defaults to true.
type: boolean
allowPrivilegedContainer:
nullable: true
description: AllowPrivilegedContainer determines if a container can request
to be run as privileged.
type: boolean
allowedCapabilities:
nullable: true
description: AllowedCapabilities is a list of capabilities that can be requested
to add to the container. Capabilities in this field maybe added at the
pod author's discretion. You must not list a capability in both AllowedCapabilities
and RequiredDropCapabilities. To allow all capabilities you may use '*'.
items:
type: string
type: array
allowedFlexVolumes:
nullable: true
description: AllowedFlexVolumes is an allowlist of allowed Flexvolumes. Empty
or nil indicates that all Flexvolumes may be used. This parameter is
effective only when the usage of the Flexvolumes is allowed in the "Volumes"
field.
items:
properties:
driver:
description: Driver is the name of the Flexvolume driver.
type: string
type: object
type: array
allowedUnsafeSysctls:
nullable: true
description: 'AllowedUnsafeSysctls is a list of explicitly allowed unsafe
sysctls, defaults to none. Each entry is either a plain sysctl name or
ends in "*" in which case it is considered as a prefix of allowed sysctls.
Single * means all unsafe sysctls are allowed. Kubelet has to allowlist
all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g.
"foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar",
"foo.baz", etc.'
items:
type: string
type: array
apiVersion:
nullable: true
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
defaultAddCapabilities:
nullable: true
description: DefaultAddCapabilities is the default set of capabilities that
will be added to the container unless the pod spec specifically drops
the capability. You may not list a capabiility in both DefaultAddCapabilities
and RequiredDropCapabilities.
items:
type: string
type: array
defaultAllowPrivilegeEscalation:
nullable: true
description: DefaultAllowPrivilegeEscalation controls the default setting
for whether a process can gain more privileges than its parent process.
type: boolean
forbiddenSysctls:
nullable: true
description: 'ForbiddenSysctls is a list of explicitly forbidden sysctls,
defaults to none. Each entry is either a plain sysctl name or ends in
"*" in which case it is considered as a prefix of forbidden sysctls. Single
* means all sysctls are forbidden. Examples: e.g. "foo/*" forbids "foo/bar",
"foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.'
items:
type: string
type: array
fsGroup:
nullable: true
description: FSGroup is the strategy that will dictate what fs group is
used by the SecurityContext.
properties:
ranges:
nullable: true
description: Ranges are the allowed ranges of fs groups. If you would
like to force a single fs group then supply a single range with the
same start and end.
items:
properties:
max:
description: Max is the end of the range, inclusive.
format: int64
type: integer
min:
description: Min is the start of the range, inclusive.
format: int64
type: integer
type: object
type: array
type:
nullable: true
description: Type is the strategy that will dictate what FSGroup is
used in the SecurityContext.
type: string
type: object
groups:
nullable: true
description: The groups that have permission to use this security context
constraints
items:
type: string
type: array
kind:
nullable: true
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
description: 'Standard object''s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata'
type: object
priority:
nullable: true
description: Priority influences the sort order of SCCs when evaluating
which SCCs to try first for a given pod request based on access in the
Users and Groups fields. The higher the int, the higher priority. An
unset value is considered a 0 priority. If scores for multiple SCCs are
equal they will be sorted from most restrictive to least restrictive.
If both priorities and restrictions are equal the SCCs will be sorted
by name.
format: int32
type: integer
readOnlyRootFilesystem:
nullable: true
description: ReadOnlyRootFilesystem when set to true will force containers
to run with a read only root file system. If the container specifically
requests to run with a non-read only root file system the SCC should deny
the pod. If set to false the container may run with a read only root file
system if it wishes but it will not be forced to.
type: boolean
requiredDropCapabilities:
nullable: true
description: RequiredDropCapabilities are the capabilities that will be
dropped from the container. These are required to be dropped and cannot
be added.
items:
type: string
type: array
runAsUser:
nullable: true
description: RunAsUser is the strategy that will dictate what RunAsUser
is used in the SecurityContext.
properties:
type:
nullable: true
description: Type is the strategy that will dictate what RunAsUser is
used in the SecurityContext.
type: string
uid:
nullable: true
description: UID is the user id that containers must run as. Required
for the MustRunAs strategy if not using namespace/service account
allocated uids.
format: int64
type: integer
uidRangeMax:
nullable: true
description: UIDRangeMax defines the max value for a strategy that allocates
by range.
format: int64
type: integer
uidRangeMin:
nullable: true
description: UIDRangeMin defines the min value for a strategy that allocates
by range.
format: int64
type: integer
type: object
seLinuxContext:
nullable: true
description: SELinuxContext is the strategy that will dictate what labels
will be set in the SecurityContext.
properties:
seLinuxOptions:
nullable: true
description: seLinuxOptions required to run as; required for MustRunAs
type: object
type:
nullable: true
description: Type is the strategy that will dictate what SELinux context
is used in the SecurityContext.
type: string
type: object
seccompProfiles:
nullable: true
description: "SeccompProfiles lists the allowed profiles that may be set
for the pod or container's seccomp annotations. An unset (nil) or empty
value means that no profiles may be specifid by the pod or container.\tThe
wildcard '*' may be used to allow all profiles. When used to generate
a value for a pod the first non-wildcard profile will be used as the default."
items:
type: string
type: array
supplementalGroups:
nullable: true
description: SupplementalGroups is the strategy that will dictate what supplemental
groups are used by the SecurityContext.
properties:
ranges:
nullable: true
description: Ranges are the allowed ranges of supplemental groups. If
you would like to force a single supplemental group then supply a
single range with the same start and end.
items:
properties:
max:
description: Max is the end of the range, inclusive.
format: int64
type: integer
min:
description: Min is the start of the range, inclusive.
format: int64
type: integer
type: object
type: array
type:
nullable: true
description: Type is the strategy that will dictate what supplemental
groups is used in the SecurityContext.
type: string
type: object
users:
nullable: true
description: The users who have permissions to use this security context
constraints
items:
type: string
type: array
volumes:
nullable: true
description: Volumes is a white list of allowed volume plugins. FSType
corresponds directly with the field names of a VolumeSource (azureFile,
configMap, emptyDir). To allow all volumes you may use "*". To allow
no volumes, set to ["none"].
items:
type: string
type: array
apiservice-01_service.yaml: |
apiVersion: v1
kind: Service
metadata:
namespace: default
name: openshift
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 443
targetPort: 8444
apiservice-02_endpoints.yaml: |
apiVersion: v1
kind: Endpoints
metadata:
namespace: default
name: openshift
subsets:
- addresses:
- ip: NON_LOOPBACK_HOST
ports:
- port: 8444
apiservice-03_apiservice.yaml: |
apiVersion: v1
kind: List
items:
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.apps.openshift.io
spec:
group: apps.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.authorization.openshift.io
spec:
group: authorization.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.build.openshift.io
spec:
group: build.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.image.openshift.io
spec:
group: image.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.oauth.openshift.io
spec:
group: oauth.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.project.openshift.io
spec:
group: project.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.quota.openshift.io
spec:
group: quota.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.route.openshift.io
spec:
group: route.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.security.openshift.io
spec:
group: security.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.template.openshift.io
spec:
group: template.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1.user.openshift.io
spec:
group: user.openshift.io
version: v1
service:
namespace: default
name: openshift
insecureSkipTLSVerify: true
groupPriorityMinimum: 20000
versionPriority: 15
- apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: clusterresourcequotas.quota.openshift.io
spec:
group: quota.openshift.io
names:
kind: ClusterResourceQuota
listKind: ClusterResourceQuotaList
plural: clusterresourcequotas
singular: clusterresourcequota
scope: Cluster
subresources:
status: {}
versions:
- name: v1
served: true
storage: true
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
description: Standard object's metadata.
type: object
spec:
description: Spec defines the desired quota
properties:
quota:
description: Quota defines the desired quota
type: object
selector:
description: Selector is the selector used to match projects. It should
only select active projects on the scale of dozens (though it can
select many more less active projects). These projects will contend
on object creation through this resource.
properties:
annotations:
description: AnnotationSelector is used to select projects by annotation.
nullable: true
type: object
labels:
description: LabelSelector is used to select projects by label.
nullable: true
type: object
type: object
type: object
status:
description: Status defines the actual enforced quota and its current usage
properties:
namespaces:
description: Namespaces slices the usage by project. This division
allows for quick resolution of deletion reconciliation inside of a
single project without requiring a recalculation across all projects. This
can be used to pull the deltas for a given project.
items:
properties:
namespace:
description: Namespace the project this status applies to
type: string
status:
description: Status indicates how many resources have been consumed
by this project
type: object
type: object
nullable: true
type: array
total:
description: Total defines the actual enforced quota and its current
usage across all projects
type: object
type: object
kube-apiserver.yaml: |
apiVersion: kubecontrolplane.config.openshift.io/v1
kind: KubeAPIServerConfig
aggregatorConfig:
proxyClientInfo:
certFile: client-kube-aggregator.crt
keyFile: client-kube-aggregator.key
apiServerArguments:
storage-backend:
- etcd3
storage-media-type:
- application/vnd.kubernetes.protobuf
enable-aggregator-routing:
- "true"
authConfig:
requestHeader:
clientCA: client-kube-aggregator.crt
clientCommonNames:
- kube-apiserver-proxy
- system:openshift-aggregator
- system:kube-aggregator
extraHeaderPrefixes:
- X-Remote-Extra-
groupHeaders:
- X-Remote-Group
usernameHeaders:
- X-Remote-User
webhookTokenAuthenticators: null
corsAllowedOrigins:
- //127\.0\.0\.1(:|$)
- //localhost(:|$)
kubeletClientInfo:
ca: server-ca.crt
certFile: client-kubelet.crt
keyFile: client-kubelet.key
port: 10250
oauthConfig:
alwaysShowProviderSelection: false
assetPublicURL: https://127.0.0.1:8443
grantConfig:
method: auto
serviceAccountMethod: prompt
masterCA: server-ca.crt
masterPublicURL: https://127.0.0.1:8443
masterURL: https://127.0.0.1:8443
sessionConfig:
sessionMaxAgeSeconds: 300
sessionName: ssn
sessionSecretsFile: ""
templates: null
tokenConfig:
accessTokenMaxAgeSeconds: 86400
authorizeTokenMaxAgeSeconds: 300
identityProviders:
- name: alwaysallow
challenge: true
login: true
mappingMethod: claim
provider:
apiVersion: osin.config.openshift.io/v1
kind: AllowAllPasswordIdentityProvider
serviceAccountPublicKeyFiles:
- service-account
servicesNodePortRange: 30000-32767
servicesSubnet: 172.30.0.0/16 # ServiceCIDR
servingInfo:
bindAddress: 0.0.0.0:8443
bindNetwork: tcp4
certFile: serving-kube-apiserver.crt
clientCA: client-ca.crt
keyFile: serving-kube-apiserver.key
maxRequestsInFlight: 1200
namedCertificates: null
requestTimeoutSeconds: 3600
storageConfig:
ca: etcd-serving-ca.crt
certFile: client-etcd-client.crt
keyFile: client-etcd-client.key
urls:
- https://127.0.0.1:2379
openshift-apiserver.yaml: |
apiVersion: openshiftcontrolplane.config.openshift.io/v1
kind: OpenShiftAPIServerConfig
kubeClientConfig:
kubeConfig: openshift-apiserver.kubeconfig
apiServerArguments:
storage-backend:
- etcd3
storage-media-type:
- application/vnd.kubernetes.protobuf
corsAllowedOrigins:
- //127\.0\.0\.1(:|$)
- //localhost(:|$)
servingInfo:
bindAddress: 0.0.0.0:8444
bindNetwork: tcp4
certFile: serving-openshift-apiserver.crt
clientCA: client-ca.crt
keyFile: serving-openshift-apiserver.key
maxRequestsInFlight: 1200
namedCertificates: null
requestTimeoutSeconds: 3600
storageConfig:
ca: etcd-serving-ca.crt
certFile: client-etcd-client.crt
keyFile: client-etcd-client.key
urls:
- https://127.0.0.1:2379
openshift-controller-manager.yaml: |
apiVersion: openshiftcontrolplane.config.openshift.io/v1
kind: OpenShiftControllerManagerConfig
kubeClientConfig:
kubeConfig: openshift-controller-manager.kubeconfig
corsAllowedOrigins:
- //127\.0\.0\.1(:|$)
- //localhost(:|$)
servingInfo:
bindAddress: 0.0.0.0:8445
bindNetwork: tcp4
certFile: serving-openshift-controller-manager.crt
clientCA: client-ca.crt
keyFile: serving-openshift-controller-manager.key
maxRequestsInFlight: 1200
namedCertificates: null
requestTimeoutSeconds: 3600