update deployment.

This commit is contained in:
Monet Lee 2024-12-10 09:37:26 +08:00
parent 66b27b60e2
commit 0a10fa2540
15 changed files with 557 additions and 423 deletions

View File

@ -10,7 +10,6 @@ rpc:
# It will only take effect when autoSetPorts is set to false. # It will only take effect when autoSetPorts is set to false.
ports: [ 10200 ] ports: [ 10200 ]
prometheus: prometheus:
# Enable or disable Prometheus monitoring # Enable or disable Prometheus monitoring
enable: true enable: true

View File

@ -22,6 +22,10 @@ spec:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"
readOnly: true readOnly: true
- name: notification-config
mountPath: "/config/notification.yml"
subPath: notification.yml
readOnly: true
ports: ports:
- containerPort: 10002 - containerPort: 10002
- containerPort: 12002 - containerPort: 12002
@ -29,3 +33,6 @@ spec:
- name: openim-config - name: openim-config
configMap: configMap:
name: openim-config name: openim-config
- name: notification-config
configMap:
name: notification-config

View File

@ -5,6 +5,25 @@ metadata:
data: data:
discovery.yml: | discovery.yml: |
enable: "kubernetes" enable: "kubernetes"
kubernetes:
namespace: default
etcd:
rootDirectory: openim
address: [ localhost:12379 ]
username: ''
password: ''
rpcService:
user: user-rpc-service
friend: friend-rpc-service
msg: msg-rpc-service
push: push-rpc-service
messageGateway: messageGateway-rpc-service
group: group-rpc-service
auth: auth-rpc-service
conversation: conversation-rpc-service
third: third-rpc-service
log.yml: | log.yml: |
# Log storage path, default is acceptable, change to a full path if modification is needed # Log storage path, default is acceptable, change to a full path if modification is needed
# storageLocation: ../../../../logs/ # storageLocation: ../../../../logs/
@ -21,6 +40,7 @@ data:
isJson: false isJson: false
# output simplify log when KeyAndValues's value len is bigger than 50 in rpc method log # output simplify log when KeyAndValues's value len is bigger than 50 in rpc method log
isSimplify: true isSimplify: true
mongodb.yml: | mongodb.yml: |
# URI for database connection, leave empty if using address and credential settings directly # URI for database connection, leave empty if using address and credential settings directly
uri: '' uri: ''
@ -32,10 +52,13 @@ data:
username: openIM username: openIM
# Password for database authentication # Password for database authentication
password: openIM123 password: openIM123
# Authentication source for database authentication, if use root user, set it to admin
authSource: openim_v3
# Maximum number of connections in the connection pool # Maximum number of connections in the connection pool
maxPoolSize: 100 maxPoolSize: 100
# Maximum number of retry attempts for a failed database connection # Maximum number of retry attempts for a failed database connection
maxRetry: 10 maxRetry: 10
local-cache.yml: | local-cache.yml: |
user: user:
topic: DELETE_CACHE_USER topic: DELETE_CACHE_USER
@ -63,12 +86,14 @@ data:
failedExpire: 5 failedExpire: 5
openim-api.yml: | openim-api.yml: |
secret: openIM123
api: api:
# Listening IP; 0.0.0.0 means both internal and external IPs are listened to, default is recommended # Listening IP; 0.0.0.0 means both internal and external IPs are listened to, default is recommended
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# Listening ports; if multiple are configured, multiple instances will be launched, must be consistent with the number of prometheus.ports # Listening ports; if multiple are configured, multiple instances will be launched, must be consistent with the number of prometheus.ports
ports: [ 10002 ] ports: [ 10002 ]
# API compression level; 0: default compression, 1: best compression, 2: best speed, -1: no compression
compressionLevel: 0
prometheus: prometheus:
# Whether to enable prometheus # Whether to enable prometheus
enable: true enable: true
@ -76,13 +101,18 @@ data:
ports: [ 12002 ] ports: [ 12002 ]
# This address can be accessed via a browser # This address can be accessed via a browser
grafanaURL: http://127.0.0.1:13000/ grafanaURL: http://127.0.0.1:13000/
openim-rpc-user.yml: | openim-rpc-user.yml: |
rpc: rpc:
# API or other RPCs can access this RPC through this IP; if left blank, the internal network IP is obtained by default # API or other RPCs can access this RPC through this IP; if left blank, the internal network IP is obtained by default
registerIP: '' registerIP:
# Listening IP; 0.0.0.0 means both internal and external IPs are listened to, if blank, the internal network IP is automatically obtained by default # Listening IP; 0.0.0.0 means both internal and external IPs are listened to, if blank, the internal network IP is automatically obtained by default
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# Listening ports; if multiple are configured, multiple instances will be launched, and must be consistent with the number of prometheus.ports # autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
ports: [ 10320 ] ports: [ 10320 ]
prometheus: prometheus:
# Whether to enable prometheus # Whether to enable prometheus
@ -93,20 +123,25 @@ data:
openim-crontask.yml: | openim-crontask.yml: |
cronExecuteTime: 0 2 * * * cronExecuteTime: 0 2 * * *
retainChatRecords: 365 retainChatRecords: 365
fileExpireTime: 90 fileExpireTime: 180
deleteObjectType: ["msg-picture","msg-file", "msg-voice","msg-video","msg-video-snapshot","sdklog"]
openim-msggateway.yml: | openim-msggateway.yml: |
rpc: rpc:
# The IP address where this RPC service registers itself; if left blank, it defaults to the internal network IP # The IP address where this RPC service registers itself; if left blank, it defaults to the internal network IP
registerIP: registerIP:
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
ports: [ 10140, 10141, 10142, 10143, 10144, 10145, 10146, 10147, 10148, 10149, 10150, 10151, 10152, 10153, 10154, 10155 ] # It will only take effect when autoSetPorts is set to false.
ports: [ 10140 ]
prometheus: prometheus:
# Enable or disable Prometheus monitoring # Enable or disable Prometheus monitoring
enable: true enable: true
# List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
ports: [ 12140, 12141, 12142, 12143, 12144, 12145, 12146, 12147, 12148, 12149, 12150, 12151, 12152, 12153, 12154, 12155 ] ports: [ 12140 ]
# IP address that the RPC/WebSocket service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC/WebSocket service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
@ -127,7 +162,7 @@ data:
enable: true enable: true
# List of ports that Prometheus listens on; each port corresponds to an instance of monitoring. Ensure these are managed accordingly # List of ports that Prometheus listens on; each port corresponds to an instance of monitoring. Ensure these are managed accordingly
# Because four instances have been launched, four ports need to be specified # Because four instances have been launched, four ports need to be specified
ports: [ 12020, 12021, 12022, 12023, 12024, 12025, 12026, 12027, 12028, 12029, 12030, 12031, 12032, 12033, 12034, 12035 ] ports: [ 12020 ]
openim-push.yml: | openim-push.yml: |
rpc: rpc:
@ -135,14 +170,18 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: true
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
ports: [ 10170, 10171, 10172, 10173, 10174, 10175, 10176, 10177, 10178, 10179, 10180, 10181, 10182, 10183, 10184, 10185 ] # It will only take effect when autoSetPorts is set to false.
ports: [ 10170 ]
prometheus: prometheus:
# Enable or disable Prometheus monitoring # Enable or disable Prometheus monitoring
enable: true enable: true
# List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
ports: [ 12170, 12171, 12172, 12173, 12174, 12175, 12176, 12177, 12178, 12179, 12180, 12182, 12183, 12184, 12185, 12186 ] ports: [ 12170 ]
maxConcurrentWorkers: 3 maxConcurrentWorkers: 3
#Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified. #Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified.
@ -178,13 +217,19 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
ports: [ 10200 ] ports: [ 10200 ]
prometheus: prometheus:
# Enable or disable Prometheus monitoring # Enable or disable Prometheus monitoring
enable: true enable: true
# List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
ports: [12200] ports: [12200]
tokenPolicy: tokenPolicy:
# Token validity period, in days # Token validity period, in days
expire: 90 expire: 90
@ -195,14 +240,22 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
ports: [ 10220 ] # It will only take effect when autoSetPorts is set to false.
ports: [ 10200 ]
prometheus: prometheus:
# Enable or disable Prometheus monitoring # Enable or disable Prometheus monitoring
enable: true enable: true
# List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
ports: [ 12220 ] ports: [ 12200 ]
tokenPolicy:
# Token validity period, in days
expire: 90
openim-rpc-friend.yml: | openim-rpc-friend.yml: |
rpc: rpc:
@ -210,7 +263,11 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
ports: [ 10240 ] ports: [ 10240 ]
prometheus: prometheus:
@ -225,7 +282,11 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
ports: [ 10260 ] ports: [ 10260 ]
prometheus: prometheus:
@ -242,6 +303,9 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
ports: [ 10280 ] ports: [ 10280 ]
@ -261,7 +325,11 @@ data:
registerIP: registerIP:
# IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
listenIP: 0.0.0.0 listenIP: 0.0.0.0
# autoSetPorts indicates whether to automatically set the ports
# if you use in kubernetes, set it to false
autoSetPorts: false
# List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
# It will only take effect when autoSetPorts is set to false.
ports: [ 10300 ] ports: [ 10300 ]
prometheus: prometheus:
@ -296,19 +364,16 @@ data:
accessKeySecret: accessKeySecret:
sessionToken: sessionToken:
publicRead: false publicRead: false
aws:
region: ap-southeast-2
bucket: testdemo832234
accessKeyID:
secretAccessKey:
sessionToken:
publicRead: false
share.yml: | share.yml: |
secret: openIM123 secret: openIM123
rpcRegisterName:
user: user-rpc-service:10320
friend: friend-rpc-service:10240
msg: msg-rpc-service:10280
push: openim-push-service
messageGateway: openim-msggateway-service
group: group-rpc-service:10260
auth: auth-rpc-service:10200
conversation: conversation-rpc-service:10220
third: third-rpc-service:10300
imAdminUserID: ["imAdmin"] imAdminUserID: ["imAdmin"]
@ -316,56 +381,67 @@ data:
multiLogin: multiLogin:
policy: 1 policy: 1
maxNumOneEnd: 30 maxNumOneEnd: 30
customizeLoginNum:
ios: 1
android: 1
windows: 1
osx: 1
web: 1
miniWeb: 1
linux: 1
aPad: 1
iPad: 1
admin: 1
kafka.yml: | kafka.yml: |
# Username for authentication
username: '' username: ''
# Password for authentication
password: '' password: ''
producerAck: all # Producer acknowledgment settings
producerAck:
# Compression type to use (e.g., none, gzip, snappy)
compressType: none compressType: none
# List of Kafka broker addresses
address: [ "kafka-service:19094" ] address: [ "kafka-service:19094" ]
# Kafka topic for Redis integration
toRedisTopic: toRedis toRedisTopic: toRedis
# Kafka topic for MongoDB integration
toMongoTopic: toMongo toMongoTopic: toMongo
# Kafka topic for push notifications
toPushTopic: toPush toPushTopic: toPush
# Kafka topic for offline push notifications
toOfflinePushTopic: toOfflinePush toOfflinePushTopic: toOfflinePush
# Consumer group ID for Redis topic
toRedisGroupID: redis toRedisGroupID: redis
# Consumer group ID for MongoDB topic
toMongoGroupID: mongo toMongoGroupID: mongo
# Consumer group ID for push notifications topic
toPushGroupID: push toPushGroupID: push
# Consumer group ID for offline push notifications topic
toOfflinePushGroupID: offlinePush toOfflinePushGroupID: offlinePush
# TLS (Transport Layer Security) configuration
tls: tls:
# Enable or disable TLS
enableTLS: false enableTLS: false
# CA certificate file path
caCrt: caCrt:
# Client certificate file path
clientCrt: clientCrt:
# Client key file path
clientKey: clientKey:
# Client key password
clientKeyPwd: clientKeyPwd:
# Whether to skip TLS verification (not recommended for production)
insecureSkipVerify: false insecureSkipVerify: false
redis.yml: | redis.yml: |
address: [ "redis-service:16379" ] address: [ "redis-service:16379" ]
username: username:
password: openIM123 password: # openIM123
clusterMode: false clusterMode: false
db: 0 db: 0
maxRetry: 10 maxRetry: 10
poolSize: 100 poolSize: 100
minio.yml: | minio.yml: |
# Name of the bucket in MinIO # Name of the bucket in MinIO
bucket: openim bucket: openim
# Access key ID for MinIO authentication # Access key ID for MinIO authentication
accessKeyID: root # ${MINIO_ACCESS_KEY} accessKeyID: root # ${MINIO_ACCESS_KEY}
# Secret access key for MinIO authentication # Secret access key for MinIO authentication
secretAccessKey: openIM123 # ${MINIO_SECRET_KEY} secretAccessKey: # openIM123 # ${MINIO_SECRET_KEY}
# Session token for MinIO authentication (optional) # Session token for MinIO authentication (optional)
sessionToken: "" sessionToken:
# Internal address of the MinIO server # Internal address of the MinIO server
internalAddress: minio-service:10005 internalAddress: minio-service:10005
# External address of the MinIO server, accessible from outside. Supports both HTTP and HTTPS using a domain name # External address of the MinIO server, accessible from outside. Supports both HTTP and HTTPS using a domain name
@ -373,335 +449,330 @@ data:
# Flag to enable or disable public read access to the bucket # Flag to enable or disable public read access to the bucket
publicRead: "false" publicRead: "false"
notification.yml: | # notification.yml: |
groupCreated: # groupCreated:
isSendMsg: true # isSendMsg: true
# Reliability level of the message sending. # # Reliability level of the message sending.
# Set to 1 to send only when online, 2 for guaranteed delivery. # # Set to 1 to send only when online, 2 for guaranteed delivery.
reliabilityLevel: 1 # reliabilityLevel: 1
# This setting is effective only when 'isSendMsg' is true. # # This setting is effective only when 'isSendMsg' is true.
# It controls whether to count unread messages. # # It controls whether to count unread messages.
unreadCount: false # unreadCount: false
# Configuration for offline push notifications. # # Configuration for offline push notifications.
offlinePush: # offlinePush:
# Enables or disables offline push notifications. # # Enables or disables offline push notifications.
enable: false # enable: false
# Title for the notification when a group is created. # # Title for the notification when a group is created.
title: create group title # title: create group title
# Description for the notification. # # Description for the notification.
desc: create group desc # desc: create group desc
# Additional information for the notification. # # Additional information for the notification.
ext: create group ext # ext: create group ext
groupInfoSet: # groupInfoSet:
isSendMsg: false # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupInfoSet title # title: groupInfoSet title
desc: groupInfoSet desc # desc: groupInfoSet desc
ext: groupInfoSet ext # ext: groupInfoSet ext
# joinGroupApplication:
# isSendMsg: false
# reliabilityLevel: 1
# unreadCount: false
# offlinePush:
# enable: false
# title: joinGroupApplication title
# desc: joinGroupApplication desc
# ext: joinGroupApplication ext
joinGroupApplication: # memberQuit:
isSendMsg: false # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: joinGroupApplication title # title: memberQuit title
desc: joinGroupApplication desc # desc: memberQuit desc
ext: joinGroupApplication ext # ext: memberQuit ext
memberQuit: # groupApplicationAccepted:
isSendMsg: true # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: memberQuit title # title: groupApplicationAccepted title
desc: memberQuit desc # desc: groupApplicationAccepted desc
ext: memberQuit ext # ext: groupApplicationAccepted ext
groupApplicationAccepted: # groupApplicationRejected:
isSendMsg: false # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupApplicationAccepted title # title: groupApplicationRejected title
desc: groupApplicationAccepted desc # desc: groupApplicationRejected desc
ext: groupApplicationAccepted ext # ext: groupApplicationRejected ext
groupApplicationRejected: # groupOwnerTransferred:
isSendMsg: false # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupApplicationRejected title # title: groupOwnerTransferred title
desc: groupApplicationRejected desc # desc: groupOwnerTransferred desc
ext: groupApplicationRejected ext # ext: groupOwnerTransferred ext
# memberKicked:
# isSendMsg: true
# reliabilityLevel: 1
# unreadCount: false
# offlinePush:
# enable: false
# title: memberKicked title
# desc: memberKicked desc
# ext: memberKicked ext
groupOwnerTransferred: # memberInvited:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupOwnerTransferred title # title: memberInvited title
desc: groupOwnerTransferred desc # desc: memberInvited desc
ext: groupOwnerTransferred ext # ext: memberInvited ext
memberKicked: # memberEnter:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: memberKicked title # title: memberEnter title
desc: memberKicked desc # desc: memberEnter desc
ext: memberKicked ext # ext: memberEnter ext
memberInvited: # groupDismissed:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: memberInvited title # title: groupDismissed title
desc: memberInvited desc # desc: groupDismissed desc
ext: memberInvited ext # ext: groupDismissed ext
memberEnter: # groupMuted:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: memberEnter title # title: groupMuted title
desc: memberEnter desc # desc: groupMuted desc
ext: memberEnter ext # ext: groupMuted ext
groupDismissed: # groupCancelMuted:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupDismissed title # title: groupCancelMuted title
desc: groupDismissed desc # desc: groupCancelMuted desc
ext: groupDismissed ext # ext: groupCancelMuted ext
# defaultTips:
# tips: group Cancel Muted
groupMuted: # groupMemberMuted:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupMuted title # title: groupMemberMuted title
desc: groupMuted desc # desc: groupMemberMuted desc
ext: groupMuted ext # ext: groupMemberMuted ext
groupCancelMuted: # groupMemberCancelMuted:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupCancelMuted title # title: groupMemberCancelMuted title
desc: groupCancelMuted desc # desc: groupMemberCancelMuted desc
ext: groupCancelMuted ext # ext: groupMemberCancelMuted ext
defaultTips:
tips: group Cancel Muted
# groupMemberInfoSet:
# isSendMsg: false
# reliabilityLevel: 1
# unreadCount: false
# offlinePush:
# enable: false
# title: groupMemberInfoSet title
# desc: groupMemberInfoSet desc
# ext: groupMemberInfoSet ext
groupMemberMuted: # groupInfoSetAnnouncement:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupMemberMuted title # title: groupInfoSetAnnouncement title
desc: groupMemberMuted desc # desc: groupInfoSetAnnouncement desc
ext: groupMemberMuted ext # ext: groupInfoSetAnnouncement ext
groupMemberCancelMuted: # groupInfoSetName:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: false
title: groupMemberCancelMuted title # title: groupInfoSetName title
desc: groupMemberCancelMuted desc # desc: groupInfoSetName desc
ext: groupMemberCancelMuted ext # ext: groupInfoSetName ext
groupMemberInfoSet: # #############################friend#################################
isSendMsg: false # friendApplicationAdded:
reliabilityLevel: 1 # isSendMsg: false
unreadCount: false # reliabilityLevel: 1
offlinePush: # unreadCount: false
enable: false # offlinePush:
title: groupMemberInfoSet title # enable: false
desc: groupMemberInfoSet desc # title: Somebody applies to add you as a friend
ext: groupMemberInfoSet ext # desc: Somebody applies to add you as a friend
# ext: Somebody applies to add you as a friend
groupInfoSetAnnouncement: # friendApplicationApproved:
isSendMsg: true # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: true
title: groupInfoSetAnnouncement title # title: Someone applies to add your friend application
desc: groupInfoSetAnnouncement desc # desc: Someone applies to add your friend application
ext: groupInfoSetAnnouncement ext # ext: Someone applies to add your friend application
# friendApplicationRejected:
# isSendMsg: false
# reliabilityLevel: 1
# unreadCount: false
# offlinePush:
# enable: true
# title: Someone rejected your friend application
# desc: Someone rejected your friend application
# ext: Someone rejected your friend application
groupInfoSetName: # friendAdded:
isSendMsg: true # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: false # enable: true
title: groupInfoSetName title # title: We have become friends
desc: groupInfoSetName desc # desc: We have become friends
ext: groupInfoSetName ext # ext: We have become friends
# friendDeleted:
# isSendMsg: false
# reliabilityLevel: 1
# unreadCount: false
# offlinePush:
# enable: true
# title: deleted a friend
# desc: deleted a friend
# ext: deleted a friend
#############################friend################################# # friendRemarkSet:
friendApplicationAdded: # isSendMsg: false
isSendMsg: false # reliabilityLevel: 1
reliabilityLevel: 1 # unreadCount: false
unreadCount: false # offlinePush:
offlinePush: # enable: true
enable: false # title: Your friend's profile has been changed
title: Somebody applies to add you as a friend # desc: Your friend's profile has been changed
desc: Somebody applies to add you as a friend # ext: Your friend's profile has been changed
ext: Somebody applies to add you as a friend
friendApplicationApproved: # blackAdded:
isSendMsg: true # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: true # enable: true
title: Someone applies to add your friend application # title: blocked a user
desc: Someone applies to add your friend application # desc: blocked a user
ext: Someone applies to add your friend application # ext: blocked a user
friendApplicationRejected: # blackDeleted:
isSendMsg: false # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: true # enable: true
title: Someone rejected your friend application # title: Remove a blocked user
desc: Someone rejected your friend application # desc: Remove a blocked user
ext: Someone rejected your friend application # ext: Remove a blocked user
friendAdded: # friendInfoUpdated:
isSendMsg: false # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: true # enable: true
title: We have become friends # title: friend info updated
desc: We have become friends # desc: friend info updated
ext: We have become friends # ext: friend info updated
friendDeleted: # #####################user#########################
isSendMsg: false # userInfoUpdated:
reliabilityLevel: 1 # isSendMsg: false
unreadCount: false # reliabilityLevel: 1
offlinePush: # unreadCount: false
enable: true # offlinePush:
title: deleted a friend # enable: true
desc: deleted a friend # title: userInfo updated
ext: deleted a friend # desc: userInfo updated
# ext: userInfo updated
friendRemarkSet: # userStatusChanged:
isSendMsg: false # isSendMsg: false
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: true # enable: false
title: Your friend's profile has been changed # title: user status changed
desc: Your friend's profile has been changed # desc: user status changed
ext: Your friend's profile has been changed # ext: user status changed
blackAdded: # #####################conversation#########################
isSendMsg: false # conversationChanged:
reliabilityLevel: 1 # isSendMsg: false
unreadCount: false # reliabilityLevel: 1
offlinePush: # unreadCount: false
enable: true # offlinePush:
title: blocked a user # enable: true
desc: blocked a user # title: conversation changed
ext: blocked a user # desc: conversation changed
# ext: conversation changed
blackDeleted: # conversationSetPrivate:
isSendMsg: false # isSendMsg: true
reliabilityLevel: 1 # reliabilityLevel: 1
unreadCount: false # unreadCount: false
offlinePush: # offlinePush:
enable: true # enable: true
title: Remove a blocked user # title: burn after reading
desc: Remove a blocked user # desc: burn after reading
ext: Remove a blocked user # ext: burn after reading
friendInfoUpdated:
isSendMsg: false
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: true
title: friend info updated
desc: friend info updated
ext: friend info updated
#####################user#########################
userInfoUpdated:
isSendMsg: false
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: true
title: userInfo updated
desc: userInfo updated
ext: userInfo updated
userStatusChanged:
isSendMsg: false
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: false
title: user status changed
desc: user status changed
ext: user status changed
#####################conversation#########################
conversationChanged:
isSendMsg: false
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: true
title: conversation changed
desc: conversation changed
ext: conversation changed
conversationSetPrivate:
isSendMsg: true
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: true
title: burn after reading
desc: burn after reading
ext: burn after reading
prometheus.yml: | prometheus.yml: |
# my global config # my global config
@ -745,33 +816,13 @@ data:
namespace: default namespace: default
- job_name: openimserver-openim-msgtransfer - job_name: openimserver-openim-msgtransfer
static_configs: static_configs:
- targets: - targets: [ internal_ip:12020, internal_ip:12021, internal_ip:12022, internal_ip:12023, internal_ip:12024, internal_ip:12025, internal_ip:12026, internal_ip:12027 ]
[
internal_ip:12020,
internal_ip:12021,
internal_ip:12022,
internal_ip:12023,
internal_ip:12024,
internal_ip:12025,
internal_ip:12026,
internal_ip:12027,
]
# - targets: [ internal_ip:12020, internal_ip:12021, internal_ip:12022, internal_ip:12023, internal_ip:12024, internal_ip:12025, internal_ip:12026, internal_ip:12027, internal_ip:12028, internal_ip:12029, internal_ip:12030, internal_ip:12031, internal_ip:12032, internal_ip:12033, internal_ip:12034, internal_ip:12035 ] # - targets: [ internal_ip:12020, internal_ip:12021, internal_ip:12022, internal_ip:12023, internal_ip:12024, internal_ip:12025, internal_ip:12026, internal_ip:12027, internal_ip:12028, internal_ip:12029, internal_ip:12030, internal_ip:12031, internal_ip:12032, internal_ip:12033, internal_ip:12034, internal_ip:12035 ]
labels: labels:
namespace: default namespace: default
- job_name: openimserver-openim-push - job_name: openimserver-openim-push
static_configs: static_configs:
- targets: - targets: [ internal_ip:12170, internal_ip:12171, internal_ip:12172, internal_ip:12173, internal_ip:12174, internal_ip:12175, internal_ip:12176, internal_ip:12177 ]
[
internal_ip:12170,
internal_ip:12171,
internal_ip:12172,
internal_ip:12173,
internal_ip:12174,
internal_ip:12175,
internal_ip:12176,
internal_ip:12177,
]
# - targets: [ internal_ip:12170, internal_ip:12171, internal_ip:12172, internal_ip:12173, internal_ip:12174, internal_ip:12175, internal_ip:12176, internal_ip:12177, internal_ip:12178, internal_ip:12179, internal_ip:12180, internal_ip:12182, internal_ip:12183, internal_ip:12184, internal_ip:12185, internal_ip:12186 ] # - targets: [ internal_ip:12170, internal_ip:12171, internal_ip:12172, internal_ip:12173, internal_ip:12174, internal_ip:12175, internal_ip:12176, internal_ip:12177, internal_ip:12178, internal_ip:12179, internal_ip:12180, internal_ip:12182, internal_ip:12183, internal_ip:12184, internal_ip:12185, internal_ip:12186 ]
labels: labels:
namespace: default namespace: default

View File

@ -18,6 +18,11 @@ spec:
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -6,10 +6,14 @@ spec:
selector: selector:
app: openim-msggateway-server app: openim-msggateway-server
ports: ports:
- name: http-10001 - name: longConnServer-10001
protocol: TCP protocol: TCP
port: 10001 port: 10001
targetPort: 10001 targetPort: 10001
- name: http-12001
protocol: TCP
port: 12001
targetPort: 12001
- name: prometheus-12001 - name: prometheus-12001
protocol: TCP protocol: TCP
port: 12001 port: 12001

View File

@ -18,12 +18,21 @@ spec:
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"
readOnly: true readOnly: true
ports: ports:
# - containerPort: 15200
- containerPort: 12020 - containerPort: 12020
volumes: volumes:
- name: openim-config - name: openim-config

View File

@ -6,7 +6,6 @@ spec:
selector: selector:
app: openim-msgtransfer-server app: openim-msgtransfer-server
ports: ports:
# TODO Need check port!!!
- name: prometheus-12020 - name: prometheus-12020
protocol: TCP protocol: TCP
port: 12020 port: 12020

View File

@ -18,6 +18,11 @@ spec:
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -19,6 +19,11 @@ spec:
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -19,6 +19,16 @@ spec:
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -15,9 +15,7 @@ spec:
containers: containers:
- name: friend-rpc-server-container - name: friend-rpc-server-container
image: openim/openim-rpc-friend:v3.8.3 image: openim/openim-rpc-friend:v3.8.3
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD - name: IMENV_REDIS_PASSWORD
@ -25,6 +23,11 @@ spec:
secretKeyRef: secretKeyRef:
name: redis-secret name: redis-secret
key: redis-password key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -19,6 +19,16 @@ spec:
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -15,10 +15,19 @@ spec:
containers: containers:
- name: msg-rpc-server-container - name: msg-rpc-server-container
image: openim/openim-rpc-msg:v3.8.3 image: openim/openim-rpc-msg:v3.8.3
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -15,16 +15,25 @@ spec:
containers: containers:
- name: third-rpc-server-container - name: third-rpc-server-container
image: openim/openim-rpc-third:v3.8.3 image: openim/openim-rpc-third:v3.8.3
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: MINIO_ACCESS_KEY - name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
- name: IMENV_MINIO_ACCESSKEYID
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: minio-secret name: minio-secret
key: minio-root-user key: minio-root-user
- name: MINIO_SECRET_KEY - name: IMENV_MINIO_SECRETACCESSKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: minio-secret name: minio-secret

View File

@ -15,10 +15,19 @@ spec:
containers: containers:
- name: user-rpc-server-container - name: user-rpc-server-container
image: openim/openim-rpc-user:v3.8.3 image: openim/openim-rpc-user:v3.8.3
env: env:
- name: CONFIG_PATH - name: CONFIG_PATH
value: "/config" value: "/config"
- name: IMENV_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-secret
key: redis-password
- name: IMENV_MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongo-secret
key: mongo_openim_password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"