-
Notifications
You must be signed in to change notification settings - Fork 7
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
TLS certificates stored in ephemeral storage do not persist across pod restarts #156
Comments
@shayancanonical I believe |
@shayancanonical Which TLS certificates do you see getting stored in the container storage? I thought they were stored in a peer databag, but not sure if I'm thinking of the same certs |
@carlcsaposs-canonical It is true that the certs are stored in the peer databag. However, to be used by mysqlrouter, the custom certs are also written to The issue is that we need these certs when COS integration is formed, which could be anytime after the relation with |
Are the certs in /etc/mysqlrouter identical to the certs in the peer databag or are they different certs? |
The certs retrieved from the |
Ohh thank you! I see the issue now |
Steps to reproduce
Expected behavior
The unit should be able to persist and function across pod deletions/reschedule.
Actual behavior
The tls certificates stored in ephemeral storage are lost upon pod restart.
As a bonus, I also run into the following error trace upon the
start
hook when I runkubectl -n <namespace> delete pod mysql-router-k8s-0
Versions
Operating system: Ubuntu 22.04.2 LTS
Juju CLI: 2.9.45-ubuntu-amd64
Juju agent: 2.9.45
mysql-k8s charm revision: 99
mysql-router-k8s charm revision: 1 (locally built)
microk8s: MicroK8s v1.25.14 revision 5976
Log output
Juju debug log:
Additional context
The text was updated successfully, but these errors were encountered: