fix: set K8s deployment strategy to Recreate (#10321)

This commit is contained in:
Eric Paulsen 2023-10-17 17:06:35 -04:00 committed by GitHub
parent 619df23ad1
commit 09d995c8dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -1,10 +1,10 @@
terraform {
required_providers {
coder = {
source = "coder/coder"
source = "coder/coder"
}
kubernetes = {
source = "hashicorp/kubernetes"
source = "hashicorp/kubernetes"
}
}
}
@ -235,6 +235,9 @@ resource "kubernetes_deployment" "main" {
"app.kubernetes.io/name" = "coder-workspace"
}
}
strategy {
type = "Recreate"
}
template {
metadata {

View File

@ -177,6 +177,9 @@ resource "kubernetes_deployment" "workspace" {
"coder.workspace_id" = data.coder_workspace.me.id
}
}
strategy {
type = "Recreate"
}
template {
metadata {
labels = {

View File

@ -250,6 +250,9 @@ resource "kubernetes_deployment" "main" {
"app.kubernetes.io/name" = "coder-workspace"
}
}
strategy {
type = "Recreate"
}
template {
metadata {