Reloader安装

Reloader安装

cm和secrets更新后,需要重新应用的情况

单独建个命名空间,设为当前操作的默认命名空间

kubectl create ns reloader
kubectl config set-context --current --namespace reloader

部署安装

参考: https://github.com/stakater/Reloader

参考: https://artifacthub.io/packages/helm/cloudnativeapp/reloader

helm repo add stakater https://stakater.github.io/stakater-charts
helm repo update
helm install reloader stakater/reloader

部署结果

[root@jingmin-kube-archlinux nginx]# helm install reloader stakater/reloader
NAME: reloader
LAST DEPLOYED: Tue Sep 12 15:09:32 2023
NAMESPACE: reloader
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
- For a `Deployment` called `foo` have a `ConfigMap` called `foo-configmap`. Then add this annotation to main metadata of your `Deployment`
  configmap.reloader.stakater.com/reload: "foo-configmap"

- For a `Deployment` called `foo` have a `Secret` called `foo-secret`. Then add this annotation to main metadata of your `Deployment`
  secret.reloader.stakater.com/reload: "foo-secret"

- After successful installation, your pods will get rolling updates when a change in data of configmap or secret will happen.

具体使用,请参考: https://github.com/stakater/Reloader


评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注