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 - name: notification-config mountPath: "/config/notification.yml" subPath: notification.yml readOnly: true ports: - containerPort: 10002 - containerPort: 12002 volumes: - name: openim-config configMap: name: openim-config - name: notification-config configMap: name: notification-config