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

tickets/DM-48511: Add redis queue to sasquatch-backpack #4104

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions applications/sasquatch-backpack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
apiVersion: v2
appVersion: 0.1.0
home: https://sasquatch-backpack.lsst.io/
description: Collection of APIs that feed into Sasquatch
home: "https://sasquatch-backpack.lsst.io/"
description: "Collection of APIs that feed into Sasquatch"
name: sasquatch-backpack
sources:
- https://github.com/lsst-sqre/sasquatch-backpack
- "https://github.com/lsst-sqre/sasquatch-backpack"
type: application
version: 1.0.0
dependencies:
- redis:
name: "redis"
version: 1.0.14
repository: "https://lsst-sqre.github.io/charts/"
9 changes: 9 additions & 0 deletions applications/sasquatch-backpack/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ Selector labels
app.kubernetes.io/name: "sasquatch-backpack"
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}


{{/*
Common environment variables
*/}}
{{- define "sasquatch-backpack.envVars" -}}
- name: "BACKPACK_REDIS_URL"
value: "redis://sasqautch-backpack-redis.{{ .Release.Namespace }}:6379/0"
{{- end }}
1 change: 1 addition & 0 deletions applications/sasquatch-backpack/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ data:
SASQUATCH_BACKPACK_PATH_PREFIX: {{ .Values.config.pathPrefix | quote }}
SASQUATCH_BACKPACK_PROFILE: {{ .Values.config.logProfile | quote }}
SASQUATCH_REST_PROXY_URL: {{ .Values.config.sasquatchRestProxyUrl | quote }}
BACKPACK_REDIS_URL: "redis://sasquatch-backpack-redis.sasquatch-backpack:6379/0"
1 change: 1 addition & 0 deletions applications/sasquatch-backpack/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- -d
- "10"
- "0"
- "--post"
envFrom:
- configMapRef:
name: sasquatch-backpack
Expand Down
44 changes: 43 additions & 1 deletion applications/sasquatch-backpack/values-idfint.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
config:
sasquatchRestProxyUrl: https://data-int.lsst.cloud/sasquatch-rest-proxy
sasquatchRestProxyUrl: "https://data-int.lsst.cloud/sasquatch-rest-proxy"

redis:
persistence:
# -- Whether to persist Redis storage and thus tokens. Setting this to
# false will use `emptyDir` and reset all tokens on every restart. Only
# use this for a test deployment.
enabled: false

# -- Amount of persistent storage to request
size: "1Gi"

# -- Class of storage to request
storageClass: ""

# -- Access mode of storage to request
accessMode: "ReadWriteOnce"

# -- Use an existing PVC, not dynamic provisioning. If this is set, the
# size, storageClass, and accessMode settings are ignored.
volumeClaimName: ""

# -- Resource limits and requests for the Redis pod
# @default -- See `values.yaml`
resources:
limits:
cpu: "1"
memory: "40Mi"
requests:
cpu: "50m"
memory: "15Mi"

# -- Pod annotations for the Redis pod
podAnnotations: {}

# -- Node selection rules for the Redis pod
nodeSelector: {}

# -- Tolerations for the Redis pod
tolerations: []

# -- Affinity rules for the Redis pod
affinity: {}
Loading