k8tz优雅设置pod的时区

安装仓库

1
 helm repo add k8tz https://k8tz.github.io/k8tz/

下载安装包

1
helm pull k8tz/k8tz

Img

1
2
3
4
5
6
helm install k8tz  -f k8tz/values.yaml ./k8tz/   --set timezone=Asia/Shanghai
NAME: k8tz
LAST DEPLOYED: Mon Nov  7 13:59:40 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1

这时,只需要重启服务,时间都会变成上海时区。

Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 06, 2025 05:52 UTC
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计
Caret Up