Skip to content
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

Update UPFDeployment pods on a config-map update. #15

Merged
merged 1 commit into from
May 24, 2023

Conversation

denysaleksandrov
Copy link
Member

Initial implementation of configuration changes in UPF. 101
In case of config-map update, we update an Annotation in Spec.Template.Annotations that trigger a deployment rolling update.
For the time being, we update the existing config map rather than creating a new one. The best practice described below is a subject for R2 or further releases.

Per John:
The best practice would be to create separate ConfigMap as they change. Then, you update the ConfigMap that the deployment volume refers to, which automatically does the rolling update.
By doing this, we ensure that the old replica set doesn't pick up the new ConfigMap. So, if the old Pod restarts, it still has the old config.

@s3wong
Copy link
Collaborator

s3wong commented May 24, 2023

/approve

@nephio-prow
Copy link
Contributor

nephio-prow bot commented May 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: s3wong

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nephio-prow nephio-prow bot added the approved label May 24, 2023
@s3wong
Copy link
Collaborator

s3wong commented May 24, 2023

/lgtm

@nephio-prow nephio-prow bot added the lgtm label May 24, 2023
@nephio-prow nephio-prow bot merged commit 87a0a07 into nephio-project:main May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants