Skip to content

Commit

Permalink
Update kubernetes_cluster.md (#130)
Browse files Browse the repository at this point in the history
* Update kubernetes_cluster.md
  • Loading branch information
kunal-kushwaha committed Apr 20, 2022
1 parent 00c2d6f commit 4a15965
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Provides a Civo Kubernetes cluster resource. This can be used to create, delete,

```terraform
# Query xsmall instance size
data "civo_instances_size" "xsmall" {
data "civo_size" "xsmall" {
filter {
key = "type"
values = ["kubernetes"]
Expand All @@ -40,15 +40,17 @@ resource "civo_firewall_rule" "kubernetes" {
cidr = ["0.0.0.0/0"]
direction = "ingress"
label = "kubernetes-api-server"
action = "allow"
}
# Create a cluster
resource "civo_kubernetes_cluster" "my-cluster" {
region = "LON1"
name = "my-cluster"
applications = "Portainer,Linkerd:Linkerd & Jaeger"
firewall_id = civo_firewall.my-firewall.id
pools {
size = element(data.civo_instances_size.xsmall.sizes, 0).name
size = element(data.civo_size.xsmall.sizes, 0).name
node_count = 3
}
}
Expand All @@ -61,6 +63,7 @@ resource "civo_kubernetes_cluster" "my-cluster" {

- **firewall_id** (String) The existing firewall ID to use for this cluster
- **pools** (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--pools))
- **action** (String) When we set the `action = "allow"`, this is going to add a rule to allow traffic. Similarly, setting `action = "deny"` will deny the traffic.

### Optional

Expand Down

0 comments on commit 4a15965

Please sign in to comment.