-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathkafka-consumer-user-course-progress-batch.yml
More file actions
55 lines (55 loc) · 1.74 KB
/
kafka-consumer-user-course-progress-batch.yml
File metadata and controls
55 lines (55 loc) · 1.74 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
53
54
55
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-consumer-user-course-progress-batch-try-again
labels:
{{- include "helm.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
app: kafka-consumer-user-course-progress-batch-try-again
{{- include "helm.selectorLabels" . | nindent 6 }}
replicas: 0
template:
metadata:
labels:
app: kafka-consumer-user-course-progress-batch-try-again
{{- include "helm.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: kafka-consumer-user-course-progress-batch-try-again
image: "{{ .Values.image.repository }}/moocfi-backend:{{ .Values.image.tag | default .Chart.AppVersion }}"
command: ["sh", "-c", "npm run kafka-consumer-user-course-progress-batch"]
imagePullPolicy: Always
ports:
- name: backend-http
containerPort: 4000
resources:
limits:
memory: 256Mi
cpu: 100m
requests:
memory: 100Mi
cpu: 30m
envFrom:
- secretRef:
name: backend-secret
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: new-redis
key: redis-password
- name: KAFKA_CONSUMER_GROUP
value: try-again
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