-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathnkp-create-mgmt-cluster.sh
More file actions
executable file
·31 lines (29 loc) · 1.74 KB
/
nkp-create-mgmt-cluster.sh
File metadata and controls
executable file
·31 lines (29 loc) · 1.74 KB
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
source ./nkp-env
NKP_VERSION=$(nkp version -o=json |jq -r '.nkp.gitVersion')
nkp create cluster nutanix -c $CLUSTER_NAME \
${CLUSTER_HOSTNAME:+--cluster-hostname "$CLUSTER_HOSTNAME"} \
--kind-cluster-image $REGISTRY_MIRROR_URL/mesosphere/konvoy-bootstrap:$NKP_VERSION \
--endpoint https://$NUTANIX_ENDPOINT:$NUTANIX_PORT \
--insecure \
--kubernetes-service-load-balancer-ip-range $LB_IP_RANGE \
--control-plane-endpoint-ip $CONTROL_PLANE_ENDPOINT_IP \
--control-plane-vm-image $NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME \
--control-plane-prism-element-cluster $NUTANIX_PRISM_ELEMENT_CLUSTER_NAME \
--control-plane-subnets $NUTANIX_SUBNET_NAME \
--control-plane-replicas $CONTROL_PLANE_REPLICAS \
--worker-vm-image $NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME \
--worker-prism-element-cluster $NUTANIX_PRISM_ELEMENT_CLUSTER_NAME \
--worker-subnets $NUTANIX_SUBNET_NAME \
--worker-replicas $WORKER_NODES_REPLICAS \
--csi-storage-container $NUTANIX_STORAGE_CONTAINER_NAME \
--csi-hypervisor-attached-volumes=$CSI_HYPERVISOR_ATTACHED \
${SSH_PUBLIC_KEY_FILE:+--ssh-public-key-file "$SSH_PUBLIC_KEY_FILE"} \
${REGISTRY_MIRROR_URL:+--registry-mirror-url https://"$REGISTRY_MIRROR_URL"} \
${REGISTRY_MIRROR_USERNAME:+--registry-mirror-username "$REGISTRY_MIRROR_USERNAME"} \
${REGISTRY_MIRROR_PASSWORD:+--registry-mirror-password "$REGISTRY_MIRROR_PASSWORD"} \
${REGISTRY_URL:+--registry-url https://"$REGISTRY_URL"} \
${REGISTRY_USERNAME:+--registry-username "$REGISTRY_USERNAME"} \
${REGISTRY_PASSWORD:+--registry-password "$REGISTRY_PASSWORD"} \
${CP_CATEGORIES:+--control-plane-pc-categories "$CP_CATEGORIES"} \
${WORKER_CATEGORIES:+--worker-pc-categories "$WORKER_CATEGORIES"} \
--self-managed