updated grace period 1h->1m for pods
some formatting in TF
This commit is contained in:
parent
7034885209
commit
61db923844
3 changed files with 19 additions and 5 deletions
|
@ -145,7 +145,14 @@ resource "kubernetes_manifest" "buildkite_conduit_api_token_secret" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_manifest" "buildkite_linux_agent" {
|
resource "kubernetes_manifest" "buildkite_linux_agent" {
|
||||||
manifest = yamldecode(templatefile("kubernetes/linux-agents.yaml", { project-id = var.project-id, gke-nodepool = google_container_node_pool.linux_agents_nodepool.name, build-queue = var.linux-agents-build-queue, cpu-request = var.linux-agents-cpu-request, mem-request = var.linux-agents-mem-request, replicas-count = var.linux-agents-count }))
|
manifest = yamldecode(templatefile("kubernetes/linux-agents.yaml", {
|
||||||
|
project-id = var.project-id,
|
||||||
|
gke-nodepool = google_container_node_pool.linux_agents_nodepool.name,
|
||||||
|
build-queue = var.linux-agents-build-queue,
|
||||||
|
cpu-request = var.linux-agents-cpu-request,
|
||||||
|
mem-request = var.linux-agents-mem-request,
|
||||||
|
replicas-count = var.linux-agents-count,
|
||||||
|
}))
|
||||||
depends_on = [kubernetes_manifest.buildkite_namespace]
|
depends_on = [kubernetes_manifest.buildkite_namespace]
|
||||||
# wait {
|
# wait {
|
||||||
# fields = {
|
# fields = {
|
||||||
|
@ -155,11 +162,18 @@ resource "kubernetes_manifest" "buildkite_linux_agent" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_manifest" "buildkite_windows_agent" {
|
resource "kubernetes_manifest" "buildkite_windows_agent" {
|
||||||
manifest = yamldecode(templatefile("kubernetes/windows-agents.yaml", { project-id = var.project-id, gke-nodepool = google_container_node_pool.windows_agents_nodepool.name, build-queue = var.windows-agents-build-queue, cpu-request = var.windows-agents-cpu-request, mem-request = var.windows-agents-mem-request, replicas-count = var.windows-agents-count }))
|
manifest = yamldecode(templatefile("kubernetes/windows-agents.yaml", {
|
||||||
|
project-id = var.project-id,
|
||||||
|
gke-nodepool = google_container_node_pool.windows_agents_nodepool.name,
|
||||||
|
build-queue = var.windows-agents-build-queue,
|
||||||
|
cpu-request = var.windows-agents-cpu-request,
|
||||||
|
mem-request = var.windows-agents-mem-request,
|
||||||
|
replicas-count = var.windows-agents-count,
|
||||||
|
}))
|
||||||
depends_on = [kubernetes_manifest.buildkite_namespace]
|
depends_on = [kubernetes_manifest.buildkite_namespace]
|
||||||
# wait {
|
# wait {
|
||||||
# fields = {
|
# fields = {
|
||||||
# "status.phase" = "Running"
|
# "status.phase" = "Running"
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,4 +79,4 @@ spec:
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
cloud.google.com/gke-nodepool: ${gke-nodepool}
|
cloud.google.com/gke-nodepool: ${gke-nodepool}
|
||||||
terminationGracePeriodSeconds: 3600
|
terminationGracePeriodSeconds: 60
|
||||||
|
|
|
@ -79,4 +79,4 @@ spec:
|
||||||
operator: "Equal"
|
operator: "Equal"
|
||||||
value: "windows"
|
value: "windows"
|
||||||
effect: "NoSchedule"
|
effect: "NoSchedule"
|
||||||
terminationGracePeriodSeconds: 3600
|
terminationGracePeriodSeconds: 60
|
||||||
|
|
Loading…
Reference in a new issue