nwbot-config-init

This commit is contained in:
yume233 2023-01-08 14:13:39 +08:00
commit 9b143d56ed
No known key found for this signature in database
GPG Key ID: 38EDDF24E9D476FB

49
nwbot.yaml Normal file
View File

@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nwbot
spec:
selector:
matchLabels:
app: nwbot
template:
metadata:
labels:
app: nwbot
spec:
containers:
- name: nwbot
image: hkccr.ccs.tencentyun.com/yume/nwbot:test
ports:
- containerPort: 53121
---
apiVersion: v1
kind: Service
metadata:
name: nwbot
labels:
app: nwbot
spec:
ports:
- port: 53121
protocol: TCP
name: http
selector:
app: nwbot
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nwbot
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: bot.biudi.cn
http:
paths:
- path: /
pathType: Prefix
backend:
name: nwbot
port: 53121