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

convert api-redis to redis-persistent #601

Closed
wants to merge 3 commits into from
Closed

Conversation

tobybellwood
Copy link
Member

@tobybellwood tobybellwood commented Aug 9, 2023

This PR adds a persistence.enabled option to api-redis that, when enabled:

  • creates the PVC, volume and mount
  • sets the necessary variable to enable the persistence settings

I've set the default storage size to 1Gi and disabled it in CI.

Comment on lines +81 to +91
{{- if .Values.apiRedis.persistence.enabled }}
volumeClaimTemplates:
- metadata:
name: {{ include "lagoon-core.apiRedis.fullname" . }}-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.apiRedis.storageSize | quote }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is required

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, could be a statefulSet hangover

@tobybellwood
Copy link
Member Author

merged in #603

@tobybellwood tobybellwood deleted the redis_persistent branch October 17, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants