From e6e01196d0e759eb6cae20b1b733488051942376 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 30 Nov 2023 18:00:32 +0100 Subject: [PATCH] fix: add backup retention Mainly to get rid of the always changing to null values --- k8s.tf | 6 ++++++ vars.tf | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/k8s.tf b/k8s.tf index f959da0..feeb8a0 100644 --- a/k8s.tf +++ b/k8s.tf @@ -109,6 +109,12 @@ resource "kops_cluster" "k8s" { encrypted_volume = true } } + + manager { + backup_retention_days = var.backup_retention + listen_metrics_ur_ls = [] + log_level = 0 + } } } diff --git a/vars.tf b/vars.tf index 09fb771..0c06796 100644 --- a/vars.tf +++ b/vars.tf @@ -262,3 +262,9 @@ variable "control_plane_prefix" { default = "control-plane" description = "Prefix of control plane instance groups" } + +variable "backup_retention" { + type = number + default = 90 + description = "Backup retention of etcd data in days" +}