Skip to main content

VKPR infra start

Description

Create a configurable k3d cluster to test the applications.

Commands

Interactive inputs:

  vkpr infra start [flags]

Non-interactive without setting values or using VKPR Values:

  vkpr infra start --default

Argument Reference

Flags

  --default         Use to automatically fill inputs with default values.
--enable_traefik Enable Traefik by default in Cluster.
--enable_volume Enable mount of volumes in cluster.
--http_port Specifies the HTTP listening port from the Cluster.
--https_port Specifies the HTTPS listening port from the Cluster.
--worker_nodes Specifies the quantity of Worker nodes.

Values File

Local

The following arguments are supported:

  • enabled - (Required unless using the vkpr apply) Enable the auto install from the application.
  • httpPort - (Required) Specifies the HTTP port on which the Cluster will communicate. The default is 8000.
  • httpsPort - (Required) Specifies the HTTPS port on which the Cluster will communicate. The default is 8001.
  • enableTraefik - (Required) Enable ingressController Traefik on the cluster. The default is false.
  • enableVolume - (Required) Enables local mapping of volumes on the cluster. The default is false.
  • resources
    • masters - (Optional) Specifies the number of CP nodes in the cluster. The default is 1.
    • workers - (Optional) Specifies the number of DP nodes in the cluster. The default is 1.

Environment values

The following variables are supported:

  • httpPort - VKPR_ENV_HTTP_PORT
  • httpsPort - VKPR_ENV_HTTPS_PORT
  • enableTraefik - VKPR_ENV_TRAEFIK
  • enableVolume - VKPR_ENV_VOLUME
  • resources
    • masters - VKPR_ENV_K3D_SERVERS
    • workers - VKPR_ENV_K3D_AGENTS

See Also