Scripts to use as inspiration for your own OpenShift clusters.
- Create a directory with the name of the cluster you want to create.
- Generate an
install-config.yaml(for example, using openshift-install create install-configs). - Copy your
install-config.yamltoinstall-config.yaml.save. This ensures you still have a copy after the installer deletesinstall-config.yaml. Add abin/subdirectory and add it to the begining of your PATH. I recommend you usedirenvto manage this (sudo dnf install direnv). Download an installer usingdownload-openshift-install.sh. It presents a text-UI, or specifylatestparameter to download the latest good nightly build of the current version in development.
Run the rest of the scripts:
destroy-cluster.sh: cleans up most AWS resources.cleanup-records-sets.sh: cleans up AWS Route53 (DNS) records.reset-config.sh: cleans up files from previous cluster and copies install-config.yaml.savetoinstall-config.yaml.create-cluster.sh: runs the installer.create-admin-user.sh: creates and configures an admin user. Does not removekubeadmin.generate-or-renew-certs.sh: generates or renews SSL certs using letsencryptinstall-certs.sh: configures cluster to use the SSL certs.deploy-user-grafana.sh: deploys a grafana instance with access to the cluster metrics.
destroy-cluster.sh ; cleanup-records-sets.sh && reset-config.sh && create-cluster.sh && create-admin-user.sh && generate-or-renew-certs.sh && install-certs.sh