To enable Reloader to automatically watch and trigger rollouts for a workload, add the reloader.stakater.com/auto: "true" annotation to the workload's metadata. Reloader will then monitor any ConfigMap or Secret referenced within the workload's specification (e.g., via envFrom or volumeMounts) and trigger a rollout when they change.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
annotations:
reloader.stakater.com/auto: "true"
spec:
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: app
image: your-image
envFrom:
- configMapRef:
name: my-config
- secretRef:
name: my-secret