GithubHelp home page GithubHelp logo

tosin2013 / ocp311_tf_aws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dhaiducek/ocp311_tf_aws

0.0 2.0 0.0 29 KB

Deploy OCP 3.11 to AWS via Terraform

License: GNU General Public License v3.0

Shell 3.15% HCL 96.85%

ocp311_tf_aws's Introduction

Openshift 3.11 on AWS via Terraform

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.

To Use

  • 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 to terraform.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

Contributors

dhaiducek avatar tosin2013 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.