-
Notifications
You must be signed in to change notification settings - Fork 3
/
install-config-example.yaml
100 lines (96 loc) · 3.69 KB
/
install-config-example.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
apiVersion: v1
# Additional parameters for disconnected clusters
#additionalTrustBundle: |
# < certificate bundle >
#imageContentSources:
# - mirrors:
# - quay-mirror.example/openshift-release-dev/ocp-release
# source: quay.io/openshift-release-dev/ocp-release
# Additional parameters for hypershift-helm
hypershift:
osImageVersion: "4.12"
clusterImageSet: quay.io/openshift-release-dev/ocp-release:4.12.0-x86_64 # Required
additionalNTPSources: # Optional
- pool.ntp.org
clusterConfiguration: # Optional, see https://hypershift-docs.netlify.app/how-to/cluster-configuration/
cliImage: mirror.example.com/openshift4/ose-cli:latest # Optional, may be needed in a disconnected environment. The Helm chart uses registry.redhat.io/openshift4/ose-cli:latest by default
olmCatalogPlacement: "guest" # Optional, defaults to "management"
customManifests:
| # Optional, can be used to apply some manifests post-install. Below is an example of a custom catalog source
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: redhat-operators
namespace: openshift-marketplace
spec:
image: mirror.com:8443/redhat/redhat-operator-index:v4.16
sourceType: grpc
disableAllDefaultSources: true # Optional, defaults to false. Disables default catalog sources. olmCatalogPlacement must be set to "guest"
nodePoolConfigs: # Optional, only required if you want to customize one of these values
- name: worker
configRefs: # Optional, see https://hypershift-docs.netlify.app/reference/api/#hypershift.openshift.io/v1beta1.NodePoolSpec
- name: configMap1 # Needs to be pre-created, and should exist in a namespace called <cluster-name>
- name: configMap2
osImageVersion: "4.11"
imageSet: quay.io/openshift-release-dev/ocp-release:4.11.0-x86_64 # Optional, will default to the value of clusterImageSet
baseDomain: <cluster_domain>
compute:
- name: worker # This will be the name of the NodePool that is created
replicas: 2
metadata:
name: <example_cluster_name>
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16
platform:
baremetal:
apiVIP: <api_address> # Should be in the same subnet as the management cluster
ingressVIP: <ingress_address> # Should be in the same subnet as the hosted cluster worker nodes
hosts:
- name: openshift-worker-0
role: worker # Should match the name of the NodePool
bmc:
address: "redfish-virtualmedia://<bmc_ip_address>/redfish/v1/Systems/1"
username: <username>
password: <password>
bootMACAddress: <nic1_mac_address>
rootDeviceHints:
hctl: "1:0:0:0"
networkConfig:
interfaces:
- name: eno1
type: ethernet
mac-address: <nic1_mac_address>
state: up
ipv4:
enabled: true
dhcp: true
ipv6:
enabled: false
- name: openshift-worker-1
role: worker # Should match the name of the NodePool
bmc:
address: "redfish-virtualmedia://<bmc_ip_address>/redfish/v1/Systems/1"
username: <username>
password: <password>
bootMACAddress: <nic1_mac_address>
rootDeviceHints:
hctl: "2:0:0:0"
networkConfig:
interfaces:
- name: eno1
type: ethernet
mac-address: <nic1_mac_address>
state: up
ipv4:
enabled: true
dhcp: true
ipv6:
enabled: false
pullSecret: "<pull secret>"
sshKey: |
ssh-rsa ...