Skip to content

beelzetron/azure-ocp-private-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure private OpenShift cluster

This repo contains playbooks to automate the setup of an Azure subscription in order to install a private OpenShift cluster.

Usage

  1. Install Azure.Azcollection, pay attention to python library requirements after collection install.
  2. Create an environment with Azure login informations:
    export AZURE_SUBSCRIPTION_ID="redacted"
    export AZURE_CLIENT_ID="redacted"
    export AZURE_SECRET="redacted"
    export AZURE_TENANT="redacted"
    1. Alternatively, login with Azure CLI, ansible will reuse the credentials obtained.
  3. Configure vars.yml variable file
  4. Run setup.ansible.yml playbook

The playbook will create

  • one resource group
  • one vnet
  • two private subnets, one for masters node, one for worker nodes
  • one (optional) Nat gateway that will be linked to master and worker subnets
  • two security groups, one for the private master and worker subnets, one for the public subnet to allow to ssh to bastion host

Without Nat Gateway, master and worker subnets will not have direct internet access, a proxy can be added to the bastion host to simulate this use case as well.

Teardown

A playbook is provided to teardown all the objects created: destroy.ansible.yml.

OpenShift installation

A sample install-config.yaml is provided as a reference.

About

Ansible playbooks to automate requirements for a private Azure OpenShift cluster installation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •