Skip to content

vtog/okd-aws-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create OKD v4 (UPI) deployment with Terraform.

The whole process will take ~30m. I'm assuming Linux client (Required: awscli, jq, terraform)

  1. Configure your aws credentials using "default" profile (~/.aws/credentials)
  2. I'm assuming you already have an SSH key generated in the default ~/.ssh directory.
    • If not use the following, "ssh-keygen -t rsa -b 4096" or however you'd like to generate the keys.
  3. Clone this repo
  4. Be sure to adjust the domains in the following files for your environment.
    • "public_domain" in ./terraform.tfvars
    • "baseDomain" in ./okd/ignition/install-config.yaml
  5. Download latest okd "client & "install" from github https://github.com/openshift/okd/releases
    • For corp account use "4.7.0-0.okd-2021-05-22-050008", newer version don't like session tokens.
  6. Untar both files in root of cloned repo
  7. Move "oc" & "kubectl" to "/usr/local/bin"
  8. Run "./scripts/deploy_okd.sh" (may need to insall libvirt-clients)
  9. Run "terraform init --upgrade"
  10. Run "terraform validate" #validates code
  11. Run "terraform plan" #validates AWS connectivity and object createion
  12. Run "terraform apply -auto-approve"
  13. "export KUBECONFIG=$PWD/ignition/auth/kubeconfig"
  14. Monitor process for control nodes to go active. (Time ~15m)
    • oc get nodes
    • oc get csr
  15. Once worker nodes are up you'll need to approve their csr. Wait to see "Pending" and run the following command. This will need to be done twice.
    • oc get csr -o go-template='{{range .items}}{{if not .status}}{{.metadata.name}}{{"\n"}}{{end}}{{end}}' | xargs --no-run-if-empty oc adm certificate approve
  16. Watch for cluster operators to deploy (Time ~30m)
    • watch -n3 oc get co

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published