-
Notifications
You must be signed in to change notification settings - Fork 0
/
raven-test.yml
108 lines (108 loc) · 2.67 KB
/
raven-test.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
# Web Port Service (perhaps Nginx)
apiVersion: v1
kind: Service
metadata:
labels:
kubernetes.io/cluster-service: 'true'
kubernetes.io/name: monitoring-raven
name: raven-example-web
spec:
# NodePort type allows to expose service outside the cluster
type: LoadBalancer
loadBalancerIP: 10.108.5.2 # test IP
selector:
app: tworavens
ports:
- name: http
port: 80
targetPort: 8080
---
apiVersion: v1
kind: Pod
metadata:
name: tworavensweb
labels:
app: tworavens
spec:
restartPolicy: Always
volumes:
- name: ravens-volume
emptyDir: {}
#- name: ravens-volume
# # This GCE PD must already exist.
# gcePersistentDisk:
# pdName: raven-disk-01
# fsType: ext4
containers:
- name: ta3-main
image: tworavens/ravens-main:latest
command: ["gce_start.sh"]
resources:
requests:
memory: 512Mi
cpu: 1
ports:
- containerPort: 8080
name: http
protocol: TCP
# current tworavens has a mount at /ravens_volume
volumeMounts:
- mountPath: "/ravens_volume"
name: "ravens-volume"
readOnly: false
# environment variables passed to container
env:
# CONFIG_JSON_PATH
- name: CONFIG_JSON_PATH
value: /ravens_volume/config_185_baseball.json
# Turn off test mode
- name: TA2_STATIC_TEST_MODE
value: "True"
# Reference to the gRPC server using the pod name and TA2 port
#- name: TA2_TEST_SERVER_URL
# value: "raven1:45042"
# Url to TA3 R/rook web service
- name: R_DEV_SERVER_BASE
value: "http://localhost:8000/custom/"
#livenessProbe:
# # restart if not responding
# httpGet:
# path: /monitoring/alive
# port: 8080
# initialDelaySeconds: 5
# timeoutSeconds: 1
# periodSeconds: 10
# failureThreshold: 3
#readinessProbe:
# # ready for traffic
# httpGet:
# path: /monitoring/alive
# port: 8080
# initialDelaySeconds: 10
# periodSeconds: 10
# -------------------------
# ROOK CONTAINER SPECS
# -------------------------
- name: rook-service
image: tworavens/ravens-r-service:latest
resources:
requests:
memory: 512Mi
cpu: 1
# same mounts as ta3-main and ta2-main
volumeMounts:
# ravens volume shared w/ ta3-main
- mountPath: "/ravens_volume"
name: "ravens-volume"
readOnly: false
# web port
ports:
- containerPort: 8000
name: http
protocol: TCP
# environment variables passed to container
env:
# Also set to "yes" in the Dockefile
- name: ROOK_USE_PRODUCTION_MODE
value: "yes"