This folder contains the demo code for the Deploy App Workloads with a PCG tutorial. Use the code in this directory with the tutorial.
To get started, review the prerequisites. Next, follow the steps in the tutorial to deploy a VMware cluster and add-on pack. Use the terraform.tfvars file to provide the required variables.
You will need the following items before getting started:
- A Palette API key.
- A VMware PCG added to your Palette account.
- A public SSH key that will be used to access the cluster nodes. If not provided, a new key pair will be generated.
Note
This Terraform code will deploy the resources specified in the template to VMware vSphere.
Name | Version |
---|---|
local | 2.4.1 |
spectrocloud | >= 0.16.1 |
tls | 4.0.4 |
vsphere | >= 2.6.1 |
Name | Version |
---|---|
local | 2.4.1 |
spectrocloud | 0.17.4 |
tls | 4.0.4 |
No modules.
Name | Type |
---|---|
local_file.public_key_file | resource |
local_sensitive_file.private_key_file | resource |
spectrocloud_cluster_profile.profile | resource |
spectrocloud_cluster_vsphere.cluster | resource |
tls_private_key.tutorial_ssh_key | resource |
spectrocloud_cloudaccount_vsphere.account | data source |
spectrocloud_pack.cni | data source |
spectrocloud_pack.csi | data source |
spectrocloud_pack.hellouniverse | data source |
spectrocloud_pack.k8s | data source |
spectrocloud_pack.metallb | data source |
spectrocloud_pack.ubuntu | data source |
spectrocloud_registry.community_registry | data source |
spectrocloud_registry.public_registry | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_name | The name of the cluster. | string |
"pcg-tutorial-cluster" |
no |
cluster_profile_description | Provide a description of the cluster profile. | string |
"My cluster profile as part of the PCG tutorial." |
no |
cluster_profile_name | The name of the cluster profile. | string |
"pcg-tutorial-profile" |
no |
datacenter_name | The name of the datacenter in vSphere.. | string |
n/a | yes |
datastore_name | The name of the vSphere datastore. | string |
n/a | yes |
folder_name | The name of the folder in vSphere. | string |
n/a | yes |
metallb_ip | The IP address range for your MetalLB Load Balancer. | string |
n/a | yes |
network_name | The name of the vSphere network. | string |
n/a | yes |
pcg_name | The name of the PCG. | string |
n/a | yes |
resource_pool_name | The name of the vSphere resource pool. | string |
n/a | yes |
search_domain | The name of network search domain. | string |
n/a | yes |
ssh_key | The path to the public key that will be added to the cluster nodes. If not provided, a new key pair will be generated. | string |
n/a | yes |
ssh_key_private | The path to the private key that will be used to access the cluster nodes. If not provided, a new key pair will be generated. | string |
n/a | yes |
tags | The default tags to apply to Palette resources | list(string) |
[ |
no |
vsphere_cluster | The name of your vSphere cluster. | string |
n/a | yes |
Name | Description |
---|---|
Advisory | n/a |
ssh_connection_command | Command to use the generated private SSH key to access the nodes. |
ssh_connection_command_user | Command to use the user's private SSH key to access the nodes. |
ssh_key_location | Location of the generated private SSH key file |
ssh_public_key_location | Location of the generated public SSH key file |