blob: 360736b1ef911b04c47f458bdb9c46e64d1b786f (
plain) (
blame)
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
|
apiVersion: v1
kind: Service
metadata:
name: peer-server-svc
labels:
app: peer-server-svc
spec:
selector:
app: dexcon-simulation-peer-server
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: dexcon-simulation-peer-server
labels:
app: dexcon-simulation-peer-server
spec:
revisionHistoryLimit: 5
replicas: 1
template:
metadata:
name: dexcon-simulation-peer-server
labels:
app: dexcon-simulation-peer-server
spec:
nodeSelector:
cloud.google.com/gke-nodepool: default-pool
volumes:
- name: ssl-certs
hostPath:
path: /etc/ssl/certs
containers:
- name: dexcon-simulation
image: asia.gcr.io/cobinhood/dexcon-simulation:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 200m
memory: 512Mi
env:
- name: ROLE
value: "peer-server"
|