mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 21:22:16 +08:00
35 lines
796 B
YAML
35 lines
796 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: openim-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: openim-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: openim-api
|
|
spec:
|
|
containers:
|
|
- name: openim-api-container
|
|
image: openim/openim-api:v3.9
|
|
# imagePullPolicy: Never
|
|
env:
|
|
- name: CONFIG_PATH
|
|
value: "/config"
|
|
- name: DEPLOYMENT_TYPE
|
|
value: "kubernetes"
|
|
volumeMounts:
|
|
- name: openim-config
|
|
mountPath: "/config"
|
|
readOnly: true
|
|
ports:
|
|
- containerPort: 10002
|
|
- containerPort: 12002
|
|
volumes:
|
|
- name: openim-config
|
|
configMap:
|
|
name: openim-config
|