Giter Club home page Giter Club logo

ocp4-upi's Introduction

SUMMARY

  • Code helps in automating the building of OCP4 cluster through User Provisioned Infrastructure (UPI)

UPI INSTALLATION SUMMARY STEPS

1) configure an AWS account.
2) Add your AWS keys and region to your local AWS profile by running aws configure.
3) Generate the Ignition config files for your cluster.
4) Create and configure AWS Virtual Private Cloud (VPC) and associated subnets in AWS.
5) Create and configure Networking and load balancing components [ DNS, load balancers, and listeners in AWS.]
6) Create security groups and roles required for your cluster in AWS.
7) Create OpenShift Container Platform bootstrap node
8) Create OpenShift Container Platform control plane nodes
9) Create the OpenShift Container Platform compute/worker nodes.
10) start the bootstrap sequence that initializes the OpenShift Container Platform control plane
11) install the OpenShift CLI (oc) to interact with OpenShift Container Platform from a command-line interface. 
12) Logging in to the cluster by using the CLI
13) Approve the certificate signing requests for your machines
14) Initial Operator configuration
15) Image registry storage configuration
16) Delete the bootstrap resources
17) Creating the Ingress DNS Records
18) Logging in to the cluster by using the web console
19) Telemetry access for OpenShift Container Platform
20) Deploy an application to test?

SCRIPTS

  1. set_baselines.yml: Ansible playbook. Sets the baselines for ocp4 installation.

  2. create_stacks.py: Python script which creates the stacks needed for ocp4 setup.

HOW TO USE

Prerequisites

  1. Have your RED HAT & AWS credentials stored in a file i.e creds.yml ** After the first login into AWS, the AWS credentials are saved in ~/.aws/credentials. But you can still save them in the creds.yml file too.**

  2. Download all needed artifacts into the ~/Downloads/ directory. This will be the source of truth for the script run.

Implementation Steps

STEP 1) Run the ansible-script , set_baselines.yml

    $ansible-playbook set_baselines.yml -e "@../../ansible/common/creds.yml"

STEP 2) Run the python-script, create_stacks.py

   $python3 create_stacks.py

STEP 3) Initializing the bootstrap sequence on AWS

   $ openshift-install wait-for bootstrap-complete --dir <installation_directory> --log-level=info 

STEP 4) Set the environment variable for KUBEADMIN & test the login + health of cluster using 'oc'

   $ export KUBECONFIG=< the install directory name>/auth/kubeconfig

*** Cannot be set/reset in the same shell session as the script is running.
*** It won't be registered for the subsequent script actions within the same shell sessions.

Example:
   $ export KUBECONFIG=<installation_directory>/auth/kubeconfig
   
   $ echo $KUBECONFIG 
   
     ocp4-apse2-07/auth/kubeconfig
     
   $ oc get clusterversion
   
   $ oc get nodes

REFERENCES

https://docs.openshift.com/container-platform/4.10/installing/installing_aws/installing-aws-user-infra.html#installation-generate-aws-user-infra-install-config_installing-aws-user-infra

ocp4-upi's People

Contributors

254in61 avatar

Stargazers

Roman avatar

Watchers

 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.