The OpenShift 4 IPI Azure variable file can be found at OCP-4.X/install-on-azure.yml
. It will configure the deployment playbook at OCP-4.X/deploy-cluster.yml
to perform a cluster installation on Azure. In addition to installing a cluster, the playbook can also perform day 2 operations to include deploying three infra nodes and deploying a workload node to isolate workload driver pods from openshift-scale/workloads repo.
Running from the CLI:
$ cp OCP-4.X/inventory.example inventory
$ # Edit inventory and add your expected orchestration host
$ # Edit deployment variables (Ex vi OCP-4.X/vars/install-on-azure.yml) or define env variables
$ ansible-playbook -v -i inventory OCP-4.X/deploy-cluster -e platform=azure
Documents for initializing can be found here - ocp4_common_env_var.md
After that initialize the following variables -
Default: No default.
The id of the subscription to Azure to use. Use az account show
to find id.
Default: No default.
The Azure tenantId from az account show
.
Default: No default.
The Azure service principal id to use for this cluster. Create a service principal (one time) with az ad sp create-for-rbac --role Owner --name test-sp
.
Default: No default.
The service principal password. This should be shown in the return on the az ad sp create-for-rbac
command ran above to create the service principal.
Default: No default. The resource group in which the base domain is located.
Default: No default.
The Azure region to install on to. Example: centralus
Default: 7
The cluster will expire after 7 days by setting openshift_expiryDate
to to +7
. Unless you pass a different value using this environment variable.
Default: No default. The base domain for the cluster.
Default: No default. The name of the cluster.
Default: 3
The number of master nodes.
Default: 5
The number of worker nodes to install.
Default: Standard_D4s_v3
The vm size of the masters.
Default: Standard_D2s_v3
The vm size of the worker nodes.
Default: 64
The root volume disk size for the masters.
Default: 64
The root volume size for worker nodes.
Default: machine.openshift.io
The prefix used in machinesets. Usually this is machine.openshift.io
however it might be sigs.k8s.io
depending on version installed.
Default: Standard_D2s_v3
The vm size for infra nodes.
Default: Standard_D2s_v3
The vm size for the workload node.
Default: 64
The root volume size for the infra nodes.
Default: Premium_LRS
The root volume type for infra nodes.
Default: 64
The root volume size for the workload node.
Default: Premium_LRS
The root volume type for workload node.
Default: 15d
The retention period for the Prometheus server.
Default: managed-premium
The storage class for Prometheus server.
Default: 10Gi
The storage size for Prometheus server.
Default: managed-premium
The storage class for the alertmanager servers.
Default: 2Gi