-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver-full.yaml
131 lines (127 loc) · 3.44 KB
/
server-full.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
apiVersion: apps/v1
kind: Deployment
metadata:
name: amiya-bot-player-rating-server
namespace: amiya-bot
spec:
replicas: 1
selector:
matchLabels:
app: amiya-bot-player-rating-server
template:
metadata:
labels:
app: amiya-bot-player-rating-server
spec:
containers:
- command:
- dotnet
- AmiyaBotPlayerRatingServer.dll
env:
- name: DOTNET_RUNNING_IN_CONTAINER
value: 'true'
- name: DOTNET_USE_POLLING_FILE_WATCHER
value: 'true'
- name: NUGET_XMLDOC_MODE
value: skip
- name: POWERSHELL_DISTRIBUTION_CHANNEL
value: PSDocker-DotnetSDK-Debian-10
- name: TZ
value: Asia/Shanghai
image: harbor.hsyhhssyy.net/home-esxi/amiya-bot-player-rating-server:1
imagePullPolicy: Always
name: amiya-bot-player-rating-server
ports:
- containerPort: 80
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: Blank
port: 80
scheme: HTTP
initialDelaySeconds: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
volumeMounts:
- mountPath: /app/Resources/amiya-bot-assets
name: amiya-bot-assets
resources:
requests:
cpu: 250m
memory: 512Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumes:
- name: amiya-bot-assets
nfs:
server: 192.168.31.25
path: /mnt/raid1-pool1/amiya-bot/RatingServer/Assets
imagePullSecrets:
- name: harbor.hsyhhssyy.net
---
apiVersion: v1
kind: Service
metadata:
name: amiya-bot-player-rating-server-service
namespace: amiya-bot
spec:
selector:
app: amiya-bot-player-rating-server
ports:
- name: port-80
protocol: TCP
port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: amiya-bot-rating-server-ingress
namespace: amiya-bot
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: 50m
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
spec:
tls:
- hosts:
- amiya-bot-service.hsyhhssyy.net
secretName: amiya-bot-service.hsyhhssyy.net.tls
rules:
- host: amiya-bot-service.hsyhhssyy.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: amiya-bot-player-rating-server-service-website
port:
number: 80
- path: /api/
pathType: Prefix
backend:
service:
name: amiya-bot-player-rating-server-service
port:
number: 80
- path: /gamehub
pathType: Prefix
backend:
service:
name: amiya-bot-player-rating-server-service
port:
number: 80
- path: /connect/
pathType: Prefix
backend:
service:
name: amiya-bot-player-rating-server-service
port:
number: 80