✨ 拆分文件
This commit is contained in:
parent
9b143d56ed
commit
de8d618149
49
nwbot.yaml
49
nwbot.yaml
@ -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
18
nwbot/deployment.yaml
Normal 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
17
nwbot/ingress.yaml
Normal 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
13
nwbot/services.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user