Skip to content

Commit

Permalink
okd basic support
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 29, 2025
1 parent 5610e13 commit 89f99aa
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
24 changes: 24 additions & 0 deletions paramfiles/okd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
fake_network: true
pool: default
disconnected: false
okd: true
virtual_hub: true
static_network: true
version: ci
tag: 4.18
dns: true
installer_ip: 192.168.130.251
cluster: lab
domain: karmalabs.corp
baremetal_cidr: 192.168.130.0/24
baremetal_net: lab-baremetal
api_ip: 192.168.130.253
ingress_ip: 192.168.130.252
static_ips:
- 192.168.130.20
- 192.168.130.21
- 192.168.130.22
- 192.168.130.23
- 192.168.130.24
- 192.168.130.25
- 192.168.130.26
1 change: 1 addition & 0 deletions plans/kcli_plan_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,4 @@ service_network_ipv6: "fd02::/112"
apps_install_cr: false
rendezvous_ip:
registry: false
okd: false
2 changes: 1 addition & 1 deletion scripts/02_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kcli download kubectl
mv kubectl /usr/bin
chmod u+x /usr/bin/kubectl

kcli download openshift-install -P version={{ version }} -P tag={{ tag }} -P pull_secret=/root/openshift_pull.json
kcli download openshift-install -P version={{ version }} -P tag={{ tag }} -P pull_secret=/root/openshift_pull.json -P upstream={{ okd }}
mv openshift-install /usr/bin
chmod u+x /usr/bin/openshift-install
openshift-install version | grep 'release image' | cut -d' ' -f3 > /root/version.txt
Expand Down
5 changes: 5 additions & 0 deletions scripts/07_deploy_hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ mkdir -p ocp/openshift
cp install-config.yaml ocp
cp agent-config.yaml ocp

{% if okd %}
# export OPENSHIFT_INSTALL_OS_IMAGE_OVERRIDE=https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.16/4.16.3/rhcos-4.16.3-x86_64-live.x86_64.iso
export OPENSHIFT_INSTALL_OS_IMAGE_OVERRIDE=http://10.6.118.247/scos-live.iso
{% endif %}

if find manifests/*y*ml -quit &> /dev/null ; then
cp manifests/*y*ml >/dev/null 2>&1 ocp/openshift
openshift-install agent create cluster-manifests --dir ocp
Expand Down

0 comments on commit 89f99aa

Please sign in to comment.