mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-28 14:42:14 +08:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
# transfer don't need port, please handle it separately
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ${DEPLOYMENT_NAME}
|
|
namespace: ${JOB_ENV}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: ${DEPLOYMENT_NAME}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: ${DEPLOYMENT_NAME}
|
|
spec:
|
|
containers:
|
|
- name: ${DEPLOYMENT_NAME}
|
|
image: ${HARBOR_URL}/${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM}
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
memory: ${DOCKER_MEM}
|
|
cpu: ${DOCKER_CPU}
|
|
requests:
|
|
memory: 100Mi
|
|
cpu: 80m
|
|
volumeMounts:
|
|
- name: localtime
|
|
mountPath: /etc/localtime
|
|
- name: config
|
|
mountPath: ${CONF_PATH}
|
|
volumes:
|
|
- name: localtime
|
|
hostPath:
|
|
path: /usr/share/zoneinfo/UTC
|
|
- name: config
|
|
configMap:
|
|
name: ${CONFIGMAP_NAME}
|
|
restartPolicy: Always
|