-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add volumeClaimTemplates to the spire-server statefulset #10287
Add volumeClaimTemplates to the spire-server statefulset #10287
Conversation
@szvincze |
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.
Looks good to me.
With this change we don't need to restart spire-agents at the end of this test anymore:
https://github.com/networkservicemesh/deployments-k8s/blob/main/examples/heal/spire-server-restart/README.md
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
70de080
to
b83ee8d
Compare
Thanks! Fixed |
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.
We internally and quickly discussed this with Ed, and it's looking good.
It is planned to merge when we stabilise the main examples on kind clusters.
…ployments-k8s@main PR link: networkservicemesh/deployments-k8s#10287 Commit: ddcfbad Author: Network Service Mesh Bot Date: 2023-12-18 02:49:16 -0600 Message: - Update go.mod and go.sum to latest version from networkservicemesh/de… Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
Spire-server requires
PersistentVolume
for/run/spire/data
.Apparently, if the server is restarted, this data is used to issue the correct certificates.
If we don't use the PersistentVolume, then new and old certificates are not compatible with each other.
See manuals:
Example:
https://github.com/spiffe/spire-tutorials/blob/main/k8s/quickstart/server-statefulset.yaml#L54-L63
Issue link
#10286
How Has This Been Tested?
Types of changes