-
Notifications
You must be signed in to change notification settings - Fork 0
/
played.yaml
67 lines (67 loc) · 1.43 KB
/
played.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
tatsu.deployment: played
name: played
namespace: tatsu
spec:
replicas: 3
strategy:
type: RollingUpdate
selector:
matchLabels:
tatsu.deployment: played
template:
metadata:
labels:
tatsu.deployment: played
spec:
imagePullSecrets:
- name: scalewayauth
restartPolicy: Always
containers:
- name: played
image: rg.fr-par.scw.cloud/tatsu/played
imagePullPolicy: Always
ports:
- name: playedws
containerPort: 80
- name: playedgrpc
containerPort: 8080
tty: true
env:
- name: FORCE_COLOR
value: "1"
- name: WS_ADDR
value: "0.0.0.0:80"
- name: GRPC_ADDR
value: "0.0.0.0:8080"
- name: REDIS_ADDR
value: "10.64.132.51:6379"
livenessProbe:
httpGet:
path: /healthz
port: playedws
initialDelaySeconds: 1
failureThreshold: 4
periodSeconds: 15
---
apiVersion: v1
kind: Service
metadata:
name: played
namespace: tatsu
spec:
type: NodePort
externalTrafficPolicy: "Local"
selector:
tatsu.deployment: played
ports:
- name: playedws
port: 80
protocol: TCP
- name: playedgrpc
port: 8080
protocol: TCP
---