commit 9b143d56edc88699a713f7f80770143cc7b380c2 Author: yume233 Date: Sun Jan 8 14:13:39 2023 +0800 ✨ nwbot-config-init 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