-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathexpire-user-organization-join-confirmations-deployment.yml
More file actions
52 lines (52 loc) · 1.63 KB
/
expire-user-organization-join-confirmations-deployment.yml
File metadata and controls
52 lines (52 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{- if .Values.expireUserOrganizationJoinConfirmations.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: expire-user-organization-join-confirmations
labels:
{{- include "helm.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
app: expire-user-organization-join-confirmations
{{- include "helm.selectorLabels" . | nindent 6 }}
replicas: 1
template:
metadata:
labels:
app: expire-user-organization-join-confirmations
{{- include "helm.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: expire-user-organization-join-confirmations
image: "{{ .Values.image.repository }}/moocfi-backend:{{ .Values.image.tag | default .Chart.AppVersion }}"
command: ["sh", "-c", "npm run expire-user-organization-join-confirmations"]
imagePullPolicy: Always
resources:
limits:
memory: 512Mi
cpu: 100m
requests:
memory: 256Mi
cpu: 50m
envFrom:
- secretRef:
name: backend-secret
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: new-redis
key: redis-password
volumeMounts:
- name: google-cloud-storage-serviceaccount
mountPath: "/etc/gcs"
readOnly: true
volumes:
- name: google-cloud-storage-serviceaccount
secret:
secretName: google-cloud-storage-serviceaccount
items:
- key: account.json
path: account.json
{{- end }}