forked from UnivaCorporation/urb-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
marathon.yaml
48 lines (48 loc) · 1.14 KB
/
marathon.yaml
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
apiVersion: v1
kind: Service
metadata:
name: marathonsvc
spec:
type: NodePort
ports:
- port: 8080
nodePort: 32080
selector:
app: marathonsvc
# clusterIP: None
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: marathonsvc
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: marathonsvc
spec:
volumes:
- name: urb-pv-storage
persistentVolumeClaim:
claimName: urb-pvc
containers:
- image: local/marathon
name: marathonsvc
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c", "./bin/start --master urb://urb-master.default:6379 --zk zk://zoo-svc:2181/marathon"]
# command: ["/bin/sh", "-c", "sleep infinity"]
env:
- name: MESOS_NATIVE_JAVA_LIBRARY
value: /opt/urb/lib/liburb.so
# - name: URB_LOGLEVEL
# value: 0
# - name: GLOG_v
# value: 2
volumeMounts:
- mountPath: "/opt/urb"
name: urb-pv-storage
ports:
- containerPort: 8080
name: marathonsvc