我想知道在Kubernetes中部署时如何在arangodb集群中更改或创建默认用户名和密码。
我尝试了下面的解决方案,但没有工作
env:
- name: ARANGO_ROOT_PASSWORD
value: "newrootpassword"
- name: ARANGO_USERNAME
value: "newusername"
- name: ARANGO_PASSWORD
value: "newpassword"
字符串
my_arango.yml
apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment"
metadata:
name: "arangodb-cluster"
spec:
metrics:
mode: sidecar
enabled: true
image: 'arangodb/arangodb-exporter:0.1.8'
tls: false
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9101'
prometheus.io/scrape_interval: '5s'
mode: Cluster
environment: Production
tls:
caSecretName: None
agents:
count: 3
args:
- --log.level=debug
resources:
requests:
storage: 500Mi
storageClassName: nfs-csi
dbservers:
count: 3
resources:
requests:
storage: 500Mi
storageClassName: nfs-csi
coordinators:
count: 3
image: "arangodb/arangodb:3.10.3"
env:
- name: ARANGO_ROOT_PASSWORD
value: "pass"
型
请给予我一个工作的解决方案来更改默认密码。
先谢了,
拉贾杜赖M
1条答案
按热度按时间z9smfwbn1#
请查看此文档,了解如何使用预定义的root密码引导部署:https://docs.arangodb.com/3.11/deploy/deployment/kubernetes/deployment-resource-reference/#specbootstrappasswordsecretnamesroot-string
一般来说,您应该创建一个secret,然后在ArangoDeployment规范中指定它:
字符串
然后为CR应用补丁:
型