【发布时间】:2020-11-18 21:11:41
【问题描述】:
我正在使用 yaml 根据“subcription1”的单个订阅来扩展我的服务。
我想根据不是主题的订阅列表来扩展我的服务。有什么办法解决吗?
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: demo-service-hpa
spec:
minReplicas: 1
maxReplicas: 5
metrics:
- external:
metricName: pubsub.googleapis.com|subscription|num_undelivered_messages
metricSelector:
matchLabels:
resource.labels.project_id: <project-id>
metadata.system_labels.subscription_id: subcription1 #I want to pass multiple subscription here
targetAverageValue: "1"
type: External
scaleTargetRef:
apiVersion: extensions/v1beta1
kind: Deployment
name: hpa-sample-service
【问题讨论】:
标签: google-cloud-platform google-kubernetes-engine autoscaling