Skip to content

Instantly share code, notes, and snippets.

@ikurni
Last active July 7, 2020 15:47
Show Gist options
  • Save ikurni/b2c1d7ac2bb267a85894b416bc77bf52 to your computer and use it in GitHub Desktop.
Save ikurni/b2c1d7ac2bb267a85894b416bc77bf52 to your computer and use it in GitHub Desktop.
Openshift 4 Add worker nodes after 24 hours
##Replace api-int.clusterDomain with your FQDN only and run the below commands:
export MCS=api-int.clusterDomain:22623
##Run below command to update worker.ign file
echo "q" | openssl s_client -connect $MCS -showcerts | awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/' | base64 --wrap=0 | tee ./api-int.base64 && \
sed --regexp-extended --in-place=.backup "s%base64,[^,]+%base64,$(cat ./api-int.base64)\"%" ./worker.ign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment