【发布时间】:2018-12-17 17:21:28
【问题描述】:
我正在尝试使用步骤here 为我在本地 Kubernetes 集群中运行的应用程序设置自动金丝雀分析 .我们正在使用 Prometheus 进行监控/指标。
我在运行管道时在Canary Analysis 阶段遇到以下错误:
Either a resource type or a custom filter is required.
问题是在添加舞台时Resource Type 下拉列表在Canary Analysis 表单上不可用。根据Spinnaker how-to article 和上面文章中的屏幕截图,Resource Type 下拉菜单应该在那里。
知道为什么 Canary 分析表单上没有 Resource Type 吗?我是否缺少一些 Halyard 配置?
这是我的 Halyard 配置(未显示 bash 变量):
hal config version edit --version 1.10.5
echo $MINIO_PWD | hal config storage s3 edit --endpoint http://minio-service.spinnaker.svc.cluster.local:9001/ --bucket data --access-key-id spinnaker-minio --secret-access-key
hal config storage edit --type s3
hal config canary enable
hal config canary prometheus enable
hal config canary prometheus account add $PROMETHEUS_ACCT --base-url http://$PROMETHEUS_URL:9090
hal config canary edit --show-all-configs-enabled false
hal config canary edit --default-metrics-store prometheus
hal config canary edit --default-metrics-account $PROMETHEUS_ACCT
hal config canary aws enable
echo $MINIO_PWD | hal config canary aws account add $AWS_CANARY_ACCT --bucket canary-data --access-key-id spinnaker-minio --endpoint http://minio-service.spinnaker.svc.cluster.local:9001/ --secret-access-key
hal config canary aws edit --s3-enabled=true
hal config canary edit --default-storage-account $AWS_CANARY_ACCT
hal config provider docker-registry enable
hal config provider docker-registry account add $DOCKER_REGISTRY_ACCOUNT --address $DOCKER_REGISTRY_ADDRESS
echo $DOCKER_HUB_PWD | hal config provider docker-registry account edit $DOCKER_REGISTRY_ACCOUNT --username $DOCKER_REGISTRY_ACCOUNT --address $DOCKER_REGISTRY_ADDRESS --add-repository $DOCKER_REGISTRY_REPOSITORY --password
hal config provider kubernetes enable
hal config provider kubernetes account delete k8s-account
hal config provider kubernetes account add k8s-account --context kubernetes-admin@kubernetes --docker-registries $DOCKER_REGISTRY_ACCOUNT --namespaces $K8S_NAMESPACES
hal config deploy edit --type distributed --account-name k8s-account
hal deploy apply
【问题讨论】:
标签: spinnaker