All Projects → sozercan → OpenShift-Azure-Terraform

sozercan / OpenShift-Azure-Terraform

Licence: MIT license
⛑ Deploy OpenShift Origin on Azure using Terraform and Ansible

Programming Languages

HCL
1544 projects
shell
77523 projects

Projects that are alternatives of or similar to OpenShift-Azure-Terraform

Centos7 S2i Nodejs
DEPRECATED OpenShift S2I builder images for Node.js ✨
Stars: ✭ 34 (+61.9%)
Mutual labels:  openshift, redhat
Openshiftv3 Workshop
OpenShift v3 Workshops by the OpenShift Tiger Team
Stars: ✭ 179 (+752.38%)
Mutual labels:  openshift, redhat
Origin
Conformance test suite for OpenShift
Stars: ✭ 8,046 (+38214.29%)
Mutual labels:  openshift, openshift-origin
openshift-install
Install Openshift Docker Meetup Jakarta-Indonesia
Stars: ✭ 17 (-19.05%)
Mutual labels:  openshift, openshift-origin
commons.openshift.org
Repository for OpenShift Commons Community Site
Stars: ✭ 31 (+47.62%)
Mutual labels:  openshift, redhat
Azure Openshift
RedHat Openshift Origin cluster on Azure
Stars: ✭ 17 (-19.05%)
Mutual labels:  openshift, redhat
Casl Ansible
Ansible automation for Managing OpenShift Container Platform clusters
Stars: ✭ 123 (+485.71%)
Mutual labels:  openshift, redhat
Openshiftv3 Ops Workshop
Workshop Materials for Operations
Stars: ✭ 60 (+185.71%)
Mutual labels:  openshift, redhat
openshift-json-schema
A set of JSON schemas for various OpenShift versions, extracted from the OpenAPI definitions
Stars: ✭ 23 (+9.52%)
Mutual labels:  openshift, openshift-origin
Helloworld Msa
Main repository with documentation and support files
Stars: ✭ 218 (+938.1%)
Mutual labels:  openshift, redhat
buildah-build
GitHub Action to use 'buildah' to build a container image.
Stars: ✭ 75 (+257.14%)
Mutual labels:  openshift, redhat
kubernetes-lab
Kubernetes - Basics to Advanced
Stars: ✭ 44 (+109.52%)
Mutual labels:  openshift, redhat
openshift-cheatsheet
Red Hat OpenShift cheatsheet
Stars: ✭ 58 (+176.19%)
Mutual labels:  openshift, redhat
Microservices Observability
This project is a demonstration on how to instrument, monitor and trace applications using java frameworks and open-source tools like prometheus, grafana and jaeger.
Stars: ✭ 23 (+9.52%)
Mutual labels:  openshift, redhat
Minishift
Run OpenShift 3.x locally
Stars: ✭ 2,246 (+10595.24%)
Mutual labels:  openshift, openshift-origin
s2i-build
Github Action to build an OCI-compatible container image from source code.
Stars: ✭ 26 (+23.81%)
Mutual labels:  openshift, redhat
okd-installation-centos
This repository is used to create OKD 3.11 Cluster with 9 simple steps on Bare VM's
Stars: ✭ 23 (+9.52%)
Mutual labels:  openshift, openshift-origin
cryostat-operator
An OpenShift Operator to facilitate setup and management of Cryostast and expose the Cryostat API through Kubernetes Custom Resources.
Stars: ✭ 25 (+19.05%)
Mutual labels:  openshift
Autodesk-Fusion-360-for-Linux
This is a project, where I give you a way to use Autodesk Fusion 360 on Linux!
Stars: ✭ 810 (+3757.14%)
Mutual labels:  redhat
subscription-manager
A GUI and CLI client for Candlepin
Stars: ✭ 53 (+152.38%)
Mutual labels:  redhat

OpenShift-Azure-Terraform

Deploy OpenShift Origin v3.6.0 on Azure using Terraform and Ansible

This script allow you to deploy an OpenShift Origin v3.6.0 in best practices on Microsoft Azure.

Terraform Usage

WARNING: Be sure that you are not overriding existing Azure resources that are in use. This Terraform process will create a resource group to contain all dependent resources within. This makes it easy to cleanup.

NOTE: This deployment is not meant to obviate the need to understand the install process or read the docs. Please spend some time to understand both OpenShift and the install process.

Preperation Steps

  • It is assumed that you have a functioning Azure client installed. You can do so here

  • Install Terraform and create credentials for Terraform to access Azure. To do so, you will need to following environment variables :

    • ARM_SUBSCRIPTION_ID=
    • ARM_CLIENT_ID=
    • ARM_CLIENT_SECRET=
    • ARM_TENANT_ID=
  • You can also fill the following values in the tfvars file if you prefeer.

  • The values for the above environment variables can be obtained through the Azure CLI.

Click here to get the step by step about it

Deploy the Azure infrastructure and OpenShift

  • First rename the terraform.tfvars.example to terraform.tfvars and review the default configuration. Most common options are available inside. The full list of available options are in config.tf. CentOS is the default as it has pre-requirements built in.

  • Update terraform.tfvars with the path to your passwordless SSH public and private keys. (openshift_azure_public_key and openshift_azure_private_key)

  • Change openshift_azure_resource_prefix (and optionally openshift_azure_resource_suffix) to something unique

  • Optionally, customize the openshift_azure_master_vm_count (default 1), the openshift_azure_node_vm_count (default 1) and openshift_azure_infra_vm_count for master (default 1), the agents size is Standard_D2_V2 per default, but you can change it for your need.

  • Create the OpenShift cluster by executing:

$ EXPORT ARM_SUBSCRIPTION_ID=<your subscription id>
$ EXPORT ARM_CLIENT_ID=<your client id>
$ EXPORT ARM_CLIENT_SECRET=<your cient secret>
$ EXPORT ARM_TENANT_ID=<your tenant id>

$ cd <repo> && terraform apply

Connection to console

After your deployment your should be able to reach the OS console

https://<masterFQDN>.<location>.cloudapp.azure.com:8443/console

The cluster will use self-signed certificates. Accept the warning and proceed to the login page.

  • If you didn't change it, the default username/password is ocpadmin/password123.

ADDITIONAL

Cleanup

To restart and cleanup the Azure assets run the following commands from the directory

$ az group delete <yourResourceGroup>
info:    Executing command group delete
Delete resource group <yourResourceGroup>? [y/n] y
+ Deleting resource group <yourResourceGroup>
info:    group delete command OK

$ cd <repo> && rm *terraform.tfstate

Troubleshooting

If the deployment gets in an inconsistent state (repeated terraform apply commands fail, or output references to leases that no longer exist), you may need to manually reconcile. Destroy the <yourResourceGroup> resource group, run terraform remote config -disable and delete all terraform.tfstate* files from os, follow the above instructions again.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].