- Create an Intersight API key
- Terraform client
- kubectl
- cd 1_Deploy_IKS
- Update creds.yml with Intersight API key and Base64 encoded secret key
- export CLUSTERNAME=sbox
- terraform plan -state=${CLUSTERNAME}-tfstate -target=module.iks -var="iks_cluster_name=${CLUSTERNAME}" -out plan.out && terraform apply -state=${CLUSTERNAME}-tfstate plan.out
- terraform plan -state=${CLUSTERNAME}-tfstate -var="iks_cluster_name=${CLUSTERNAME}" -var="iks_cluster_action=Deploy" -out plan.out && terraform apply -state=${CLUSTERNAME}-tfstate plan.out
- terraform destroy -state=${CLUSTERNAME}-tfstate -var='iks_cluster_name=${CLUSTERNAME}' --auto-approve
Git repository