Scripts for easy install OKD on Proxmox using qcow2 images and templates.
The scripts will help deploying 3 nodes okd 4.5 cluster
- Proxmox 6.x
- Enough resources
- CPU: 16 vcpu (at least 12vcpu, 4 for each master node)
- RAM: 64 GB (32GB should be ok)
- DISK: 500 GB (possibly SSD, better NVME)
- DHCP reservation for nodes
- DNS entries for nodes and haproxy
- Pull-secret downloaded from RH: https://cloud.redhat.com/openshift/install/pull-secret
Clone repository directly on Proxmox host
git clone https://github.com/pvelati/okd-proxmox-scripts.git
vim scripts/setup-haproxy.sh
- Edit IP addresses
- Execute command to compile conf and deploy haproxy LXC
sh scripts/setup-haproxy.sh
sh scripts/setup-clients.sh
sh scripts/setup-qcow2-image.sh
sh scripts/setup-template.sh
vim ignitions/install-config.yaml.ORIG
- Edit sshKey with your ssh public key
- Change baseDomain with your network domain
- Change pullSecret with your personal one or use
{“auths”:{“fake”:{“auth”: “bar”}}}
- You can change other things if you want, but it's your resposability 👀
apiVersion: v1
baseDomain: yourdomain.local
metadata:
name: lab
compute:
- hyperthreading: Disabled
name: worker
replicas: 0
controlPlane:
hyperthreading: Disabled
name: master
replicas: 3
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
networkType: OpenShiftSDN
serviceNetwork:
- 172.30.0.0/16
platform:
none: {}
fips: false
pullSecret: '{"auths" ... }'
sshKey: 'ssh-rsa AAAA...='
sh scripts/build-ignitions.sh
sh scripts/deploy-all.sh
./openshift-install wait-for bootstrap-complete --dir=ignitions/
And wait for completion. After that you can stop and delete bootstrap vm.
./openshift-install wait-for install-complete --dir=ignitions/
And wait for completion.
- Storage
- Deployments
Delete all ignitions files
sh scripts/clean.sh
Stop and delete all VMs and haproxy LXC
sh scripts/delete-all.sh