-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathkarma.yaml
More file actions
49 lines (49 loc) · 1.16 KB
/
karma.yaml
File metadata and controls
49 lines (49 loc) · 1.16 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
--- #
--- # Course :: Problem Diagnosis and Troubleshooting Lab
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: <team>-karma
namespace: <team>
labels:
app: <team>-karma
spec:
selector:
matchLabels:
app: <team>-karma
replicas: 1
template:
metadata:
labels:
app: <team>-karma
spec:
containers:
- name: <team>-karma
image: docker.io/ibmicpcoc/karma:latest
imagePullPolicy: Always
command: ["node", "app.js"]
env:
- name: APP_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: APP_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: COLLECTOR_CONFIG
valueFrom:
configMapKeyRef:
name: <team>-collector-config
key: COLLECTOR_CONFIG
- name: INSTRUCTOR_CONFIG
valueFrom:
configMapKeyRef:
name: <team>-collector-config
key: INSTRUCTOR_CONFIG
resources:
requests:
cpu: 50m
memory: 50Mi
---