From a441a1f74c6157371e07c3c740d5d668e9781f5f Mon Sep 17 00:00:00 2001 From: ycz008 Date: Wed, 28 Feb 2024 11:26:21 +0800 Subject: [PATCH] support yapi upgrade --- dev-upgrade/yapi/yapi.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dev-upgrade/yapi/yapi.yaml b/dev-upgrade/yapi/yapi.yaml index e2cbddf..f93af84 100644 --- a/dev-upgrade/yapi/yapi.yaml +++ b/dev-upgrade/yapi/yapi.yaml @@ -23,7 +23,22 @@ spec: - name: http containerPort: 3000 protocol: TCP - + volumeMounts: + - name: yapi-log + mountPath: /yapi/log + volumes: + - name: yapi-log + hostPath: + path: /data/yapi/log + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: + - bfs-k8snode-10-2-0-15.hetzner.base.beaconfireinc.com --- apiVersion: v1 kind: Service