Skip to content

Commit

Permalink
Update docs and CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Feb 13, 2023
1 parent 86541ea commit 4144eea
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

## [v1.0.30](https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.30) (13 February 2023)

### Merged
- [#165](https://github.com/civo/terraform-provider-civo/pull/165) - Fixed error when you change the node pool count
- [#164](https://github.com/civo/terraform-provider-civo/pull/164) - Update the kubernetes resource to include the option to add expecific cluster type

## [v1.0.29](https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.29) (1 February 2023)

### Merged
Expand Down
17 changes: 12 additions & 5 deletions docs/data-sources/kubernetes_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ Provides access to the available Civo Kubernetes versions, with the ability to f
## Example Usage

```terraform
data "civo_kubernetes_version" "stable" {
filter {
key = "type"
values = ["stable"]
}
data "civo_kubernetes_version" "talos" {
filter {
key = "type"
values = ["talos"]
}
}
data "civo_kubernetes_version" "k3s" {
filter {
key = "type"
values = ["k3s"]
}
}
```

Expand Down
30 changes: 29 additions & 1 deletion docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "civo_firewall_rule" "kubernetes" {
action = "allow"
}
# Create a cluster
# Create a cluster without expecific cluster type by default is k3s
resource "civo_kubernetes_cluster" "my-cluster" {
name = "my-cluster"
applications = "Portainer,Linkerd:Linkerd & Jaeger"
Expand All @@ -54,6 +54,33 @@ resource "civo_kubernetes_cluster" "my-cluster" {
node_count = 3
}
}
# Create a cluster with k3s
resource "civo_kubernetes_cluster" "my-cluster" {
name = "my-cluster"
applications = "Portainer,Linkerd:Linkerd & Jaeger"
firewall_id = civo_firewall.my-firewall.id
cluster_type = "k3s"
pools {
label = "front-end" // Optional
size = element(data.civo_size.xsmall.sizes, 0).name
node_count = 3
}
}
# Create a cluster with talos
resource "civo_kubernetes_cluster" "my-cluster" {
name = "my-cluster"
applications = "Portainer,Linkerd:Linkerd & Jaeger"
firewall_id = civo_firewall.my-firewall.id
cluster_type = "talos"
pools {
label = "front-end" // Optional
size = element(data.civo_size.xsmall.sizes, 0).name
node_count = 3
}
}
```

<!-- schema generated by tfplugindocs -->
Expand All @@ -67,6 +94,7 @@ resource "civo_kubernetes_cluster" "my-cluster" {
### Optional

- `applications` (String) Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. For application that supports plans, you can use 'app_name:app_plan' format e.g. 'Linkerd:Linkerd & Jaeger' or 'MariaDB:5GB'.
- `cluster_type` (String) The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`
- `cni` (String) The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`
- `kubernetes_version` (String) The version of k3s to install (optional, the default is currently the latest available)
- `name` (String) Name for your cluster, must be unique within your account
Expand Down

0 comments on commit 4144eea

Please sign in to comment.