Skip to content

Commit

Permalink
chore(docs): update documentation for #401 (#402)
Browse files Browse the repository at this point in the history
Co-authored-by: villevsv-upcloud <[email protected]>
  • Loading branch information
github-actions[bot] and villevsv-upcloud authored Sep 6, 2023
1 parent 45256f1 commit 106d26f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ resource "upcloud_network" "example" {
# Create a Kubernetes cluster
resource "upcloud_kubernetes_cluster" "example" {
name = "exampleapp"
network = upcloud_network.example.id
zone = "de-fra1"
# Allow access to the cluster control plane from any external source.
control_plane_ip_filter = ["0.0.0.0/0"]
name = "exampleapp"
network = upcloud_network.example.id
zone = "de-fra1"
}
# Kubernetes cluster with private node groups requires a network that is routed through NAT gateway.
Expand Down Expand Up @@ -78,6 +80,7 @@ resource "upcloud_kubernetes_cluster" "example2" {

### Required

- `control_plane_ip_filter` (Set of String) IP addresses or IP ranges in CIDR format which are allowed to access the cluster control plane. To allow access from any source, use `["0.0.0.0/0"]`. To deny access from all sources, use `[]`. Values set here do not restrict access to node groups or exposed Kubernetes services.
- `name` (String) Cluster name. Needs to be unique within the account.
- `network` (String) Network ID for the cluster to run in.
- `zone` (String) Zone in which the Kubernetes cluster will be hosted, e.g. `de-fra1`. You can list available zones with `upctl zone list`.
Expand Down

0 comments on commit 106d26f

Please sign in to comment.