-
Notifications
You must be signed in to change notification settings - Fork 2
4.5.6
usrbinkat edited this page Sep 23, 2020
·
1 revision
- Create Platform Artifacts Staging Directory
mkdir -p /tmp/bundle ;
- Build OpenShift Infrastructure, Operators, and App Bundles
sudo podman run -it --rm --pull always \
--volume /tmp/bundle:/root/deploy/bundle:z \
docker.io/codesparta/koffer:4.5.6 bundle \
--repo collector-infra
- Paste Quay.io Image Pull Secret when prompted
- Review your artifacts
du -sh /tmp/bundle/*
Valid transport strategies include:
- S3
- SCP
- Rsync
- Physical media (e.g. DVD)
Glossary:
keyname
your AWS SSH key pair for provisioning bastion and registryrhel_bastion_public_ip
public IP of your RHEL bastionrhcos_private_registry_node_ip
your Red Hat CoreOS (RHCOS) registry node private IP
- Set Permissions on bundle(s)
sudo chown -R $USER /tmp/bundle
- Push bastion SSH keys to RHEL bastion
scp -i ~/.ssh/${keyname} ~/.ssh/${keyname}* ec2-user@${rhel_bastion_public_ip}:~/.ssh/
- Push artifact bundles to RHEL bastion
rsync --progress -avzh /tmp/bundle -e "ssh -i ~/.ssh/${keyname}" ec2-user@${rhel_bastion_public_ip}:~
- SSH to the RHEL bastion
ssh -i ~/.ssh/${keyname} ec2-user@${rhel_bastion_public_ip}
- Push artifact bundles to RHCOS private registry node
rsync --progress -avzh bundle -e "ssh -i ~/.ssh/${keyname}" core@${rhcos_private_registry_node_ip}:~
- SSH to the RHCOS private registry node
ssh -i ~/.ssh/${keyname} core@${rhcos_private_registry_node_ip}
- Extract bundles
sudo mkdir -p /root/deploy/mirror
sudo tar xv -f ${HOME}/bundle/koffer-bundle.openshift-*.tar -C /root
- Acquire root
sudo -i
- Assign variables
vi answer.sh
- Run Konductor
./konductor.sh
- Exec into Konductor
podman exec -it one connect
- Watch Cluster Operators come online (may take 30-60 minutes)
watch oc get co
- Patch/Disable Cloud Credential Operator
oc patch cm cloud-credential-operator-config -p '{"data":{"disabled":"true"}}' -n openshift-cloud-credential-operator
- Print & Load Apps ELB DNS CNAME Forwarder into apps route53 entry
oc get svc -n openshift-ingress | awk '/router-default/{print $4}'
- Add Apps ELB
*.apps.cluster.domain.com
wildcard DNS Entry
- Exec into container
sudo podman exec -it one bash
- Change dir into Terraform Directory
cd /root/deploy/terraform/shaman
- Patch masters to make scheduleable
oc patch schedulers.config.openshift.io cluster -p '{"spec":{"mastersSchedulable":true}}' --type=merge
- Delete machinesets & wait for worker nodes to terminate
for i in $(oc get machinesets -A | awk '/machine-api/{print $2}'); do oc delete machineset $i -n openshift-machine-api; echo deleted $i; done
- Delete service router & wait for it to terminate
oc delete service router-default -n openshift-ingress &
- Exec control plane breakdown playbook
chmod +x ./breakdown.yml && ./breakdown.yml
- change dir into devkit-vpc directory
- exec breakdown script
./devkit-destroy-vpc.sh