Skip to content

Commit

Permalink
update k8s flist
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Sep 26, 2024
1 parent 7f76d01 commit 6b4c7e8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/resources/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Required:

Optional:

- `flist` (String) Flist used on master node, e.g. https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist. All flists could be found in `https://hub.grid.tf/`
- `flist` (String) Flist used on master node, e.g. https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist. All flists could be found in `https://hub.grid.tf/`
- `flist_checksum` (String) if present, the flist is rejected if it has a different hash.
- `planetary` (Boolean) Flag to enable Yggdrasil IP allocation.
- `publicip` (Boolean) Flag to enable/disable public ipv4 reservation.
Expand Down Expand Up @@ -80,7 +80,7 @@ Required:

Optional:

- `flist` (String) Flist used on worker node, e.g. https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist. All flists could be found in `https://hub.grid.tf/`.
- `flist` (String) Flist used on worker node, e.g. https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist. All flists could be found in `https://hub.grid.tf/`.
- `flist_checksum` (String) if present, the flist is rejected if it has a different hash.
- `planetary` (Boolean) Flag to enable Yggdrasil IP allocation.
- `publicip` (Boolean) Flag to enable/disable public ipv4 reservation.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func resourceDeployment() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
Description: "ZDB worklod name. This has to be unique within the deployment. Must contain only alphanumeric and underscore characters.",
Description: "ZDB workload name. This has to be unique within the deployment. Must contain only alphanumeric and underscore characters.",
ValidateDiagFunc: validation.ToDiagFunc(validation.StringMatch(regexp.MustCompile(nameValidationRegex), nameValidationErrorMessage)),
},
"password": {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_gateway_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func resourceGatewayNameProxy() *schema.Resource {
"fqdn": {
Type: schema.TypeString,
Computed: true,
Description: "The computed fully quallified domain name of the deployed workload.",
Description: "The computed fully qualified domain name of the deployed workload.",
},
"tls_passthrough": {
Type: schema.TypeBool,
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/resource_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func resourceKubernetes() *schema.Resource {
"flist": {
Type: schema.TypeString,
Optional: true,
Description: "Flist used on all nodes, e.g. https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist. All flists could be found in `https://hub.grid.tf/`",
Description: "Flist used on all nodes, e.g. https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist. All flists could be found in `https://hub.grid.tf/`",
},
"entrypoint": {
Type: schema.TypeString,
Expand Down Expand Up @@ -118,8 +118,8 @@ func resourceKubernetes() *schema.Resource {
"flist": {
Type: schema.TypeString,
Optional: true,
Default: "https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist",
Description: "Flist used on master node, e.g. https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist. All flists could be found in `https://hub.grid.tf/`",
Default: "https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist",
Description: "Flist used on master node, e.g. https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist. All flists could be found in `https://hub.grid.tf/`",
},
"entrypoint": {
Type: schema.TypeString,
Expand Down Expand Up @@ -218,7 +218,7 @@ func resourceKubernetes() *schema.Resource {
"flist": {
Type: schema.TypeString,
Optional: true,
Description: "Flist used on worker node, e.g. https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist. All flists could be found in `https://hub.grid.tf/`.",
Description: "Flist used on worker node, e.g. https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist. All flists could be found in `https://hub.grid.tf/`.",
},
"entrypoint": {
Type: schema.TypeString,
Expand Down
12 changes: 6 additions & 6 deletions modules/k8s-module/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "grid_deployment" "master" {
network_name = grid_network.net.name
vms {
name = var.master.name
flist = "https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-latest.flist"
flist = "https://hub.grid.tf/tf-official-apps/threefolddev-k3s-v1.31.0.flist"
cpu = var.master.cpu
publicip = var.master.publicip
planetary = var.master.planetary
Expand Down Expand Up @@ -66,11 +66,11 @@ resource "grid_deployment" "workers" {
dynamic "vms" {
for_each = each.value
content {
name = vms.value.name
cpu = vms.value.cpu
memory = vms.value.memory
publicip = vms.value.publicip
planetary = vms.value.planetary
name = vms.value.name
cpu = vms.value.cpu
memory = vms.value.memory
publicip = vms.value.publicip
planetary = vms.value.planetary
env_vars = {
SSH_KEY = "${var.ssh}"
K3S_TOKEN = "${var.token}"
Expand Down

0 comments on commit 6b4c7e8

Please sign in to comment.