VKPR digitalocean cluster init
Description
Fork and setup the GitOps Repo in your Gitlab, using Gitlab Backend to save the Terraform state.
Commands
Interactive inputs:
vkpr digitalocean cluster init [flags]
Non-interactive without setting values or using VKPR Values:
vkpr digitalocean cluster init --default
Argument Reference
Flags
--default Use to automatically fill inputs with default value provided on config.json
--cluster_region Specifies the Cluster Kubernetes Version.
--cluster_size Specifies the number of Nodes.
--k8s_version Specifies the Cluster Kubernetes Version.
--project_location Specifies the Cluster Kubernetes Version.
--project_location_path Specifies the number of Nodes.
Values File
Local
The following arguments are supported:
clustername- (Required) Specify the name of the cluster in cloud. The default isdo-sample.version- (Required) Define the Kubernetes version used. Allowed Values:1.22,1.21. The default is1.22.region- (Required) Define the Cluster Region. Allowed Values:nyc1,nyc2,sfo1. The default isnyc1.nodesinstaceType- (Required) Specifies the type of the Droplet32222222222231' created to the nodes. Allowed Values:s-2vcpu-2gb,s-2vcpu-4gb,s-2vcpu-4gb. The default iss-2vcpu-2gb.quantitySize- (Required) Specifies the quantity of nodes created to the cluster. The default is1.
Environment values
The following variables are supported:
clustername- VKPR_ENV_DO_CLUSTER_NAMEversion- VKPR_ENV_DO_CLUSTER_VERSIONregion- VKPR_ENV_DO_CLUSTER_REGIONnodesinstaceType- VKPR_ENV_DO_CLUSTER_NODES_INSTANCE_TYPEquantitySize- VKPR_ENV_DO_CLUSTER_QUANTITY_SIZE
Setting Provider credentials
CAUTION: Setting credentials manually will override the credentials already saved in memory
Digital Ocean
rit set credential --provider="digitalocean" --fields="token" --values="your-api-token"
Gitlab
rit set credential --provider="gitlab" --fields="token,username" --values="your-token,your-username"
See Also
- VKPR digitalocean cluster deploy - Execute the pipeline to deploy the Cluster.
- VKPR digitalocean cluster destroy - Execute the pipeline to destroy the Cluster.