spec:
replicas: 1
selector:
matchLabels:
app: xxx
template:
metadata:
labels:
app: xxx
spec:
initContainers: ## 初始化权限控制
- name: fix-permissions
image: busybox
command: ["chown", "-R", "472:472", "/var/lib/grafana"] ##
volumeMounts:
- name: storage
mountPath: /var/lib/grafana