参考github上面的ob-operator的configserver的yaml配置文件,他的环境变量中的SVC_ADDRESS和SVC_PORT参数是做什么的呢,存储到具体数据库的那个物理配置connection_url不需要填写吗
链接麻烦提供下呢?
github的链接https://github.com/oceanbase/ob-operator/blob/master/example/webapp/configserver.yaml,物理机部署配置如下:
user:
username: root
password:
port: xxxxx
ob-configserver:
servers:
- 10.2xxxxx
global:
listen_port: 9080 # The port of ob-configserver web
home_path: /disk/nvme1n1/ob-configserver
log_level: info # Log printing level of ob-configserver。The default value is info
log_maxsize: 30 # The total size of manager ob-configserver.Log size is measured in Megabytes.The default value is 30
log_maxage: 7 # The days of manager expired ob-configserver.Log retention days. The default value is 7
log_maxbackups: 10 #The number of manager expired ob-configserver.Log. The default value is 10
log_localtime: true # Switch of ob-configserver.Log naming with localtime. The default value is true
log_compress: true
oceanbase:
database_type: oceanbase
connection_url: xxxxxxxx
SVC_ADDRESS和SVC_PORT:服务地址和服务端口号吧。
但是我的理解这个是和物理机存储的connection_url概念类似,那我的用户密码还有数据库名不需要填写吗
这里的环境变量可以直接进行使用。
是上面创建service 的地址和端口,在启动的 POD 中自动就有(使用)。
那你的意思是不需要写具体存储到那个数据库里面,那我的数据是直接存在pod里面吗
是的。因为service在pod之前创建了