mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 05:52:29 +08:00
31 lines
702 B
YAML
31 lines
702 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: openim-api
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: openim-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: openim-api
|
|
spec:
|
|
containers:
|
|
- name: openim-api-container
|
|
image: openim/openim-api:v3.8.3
|
|
env:
|
|
- name: CONFIG_PATH
|
|
value: "/config"
|
|
volumeMounts:
|
|
- name: openim-config
|
|
mountPath: "/config"
|
|
readOnly: true
|
|
ports:
|
|
- containerPort: 10002
|
|
- containerPort: 12002
|
|
volumes:
|
|
- name: openim-config
|
|
configMap:
|
|
name: openim-config |