Skip to main content

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:

  • cluster
    • name - (Required) Specify the name of the cluster in cloud. The default is do-sample.
    • version - (Required) Define the Kubernetes version used. Allowed Values: 1.22, 1.21. The default is 1.22.
    • region - (Required) Define the Cluster Region. Allowed Values: nyc1, nyc2, sfo1. The default is nyc1.
    • nodes
      • instaceType - (Required) Specifies the type of the Droplet32222222222231' created to the nodes. Allowed Values: s-2vcpu-2gb, s-2vcpu-4gb, s-2vcpu-4gb. The default is s-2vcpu-2gb.
      • quantitySize - (Required) Specifies the quantity of nodes created to the cluster. The default is 1.

Environment values

The following variables are supported:

  • cluster
    • name - VKPR_ENV_DO_CLUSTER_NAME
    • version - VKPR_ENV_DO_CLUSTER_VERSION
    • region - VKPR_ENV_DO_CLUSTER_REGION
    • nodes
      • instaceType - VKPR_ENV_DO_CLUSTER_NODES_INSTANCE_TYPE
      • quantitySize - 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