Deploy Openshift Container Platform (OCP) v3.11 to Amazon Web Services (AWS) via Terraform
- Creates a basic OCP v3.11 cluster with a single master node, single compute node, and a bastion.
-
Install and configure awscli
curl -OL https://raw.githubusercontent.com/tosin2013/openshift-4-deployment-notes/master/aws/configure-aws-cli.sh chmod +x configure-aws-cli.sh ./configure-aws-cli.sh -i
Install Terraform
terraform --version Terraform v0.15.4 on linux_amd64 + provider registry.terraform.io/hashicorp/aws v3.42.0 + provider registry.terraform.io/hashicorp/null v3.1.0 + provider registry.terraform.io/hashicorp/template v2.2.0
(Optional) Copy/rename
terraform.tfvars.example
toterraform.tfvars
and fill in the information (otherwise these will be prompted on apply):mv terraform.tfvars.example terraform.tfvars
Initialize and test the Terraform configuration.
terraform init && terraform plan
Initialize and apply the Terraform configuration. Provide verification to deploy OCP v3.11 (add
-auto-approve
to apply without user verification):terraform init && terraform apply
The Terraform output provides access credentials for the cluster. (NOTE: You can administer the cluster directly by SSH-ing to the Bastion and then SSH-ing to the Master, where
oc
is already configured and logged in with the default Cluster Administrator,system:admin
):- To see all output:
terraform output
- To see only one output (handy for copy/paste or scripts):
terraform output <variable>
- Example: SSH directly to Master node through Bastion
$(terraform output bastion_ssh) -A -t ssh $(terraform output private_dns_master)
To destroy the cluster and its resources:
terraform destroy
ocp311_tf_aws's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
Jobs
Jooble