1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- name: ai-web
- labels:
- app-name: ai-web
- spec:
- replicas: 1
- strategy:
- rollingUpdate:
- maxSurge: 1
- maxUnavailable: 1
- type: RollingUpdate
- template:
- metadata:
- labels:
- app-name: ai-web
- spec:
- imagePullSecrets:
- - name: registry-harbor
- containers:
- - name: ai-web
- image: {IMAGE_URL}
- imagePullPolicy: Always
- resources:
- requests:
- cpu: 1000m
- memory: 1048Mi
- limits:
- cpu: 1000m
- memory: 2048Mi
- env:
- # 网关服务地址(外部地址,用于nginx增加网关代理)
- - name: __GATEWAY_URL
- value: http://svc-ai-gateway.ns-aisquare-dev:8182
- # API服务地址(网关地址),如设置为空,将通过前端服务代理访问网关
- - name: __WEB_SERVER_URL
- value: http://ai-dev-dev.asiainfo.com
- # 图像标注服务地址,用于nginx cvat代理,内部地址
- - name: __CVAT_URL
- value: http://svc-ai-cvat:80
- # 文本标注服务地址,用于nginx cvat代理,内部地址
- - name: __DOCCANO_URL
- value: http://svc-ai-doccano:80
- # 前端访问上下文地址
- - name: __WEB_CONTEXT_PATH
- value: ""
- ports:
- - containerPort: 8181
- name: ai-web-port
- protocol: TCP
- volumeMounts:
- - mountPath: /data/ai_lab/ai_web/
- name: volume-aiweb
- # volumes:
- # - name: volume-aiweb
- # persistentVolumeClaim:
- # claimName: ai-claim-web
- volumes:
- - hostPath:
- path: /nfsdata/aisquare-dev/web
- name: volume-aiweb
|