millions-judge-24978
07/03/2019, 3:25 AMk8s.apps.v1.StatefulSet
is being replaced when the diff is only to the spec
, specifically adding args
to one of the containers. This doesn't seem like it should be expected behavior right?white-balloon-205
millions-judge-24978
07/03/2019, 3:45 AM+-kubernetes:apps/v1:StatefulSet: (replace)
[id=lightning/btcd-ltp0qgqg]
[urn=urn:pulumi:main::lightning::kubernetes:apps/v1:StatefulSet::btcd]
[provider=urn:pulumi:main::lightning::pulumi:providers:kubernetes::infrastructure::4ae1f6ee-c651-431e-ab0d-8123dd853a0e]
~ spec: {
~ template : {
~ spec : {
~ containers: [
~ [0]: {
~ args : [
+ [2]: "-rpcuser=lightning"
+ [3]: "-rpcpassword=lightning"
]
}
]
}
}
}
helpful-advantage-49286
07/03/2019, 3:48 AMmillions-judge-24978
07/03/2019, 3:50 AMPod
helpful-advantage-49286
07/03/2019, 4:15 AMmillions-judge-24978
07/03/2019, 4:20 AMStatefulSet
replacement if args
change.
But I would expect that should not cause a replacement of the StatefulSet
itself. The spec changes, and should in turn trigger a rolling deploy, replacing the individual pods one at a time, but not entirely replacing the stateful set.
Doing that loses all of the stateful data and defies the whole point.helpful-advantage-49286
07/03/2019, 4:22 AMmillions-judge-24978
07/03/2019, 4:25 AMgorgeous-egg-16927
07/03/2019, 5:33 PMmillions-judge-24978
07/03/2019, 5:40 PMgorgeous-egg-16927
07/03/2019, 5:52 PMmillions-judge-24978
07/03/2019, 5:53 PM