Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s使用什么环境变量可以加上nacos.core.auth.enabled=true的鉴权配置 #412

Open
linjiangyu2 opened this issue Jun 3, 2024 · 0 comments

Comments

@linjiangyu2
Copy link

目前我使用的k8s资源清单env以下
env:
- name: NACOS_REPLICAS
value: "1"
- name: SPRING_DATASOURCE_PLATFORM
value: "mysql"
- name: MYSQL_SERVICE_DB_NAME
value: "nacos"
- name: MYSQL_SERVICE_PORT
value: "3306"
- name: MYSQL_SERVICE_USER
value: "root"
- name: MYSQL_SERVICE_PASSWORD
value: "xxxxxxxx"
- name: MYSQL_SERVICE_HOST
value: "mysql.base.svc.cluster.local"
- name: NACOS_SERVER_PORT
value: "8848"
- name: PREFER_HOST_MODE
value: "hostname"
- name: MODE
value: "standalone"
- name: NACOS_SERVERS
value: "nacos.base.svc.cluster.local:8848"
- name: nacos.naming.data.warmup
value: "false"
- name: NACOS_AUTH_ENABLE
value: "true"
- name: NACOS_AUTH_TOKEN
value: "SecretKey012345678901234567890123456789012345678901234567890123456789"
- name: nacos.core.auth.enable.userAgentAuthWhite
value: "true"
然后要添加参数nacos.core.auth.enabled=true以开启鉴权功能要怎么添加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant