拆分文件

This commit is contained in:
yume233 2023-01-08 14:18:24 +08:00
parent 9b143d56ed
commit de8d618149
No known key found for this signature in database
GPG Key ID: 38EDDF24E9D476FB
4 changed files with 48 additions and 49 deletions

View File

@ -1,49 +0,0 @@
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

18
nwbot/deployment.yaml Normal file
View File

@ -0,0 +1,18 @@
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

17
nwbot/ingress.yaml Normal file
View File

@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nwbot
namespace: nwbot
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: bot.biudi.cn
http:
paths:
- path: /
pathType: Prefix
backend:
name: nwbot
port: 53121

13
nwbot/services.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: nwbot
labels:
app: nwbot
spec:
ports:
- port: 53121
protocol: TCP
name: http
selector:
app: nwbot