I face with the following issue.
I change during upgrade a pod NetWorkAttachmentDefinition.
Since upgrade is successful, Statefull Set is deleted and recreated.
The changes in NetworkAttachementDefintion are applied in the pods only if the deletion policy is cascade.
If Orphan is used the changes are not applied and manually pod restart is needed.
Api version of NetworkAttachementDefinition is the : “k8s.cni.cncf.io/v1”
Deleting is like this
kubernetes.core.k8s:
kind: StatefulSet
state: absent
namespace:
name:
wait: ‘yes’
delete_options:
propagationPolicy: “Orphan”