forked from FAForever/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minikube-example.yaml
83 lines (82 loc) · 1.74 KB
/
minikube-example.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
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
apiVersion: v1
kind: Service
metadata:
name: faf-lobby
labels:
app: faf-lobby
spec:
type: NodePort
selector:
app: faf-lobby
ports:
- port: 8001
name: qstream
- port: 8002
name: simplejson
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: faf-lobby
spec:
replicas: 1
selector:
matchLabels:
app: faf-lobby
template:
metadata:
labels:
app: faf-lobby
spec:
terminationGracePeriodSeconds: 310
containers:
- name: faf-python-server
image: faf-python-server:graceful
imagePullPolicy: Never
readinessProbe:
httpGet:
path: /ready
port: health
initialDelaySeconds: 4
periodSeconds: 1
ports:
- containerPort: 4000
name: control
- containerPort: 2000
name: health
- containerPort: 8001
name: qstream
- containerPort: 8002
name: simplejson
env:
- name: CONFIGURATION_FILE
value: /config/config.yaml
- name: CONTAINER_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: config
mountPath: /config
readOnly: true
volumes:
- name: config
configMap:
name: minikube-dev-config
items:
- key: config.yaml
path: config.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: minikube-dev-config
data:
config.yaml: |
LOG_LEVEL: TRACE
USE_POLICY_SERVER: false
QUEUE_POP_TIME_MAX: 30
SHUTDOWN_GRACE_PERIOD: 300
SHUTDOWN_KICK_IDLE_PLAYERS: true
DB_SERVER: host.minikube.internal
MQ_SERVER: host.minikube.internal