-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: grafana pvc config not working #737
base: master
Are you sure you want to change the base?
Conversation
grafana在配置使用pvc时,例如设置为1G的存储时,并不会生效使用PVC,而是使用emptydir,这个问题在prometheus和loki上没有,这个问题很久就存在了,我改了几个地方就可以了 |
// +usage=Specify the storage size to use. If empty, emptyDir will be used. Otherwise pvc will be used. | ||
storage?: =~"^([1-9][0-9]{0,63})(E|P|T|G|M|K|Ei|Pi|Ti|Gi|Mi|Ki)$" | ||
// +usage=Specify the storage class to use. | ||
storageClassName?: string | ||
// +usage=Specify the admin user for grafana | ||
adminUser: *"admin" | string | ||
// +usage=Specify the admin password for grafana | ||
adminPassword: *"kubevela" | string | ||
adminPassword: *"admin" | string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep the same password?
// +usage=Specify the imagePullPolicy of the image | ||
imagePullPolicy: *"IfNotPresent" | "Never" | "Always" | ||
// +usage=Specify the number of CPU units | ||
cpu: *0.5 | number | ||
// +usage=Specifies the attributes of the memory resource required for the container. | ||
memory: *"1024Mi" | string | ||
// +usage=Specify the service type for expose prometheus server. Default to be ClusterIP. | ||
serviceType: *"ClusterIP" | "NodePort" | "LoadBalancer" | ||
serviceType: *"NodePort" | "ClusterIP" | "LoadBalancer" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep the same default type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
please sign DCO |
Description of your changes
How has this code been tested?
Checklist
I have:
[Addon]
,[example]
or[Doc]
).version
inmetadata.yaml
to generate a new version.Verified Addon promotion rules
If this pr wants to promote an experimental addon to verified, you must check whether meet these conditions too:
metadata.yaml
.README.md
.