|
| 1 | +module "scw_zero" { |
| 2 | + source = "github.com/kbst/terraform-kubestack//scaleway/cluster?ref={{version}}" |
| 3 | + |
| 4 | + configuration = { |
| 5 | + # apps environment |
| 6 | + apps = { |
| 7 | + # Set name_prefix used to generate the cluster name |
| 8 | + # [name_prefix]-[workspace]-[region] |
| 9 | + # e.g. name_prefix = kbst becomes: `kbst-apps-fr-par` |
| 10 | + # for small orgs the name works well, |
| 11 | + # for bigger orgs consider department or team names |
| 12 | + name_prefix = "" |
| 13 | + |
| 14 | + # Set the base_domain used to generate the FQDN of the cluster |
| 15 | + # [cluster_name].[provider_name].[base_domain] |
| 16 | + # e.g. kbst-apps-fr-par.scw.infra.example.com |
| 17 | + # The domain must be registered with Scaleway Domains and DNS |
| 18 | + base_domain = "" |
| 19 | + |
| 20 | + # The Scaleway region to deploy the clusters in |
| 21 | + # e.g. "fr-par", "nl-ams", "pl-waw" |
| 22 | + region = "" |
| 23 | + |
| 24 | + # Kubernetes version for the cluster |
| 25 | + # Use a minor version string to allow patch upgrades, e.g. "1.32" |
| 26 | + cluster_version = "1.32" |
| 27 | + |
| 28 | + # Container Network Interface plugin |
| 29 | + # Options: "cilium", "calico", "weave", "flannel", "kilo" |
| 30 | + cni = "cilium" |
| 31 | + |
| 32 | + # Whether to delete additional resources (load-balancers, block volumes, |
| 33 | + # the private network if empty) created in Kubernetes when deleting the cluster. |
| 34 | + # Set to true only if you want these resources cleaned up automatically on destroy. |
| 35 | + delete_additional_resources = false |
| 36 | + |
| 37 | + # Default node pool configuration |
| 38 | + default_node_pool = { |
| 39 | + # Commercial node type — see `scw k8s node-pool list-available-types` |
| 40 | + node_type = "DEV1-M" |
| 41 | + |
| 42 | + # Initial number of nodes in the pool |
| 43 | + size = 1 |
| 44 | + |
| 45 | + # Minimum and maximum size for autoscaling |
| 46 | + min_size = 1 |
| 47 | + max_size = 1 |
| 48 | + |
| 49 | + # Enable Scaleway's cluster autoscaler for this pool |
| 50 | + autoscaling = false |
| 51 | + |
| 52 | + # Enable automatic node replacement on failure |
| 53 | + autohealing = true |
| 54 | + } |
| 55 | + } |
| 56 | + |
| 57 | + # ops environment, inherits from apps |
| 58 | + ops = {} |
| 59 | + } |
| 60 | +} |
0 commit comments