This directory contains a basic Terraform configuration to get started with our UpCloud Kubernetes Service (UKS).
Configuration is organized into separate files:
- data.tf
- read-only data sources (
upcloud_kubernetes_cluster
,upcloud_kubernetes_plans
)
- read-only data sources (
- main.tf
- managed resources (
upcloud_kubernetes_cluster
,upcloud_network
)
- managed resources (
- provider.tf
- main
terraform
block and provider specific configurations
- main
- variables.tf
- (input) variables (
zone
)
- (input) variables (
See the official UpCloud Terraform provider documentation on how to configure the actual upcloud
provider.
There are default values for provider.tf that allow the provider to authenticate against the Kubernetes cluster defined in this configuration. Credentials are acquired from upcloud_kubernetes_cluster
, defined in data.tf.
Official documentation covers additional information needed to on how use the provider and it's resources.
Running apply in this directory will create a network, a cluster and a Kubernetes namespace in the newly created cluster:
terraform init
terraform plan
terraform apply