support yapi upgrade

main
ycz008 2024-02-28 11:26:21 +08:00
parent 402cf07163
commit a441a1f74c
1 changed files with 16 additions and 1 deletions

View File

@ -23,7 +23,22 @@ spec:
- name: http - name: http
containerPort: 3000 containerPort: 3000
protocol: TCP 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 apiVersion: v1
kind: Service kind: Service