open-im-server/deployments/deploy/openim-rpc-msg-deployment.yml
2024-12-04 10:13:49 +08:00

42 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: msg-rpc-server
spec:
replicas: 1
selector:
matchLabels:
app: msg-rpc-server
template:
metadata:
labels:
app: msg-rpc-server
spec:
containers:
- name: msg-rpc-server-container
image: openim/openim-rpc-msg:v3.9
# imagePullPolicy: Never
env:
- name: DEPLOYMENT_TYPE
value: "kubernetes"
- name: CONFIG_PATH
value: "/config"
volumeMounts:
- name: openim-config
mountPath: "/config"
readOnly: true
- name: notification-config
mountPath: "/config/notification.yml"
subPath: notification.yml
readOnly: true
ports:
- containerPort: 10280
- containerPort: 12280
volumes:
- name: openim-config
configMap:
name: openim-config
- name: notification-config
configMap:
name: notification-config