Тёмный

4 - Deploying Nutanix Kubernetes Platform on a Nutanix Cluster - Air-Gapped Edition 

Winson Sou
Подписаться 45
Просмотров 226
50% 1

In this video, i demonstrate how we can perform deployments of Nutanix Kubernetes Platform on a Nutanix Cluster in an Air-Gapped environment.
𝗣𝗿𝗲𝗿𝗲𝗾𝘂𝗶𝘀𝗶𝘁𝗲𝘀 𝗩𝗶𝗱𝗲𝗼
• 0 - Nutanix Kubernetes...
𝗖𝗢𝗠𝗠𝗔𝗡𝗗𝗦 𝗧𝗢 𝗟𝗢𝗔𝗗 𝗕𝗢𝗢𝗧𝗦𝗧𝗥𝗔𝗣 𝗜𝗠𝗔𝗚𝗘
podman load -i konvoy-bootstrap-image-v2.12.0.tar
podman tag localhost/mesosphere/konvoy-bootstrap:v2.12.0 docker.io/mesosphere/konvoy-bootstrap:v2.12.0
Replace podman with docker if you are using docker.
𝗖𝗢𝗠𝗠𝗔𝗡𝗗𝗦 𝗧𝗢 𝗟𝗢𝗔𝗗 𝗜𝗠𝗔𝗚𝗘 𝗥𝗘𝗚𝗜𝗦𝗧𝗥𝗬
nkp push bundle --bundle ./container-images/konvoy-image-bundle-v2.12.0.tar --to-registry=${REGISTRY_URL} --to-registry-username=${REGISTRY_USERNAME} --to-registry-password=${REGISTRY_PASSWORD}\
nkp push bundle --bundle ./container-images/kommander-image-bundle-v2.12.0.tar --to-registry=${REGISTRY_URL} --to-registry-username=${REGISTRY_USERNAME} --to-registry-password=${REGISTRY_PASSWORD}\
nkp push bundle --bundle ./container-images/nkp-catalog-applications-image-bundle-v2.12.0.tar --to-registry=${REGISTRY_URL} --to-registry-username=${REGISTRY_USERNAME} --to-registry-password=${REGISTRY_PASSWORD}
𝗘𝗡𝗩𝗜𝗥𝗢𝗡𝗠𝗘𝗡𝗧 𝗩𝗔𝗥𝗜𝗔𝗕𝗟𝗘𝗦
export CLUSTER_NAME="" # Name of the Kubernetes cluster
export NUTANIX_PC_FQDN_ENDPOINT_WITH_PORT="" # Nutanix Prism Central endpoint URL with port
export CONTROL_PLANE_IP="" # IP address for the Kubernetes control plane
export IMAGE_NAME="" # Name of the VM image to use for cluster nodes
export PRISM_ELEMENT_CLUSTER_NAME="" # Name of the Nutanix Prism Element cluster
export SUBNET_NAME="" # Name of the subnet to use for cluster nodes
export PROJECT_NAME="" # Name of the Nutanix project
export CONTROL_PLANE_REPLICAS="" # Number of control plane replicas
export CONTROL_PLANE_VCPUS="" # Number of vCPUs for control plane nodes
export CONTROL_PLANE_CORES_PER_VCPU="" # Number of cores per vCPU for control plane nodes
export CONTROL_PLANE_MEMORY_GIB="" # Memory in GiB for control plane nodes
export WORKER_REPLICAS="" # Number of worker node replicas
export WORKER_VCPUS="" # Number of vCPUs for worker nodes
export WORKER_CORES_PER_VCPU="" # Number of cores per vCPU for worker nodes
export WORKER_MEMORY_GIB="" # Memory in GiB for worker nodes
export NUTANIX_STORAGE_CONTAINER_NAME="" # Name of the Nutanix storage container
export CSI_FILESYSTEM="" # Filesystem type for CSI volumes
export CSI_HYPERVISOR_ATTACHED="" # Whether to use hypervisor-attached volumes for CSI
export LB_IP_RANGE="" # IP range for load balancer services
export SSH_KEY_FILE="" # Path to the SSH public key file
export NUTANIX_USER="" # Nutanix PrismCentral username (left blank for security)
export NUTANIX_PASSWORD="" # Nutanix PrismCentral password (left blank for security)
export REGISTRY_URL="" # URL for the private container registry
export REGISTRY_USERNAME="" # Username for authenticating with the private registry (left blank for security)
export REGISTRY_PASSWORD="" # Password for authenticating with the private registry (left blank for security)
export REGISTRY_CA="" # Path to the CA certificate for the private registry
𝗜𝗡𝗦𝗧𝗔𝗟𝗟𝗔𝗧𝗜𝗢𝗡 𝗖𝗢𝗠𝗠𝗔𝗡𝗗
nkp create cluster nutanix --cluster-name $CLUSTER_NAME \
--endpoint $NUTANIX_PC_FQDN_ENDPOINT_WITH_PORT\
--control-plane-endpoint-ip $CONTROL_PLANE_IP \
--control-plane-vm-image $IMAGE_NAME \
--control-plane-prism-element-cluster $PRISM_ELEMENT_CLUSTER_NAME \
--control-plane-subnets $SUBNET_NAME \
--control-plane-pc-project $PROJECT_NAME \
--control-plane-replicas $CONTROL_PLANE_REPLICAS \
--control-plane-vcpus $CONTROL_PLANE_VCPUS \
--control-plane-cores-per-vcpu $CONTROL_PLANE_CORES_PER_VCPU \
--control-plane-memory $CONTROL_PLANE_MEMORY_GIB \
--worker-vm-image $IMAGE_NAME \
--worker-prism-element-cluster $PRISM_ELEMENT_CLUSTER_NAME \
--worker-subnets $SUBNET_NAME \
--worker-pc-project $PROJECT_NAME \
--worker-replicas $WORKER_REPLICAS \
--worker-vcpus $WORKER_VCPUS \
--worker-cores-per-vcpu $WORKER_CORES_PER_VCPU \
--worker-memory $WORKER_MEMORY_GIB \
--ssh-public-key-file $SSH_KEY_FILE \
--csi-storage-container $NUTANIX_STORAGE_CONTAINER_NAME \
--csi-file-system $CSI_FILESYSTEM \
--csi-hypervisor-attached-volumes=$CSI_HYPERVISOR_ATTACHED \
--kubernetes-service-load-balancer-ip-range $LB_IP_RANGE \
--insecure \
--self-managed \
--airgapped \
--registry-mirror-url $REGISTRY_URL \
--registry-mirror-cacert $REGISTRY_CA \
--registry-mirror-username=$REGISTRY_USERNAME \
--registry-mirror-password=$REGISTRY_PASSWORD
Disclaimer:
The views and opinions expressed on this channel are solely my own and do not represent those of my employer or any other entity. All content shared here is based on my personal opinions and experiences. This channel is for informational and entertainment purposes only and does not constitute professional advice.

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Prank Orchestra
00:10
Просмотров 1,6 млн
Nutanix Community Edition Home Lab - Is it good?
15:46
Postgres just got even faster
26:42
Просмотров 22 тыс.
100+ Docker Concepts you Need to Know
8:28
Просмотров 961 тыс.
A Computer Cluster Made With BROKEN PCs
24:34
Просмотров 213 тыс.
Some *EASY* Kubernetes Projects for beginners
14:40
Просмотров 26 тыс.
Running Windows in a Docker Container!
10:07
Просмотров 313 тыс.
Prank Orchestra
00:10
Просмотров 1,6 млн