gpt4 book ai didi

kubernetes - 在minikube中运行ReportPortal

转载 作者:行者123 更新时间:2023-12-02 12:09:38 25 4
gpt4 key购买 nike

我尝试在我的minikube中运行ReportPortal:

# Delete stuff from last try
minikube delete

minikube start --driver=docker

minikube addons enable ingress

helm repo add stable https://kubernetes-charts.storage.googleapis.com/

mv v5 reportportal/

helm dependency update

helm install . --generate-name

→ Error: failed pre-install: warning: Hook pre-install reportportal/templates/migrations-job.yaml failed: Job.batch "chart-1601647169-reportportal-migrations" is invalid: spec.template.spec.containers[0].env[4].valueFrom.secretKeyRef.name: Invalid value: "": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
这是文件harts.yaml: https://github.com/reportportal/kubernetes/tree/master/reportportal/v5
有什么事吗

最佳答案

就像here

Before you deploy ReportPortal you should have installed all its requirements. Their versions are described in requirements.yamlYou should also specify correct PostgreSQL and RabbitMQ addresses and ports in values.yaml

rabbitmq:
SecretName: ""
installdep:
enable: false
endpoint:
address: <rabbitmq_chart_name>-rabbitmq-ha.default.svc.cluster.local
port: 5672
user: rabbitmq
apiport: 15672
apiuser: rabbitmq

postgresql:
SecretName: ""
installdep:
enable: false
endpoint:
cloudservice: false
address: <postgresql_chart_name>-postgresql.default.svc.cluster.local
port: 5432
user: rpuser
dbName: reportportal
password:

我检查了 here,它指向 values.yaml中的postgresql secret 名称。
解决方案是将其从 ""更改为您的 postgresql secret name,然后重新安装。您可以在values.yaml中或使用 --set进行更改,后者在命令行上指定替代

关于kubernetes - 在minikube中运行ReportPortal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64265935/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com