Skip to content

Commit

Permalink
Merge pull request #24 from v0112358/support_vpc
Browse files Browse the repository at this point in the history
Support vpc
  • Loading branch information
nlamirault authored Aug 28, 2022
2 parents 96c5b9a + 48fd13a commit 58a575b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ This module creates :
| auto\_upgrade | Whether the cluster will be automatically upgraded | `bool` | n/a | yes |
| cluster\_name | Cluster name | `string` | n/a | yes |
| kubernetes\_version | The EKS Kubernetes version | `string` | n/a | yes |
| vpc_uuid | The ID of the VPC where the Kubernetes cluster will be located | `string` | "" | no |
| max\_nodes | Autoscaling maximum node capacity | `string` | `5` | no |
| min\_nodes | Autoscaling Minimum node capacity | `string` | `1` | no |
| node\_count | The number of Droplet instances in the node pool. | `number` | n/a | yes |
Expand Down
3 changes: 2 additions & 1 deletion cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ resource "digitalocean_kubernetes_cluster" "k8s" {
region = var.region
version = data.digitalocean_kubernetes_versions.k8s.latest_version
#var.kubernetes_version


vpc_uuid = var.vpc_uuid
auto_upgrade = var.auto_upgrade
tags = var.tags

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ variable "node_tags" {
default = ["kubernetes"]
}

variable "vpc_uuid" {
type = string
default = ""
description = "The ID of the VPC where the Kubernetes cluster will be located"
}

#############################################################################
# Addons node pool

Expand Down

0 comments on commit 58a575b

Please sign in to comment.