-
Notifications
You must be signed in to change notification settings - Fork 203
K8SPXC-1781: [bugfix] cannot use custom proxysql config #2325
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
Conversation
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
Signed-off-by: Mayank Shah <[email protected]>
pkg/pxc/app/statefulset/proxysql.go
Outdated
| appc.VolumeMounts = append(appc.VolumeMounts, corev1.VolumeMount{ | ||
| Name: proxyConfigVolumeName, | ||
| MountPath: "/etc/proxysql/", | ||
| MountPath: "/etc/proxysql/custom", |
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.
changing this without version check will cause a restart, no?
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.
Right, yeah.. Updated
Signed-off-by: Mayank Shah <[email protected]>
commit: d401e0a |
CHANGE DESCRIPTION
Problem:
Specifying custom proxysql config leads to crashing proxysql pods
Cause:
/etc/proxysql/proxysql.conf/etc/proxysql/proxysql.conf, but when it is mounted from the ConfigMap, it fails as the volume is read-onlyerrexitto the script which now causes the pods to failSolution:
/etc/proxysql/custom//etc/proxysql/proxysql.confas the first step/etc/proxysql/custom/, we will copy it to/etc/proxysql/proxysql.confreplacing it from previous stepCHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability