-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopenstf-triproxy-app.yaml
57 lines (57 loc) · 1.38 KB
/
openstf-triproxy-app.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
49
50
51
52
53
54
55
56
57
apiVersion: v1
kind: ReplicationController
metadata:
name: openstf-triproxy-app
labels:
app: openstf-triproxy-app
spec:
replicas: 1
selector:
app: openstf-triproxy-app
template:
metadata:
labels:
app: openstf-triproxy-app
spec:
terminationGracePeriodSeconds: 10
containers:
- name: openstf-triproxy-app
image: openstf/stf:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 7150
name: bind-pub
- containerPort: 7160
name: bind-dealer
- containerPort: 7170
name: bind-pull
command: ["stf"]
args:
- triproxy
- "app"
- --bind-pub
- "tcp://*:7150"
- --bind-dealer
- "tcp://*:7160"
- --bind-pull
- "tcp://*:7170"
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP