From 9b143d56edc88699a713f7f80770143cc7b380c2 Mon Sep 17 00:00:00 2001 From: yume233 Date: Sun, 8 Jan 2023 14:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20nwbot-config-init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nwbot.yaml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 nwbot.yaml diff --git a/nwbot.yaml b/nwbot.yaml new file mode 100644 index 0000000..026f465 --- /dev/null +++ b/nwbot.yaml @@ -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