-
Notifications
You must be signed in to change notification settings - Fork 0
/
pod-release.yaml
65 lines (65 loc) · 1.88 KB
/
pod-release.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: amiyabot-minigame-api
namespace: amiya-bot
spec:
replicas: 1
selector:
matchLabels:
app: amiyabot-minigame-api
template:
metadata:
labels:
app: amiyabot-minigame-api
spec:
# 仅允许在位于阿里云的节点执行,保证对外IP不变
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: location
operator: In
values:
- aliyun
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
resources:
requests:
cpu: 250m
memory: 512Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullSecrets:
- name: harbor.hsyhhssyy.net