mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-17 20:09:43 +00:00
🔧 Only ignore changes to spec
Thanks @soulshake for the tip.
This commit is contained in:
@@ -74,7 +74,9 @@ resource "kubernetes_deployment" "shpod_${index}" {
|
||||
resource "kubernetes_service" "shpod_${index}" {
|
||||
provider = kubernetes.cluster_${index}
|
||||
lifecycle {
|
||||
ignore_changes = all
|
||||
# Folks might alter their shpod Service to expose extra ports.
|
||||
# Don't reset their changes.
|
||||
ignore_changes = [ spec ]
|
||||
}
|
||||
metadata {
|
||||
name = "shpod"
|
||||
|
||||
Reference in New Issue
Block a user