update diun annotations to correctly monitor for image version updates and update some services alongside[ci skip]

This commit is contained in:
Viktor Barzin 2024-12-30 14:01:38 +00:00
parent ea40805dbf
commit bf854be9c9
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
22 changed files with 109 additions and 362 deletions

View file

@ -114,10 +114,14 @@ resource "kubernetes_deployment" "mysql" {
labels = {
app = "mysql"
}
annotations = {
"diun.enable" = "true"
"diun.include_tags" = "^\\d+(?:\\.\\d+)?(?:\\.\\d+)?$"
}
}
spec {
container {
image = "mysql"
image = "mysql:9.1.0"
name = "mysql"
env {
name = "MYSQL_ROOT_PASSWORD"
@ -720,11 +724,16 @@ resource "kubernetes_deployment" "postgres" {
labels = {
app = "postgresql"
}
annotations = {
"diun.enable" = "true"
"diun.include_tags" = "^\\d+(?:\\.\\d+)?-bullseye$"
}
}
spec {
container {
image = "postgres:16.4-bullseye"
name = "postgresql"
# image = "postgres:17.2-bullseye" # needs pg_upgrade to data dir
name = "postgresql"
env {
name = "POSTGRES_PASSWORD"
value = var.postgresql_root_password