Skip to content

Instantly share code, notes, and snippets.

@glennswest
Created August 28, 2019 13:04
Show Gist options
  • Select an option

  • Save glennswest/bde5a346bf3bb88c7803f8b447ab89de to your computer and use it in GitHub Desktop.

Select an option

Save glennswest/bde5a346bf3bb88c7803f8b447ab89de to your computer and use it in GitHub Desktop.
Example esxi deployment
rm -r -f tiny
mkdir tiny
cp install-config.yaml tiny
openshift-install create ignition-configs --dir=tiny
rm -f ~/worker.ign
cp ~/k.lo/tiny/worker.ign ~
rm ~/.kube/config
cp /root/k.lo/tiny/auth/kubeconfig ~/.kube/config
rm -r -f /data/svcrhcos.${SVCDOMAIN}/tiny
cp -r tiny /data/svcrhcos.${SVCDOMAIN}
rm -f /etc/dnsmasq.d/tiny.hosts
cp dnsmasq.d/tiny-preboot.hosts /etc/dnsmasq.d/tiny.hosts
systemctl restart dnsmasq
systemctl status dnsmasq
sleep 10
./poweroff-all-vms.sh
sleep 5
./erase-all-vms.sh
sleep 10
./poweron-all-vms.sh
openshift-install --dir=tiny wait-for bootstrap-complete --log-level debug
rm -f /etc/dnsmasq.d/tiny.hosts
cp dnsmasq.d/tiny-postboot.hosts /etc/dnsmasq.d/tiny.hosts
systemctl restart dnsmasq
systemctl status dnsmasq
openshift-install --dir=tiny wait-for install-complete --log-level debug
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"storage":{"emptyDir":{}}}}'
@glennswest
Copy link
Copy Markdown
Author

Note two things:

  1. Copy of the kubeconfig to ~/.kube/config
  2. Copy of worker.ign to ~

Both of these are needed to match the current winoperater install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment