Skip to content

Commit

Permalink
Pass k8s TF vars in example CuTE
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <[email protected]>
  • Loading branch information
PhilipSchmid committed Oct 7, 2024
1 parent 0d863b2 commit 68b74fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/00-variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ variable "pod_cidr" {
type = string
}

variable "disable_kube_proxy" {
default = true
description = "Whether to deploy Kube-Proxy or not. By default, KP shouldn't be deployed."
type = bool
}

# Cilium module
variable "cilium_namespace" {
default = "kube-system"
Expand Down
2 changes: 2 additions & 0 deletions example/02-talos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module "talos" {
worker_groups = var.worker_groups
region = var.region
tags = local.tags
allocate_node_cidrs = var.allocate_node_cidrs
disable_kube_proxy = var.disable_kube_proxy
# For single-node cluster support:
#allow_workload_on_cp_nodes = true
#controlplane_count = 1
Expand Down
1 change: 1 addition & 0 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ aws-delete-vpc -cluster-name <Name of your cluster>
| <a name="input_cluster_id"></a> [cluster\_id](#input\_cluster\_id) | The (Cilium) ID of the cluster. Must be unique for Cilium ClusterMesh and between 0-255. | `number` | `"1"` | no |
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name of the cluster. | `string` | `"talos-cute"` | no |
| <a name="input_control_plane"></a> [control\_plane](#input\_control\_plane) | Info for control plane that will be created | <pre>object({<br/> instance_type = optional(string, "m5.large")<br/> config_patch_files = optional(list(string), [])<br/> tags = optional(map(string), {})<br/> })</pre> | `{}` | no |
| <a name="input_disable_kube_proxy"></a> [disable\_kube\_proxy](#input\_disable\_kube\_proxy) | Whether to deploy Kube-Proxy or not. By default, KP shouldn't be deployed. | `bool` | `true` | no |
| <a name="input_kubernetes_version"></a> [kubernetes\_version](#input\_kubernetes\_version) | Kubernetes version to use for the Talos cluster, if not set, the K8s version shipped with the selected Talos version will be used. Check https://www.talos.dev/latest/introduction/support-matrix/. | `string` | `"1.31.1"` | no |
| <a name="input_owner"></a> [owner](#input\_owner) | Owner for resource tagging | `string` | n/a | yes |
| <a name="input_pod_cidr"></a> [pod\_cidr](#input\_pod\_cidr) | The CIDR to use for K8s Pods. Depending on if allocate\_node\_cidrs is set or not, it will either be configured on the controllerManager and assigned to Node resources or to CiliumNode CRs (in case Cilium runs with 'cluster-pool' IPAM mode). | `string` | `"100.64.0.0/14"` | no |
Expand Down

0 comments on commit 68b74fa

Please sign in to comment.