You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a resource is only used for initialization or is hot-reloaded and should not trigger a restart, add the annotation `restarter.stackable.tech/ignore: "true"` to the corresponding ConfigMap or Secret:
37
+
These annotations can be added if the restarter is enabled on a StatefulSet, but some ConfigMaps or Secrets should be excluded from triggering a restart. `*` can be replaced with any value and is only used to make the annotation key unique.
If a ConfigMap or Secret is only used for initializing a StatefulSet or contains data which can be hot-reloaded, add the label `restarter.stackable.tech/ignore: "true"` to avoid unnecessary restarts of the StatefulSet pods:
69
+
70
+
[source,yaml]
71
+
----
58
72
---
59
73
apiVersion: v1
60
74
kind: ConfigMap
61
75
metadata:
62
76
name: hot-reloaded-configmap
63
-
annotations:
77
+
labels:
64
78
restarter.stackable.tech/ignore: "true"
65
79
...
66
80
---
67
81
apiVersion: v1
68
82
kind: Secret
69
83
metadata:
70
84
name: hot-reloaded-secret
71
-
annotations:
85
+
labels:
72
86
restarter.stackable.tech/ignore: "true"
73
87
...
74
88
----
89
+
90
+
Unlike the StatefulSet annotations `restarter.stackable.tech/ignore-configmap.\*` and `restarter.stackable.tech/ignore-secret.*`, this label affects every StatefulSet that references the labeled ConfigMaps or Secrets.
0 commit comments