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-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