Step: ipi-conf-azurestack

The IPI ASH configure step generates the Azure Stack Hub specific install-config.yaml contents based on the cluster profile and optional input files.

Container image used for this step: upi-installer

upi-installer resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
SIZE_VARIANT Parameter[?] The size of the cluster in one of our supported t-shirt values that is standard across all CI environments. The sizes are: * "" (default) - 4 vCPU, 16GB control plane nodes, default workers * "compact" - 8 vCPU, 32GB control plane nodes, no workers * "large" - 16 vCPU, 64GB+ control plane nodes, default workers, suitable for clusters up to 250 nodes * "xlarge" - 32 vCPU, 128GB+ control plane nodes, default workers, suitable for clusters up to 1000 nodes These sizes are roughly consistent across all cloud providers, but we may not be able to instantiate some sizes in some regions or accounts due to quota issues.
AZURESTACK_ENDPOINT Parameter[?] The Azure Stack Hub Endpoint to connect to. (default: https://management.ppe3.stackpoc.com)
SUFFIX_ENDPOINT Parameter[?] The endpoint suffix for storage accounts. (default: ppe3.stackpoc.com)

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash

set -o nounset
set -o errexit
set -o pipefail

CONFIG="${SHARED_DIR}/install-config.yaml"
CLUSTER_NAME="${NAMESPACE}"
REGION="ppe3"
echo "Azure region: ${REGION}"

workers=3
if [[ "${SIZE_VARIANT}" == "compact" ]]; then
  workers=0
fi
master_type=null
if [[ "${SIZE_VARIANT}" == "xlarge" ]]; then
  master_type=Standard_D32_v3
elif [[ "${SIZE_VARIANT}" == "large" ]]; then
  master_type=Standard_D16_v3
elif [[ "${SIZE_VARIANT}" == "compact" ]]; then
  master_type=Standard_D8_v3
fi
echo $master_type

ENDPOINT="${AZURESTACK_ENDPOINT}"
echo "ASH ARM Endpoint: ${ENDPOINT}"
cp "/var/run/azurestack-cluster-secrets/service-principal" "${SHARED_DIR}/osServicePrincipal.json"

cat >> "${CONFIG}" << EOF
baseDomain: ppe.azurestack.devcluster.openshift.com
credentialsMode: Manual
metadata:
  name: ${CLUSTER_NAME}
platform:
  azure:
    baseDomainResourceGroupName: openshiftInstallerRG
    region: ${REGION}
    cloudName: AzureStackCloud
    armEndpoint: ${ENDPOINT}
controlPlane:
  name: master
compute:
- name: worker
  replicas: ${workers}
EOF

echo "${AZURESTACK_ENDPOINT}" >> ${SHARED_DIR}/AZURESTACK_ENDPOINT
echo "${SUFFIX_ENDPOINT}" >> ${SHARED_DIR}/SUFFIX_ENDPOINT

Properties

Property Value Description
Resource requests (cpu) 10m Used in .resources.requests of the pod running this step.
Resource requests (memory) 100Mi Used in .resources.requests of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ipi/conf/azurestack/ipi-conf-azurestack-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub