Mình clone bài từ link này: https://www.linkedin.com/pulse/auto-restarts-your-k8s-apps-config-changes-reloader-cuong-nguyen-duc/?utm_source=share&utm_medium=member_android&utm_campaign=share_via
Cá nhân mình thì thấy tool này vừa hay và vừa thừa
Nên thôi cứ lưu lại
Keeping your applications up-to-date with the latest configuration changes can be challenging. Reloader, an open-source Kubernetes operator, detects changes to ConfigMaps and Secrets and automatically restarts your deployments to ensure a smooth update process.
Here’s how to get started with Reloader:
1️⃣ Install Reloader via Helm. Add the Helm repository and install the chart:
helm repo add stakater https://stakater.github.io/stakater-charts helm repo update helm install reloader stakater/reloader --namespace <your-namespace> --create-namespace
Blank your-namespace sections with the desired namespace.
2️⃣ Annotate your Deployment, StatefulSet or DaemonSet with reloader.stakater.com/auto:apiVersion:
apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment annotations: reloader.stakater.com/auto: "true" spec: template: metadata: labels: app: my-app ...
3️⃣ Update the associated ConfigMap or Secret to test Reloader:
kubectl edit configmap my-configmap kubectl edit secret my-secret
Modify the content to trigger an update.
Reloader will observe the changes and automatically restart your deployment to apply the updated ConfigMap or Secret.
Start automating deployment restarts using Reloader, and save time and effort in managing configuration updates. Stay ahead of the curve in the DevOps world!