小编our*_*r93的帖子

GKE 中的 HPA 扩展时出错:apiserver 无法写入 JSON 响应:http2:流已关闭

遵循 google 为在 Google Kubernetes Engine 中部署 HPA 制定的指南:https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics

并添加正确的权限,因为我在本指南中使用工作负载身份: https: //github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/custom-metrics-stackdriver-adapter

并添加此处评论的防火墙规则:https ://github.com/kubernetes-sigs/prometheus-adapter/issues/134

我陷入了 HPA 返回此错误的地步:

kubectl describe hpa -n test-namespace
Name:                  my-hpa
Namespace:             test-namespace
Labels:                <none>
Annotations:           <none>
CreationTimestamp:     Tue, 13 Apr 2021 12:47:56 +0200
Reference:             StatefulSet/my-set
Metrics:               ( current / target )
  "my-metric" on pods:  <unknown> / 1
Min replicas:          1
Max replicas:          60
StatefulSet pods:      1 current / 0 desired
Conditions:
  Type           Status  Reason               Message
  ----           ------  ------               -------
  AbleToScale    True    SucceededGetScale    the HPA …
Run Code Online (Sandbox Code Playgroud)

google-cloud-platform kubernetes google-kubernetes-engine stackdriver hpa

4
推荐指数
1
解决办法
3702
查看次数

如何使用连接重命名 SQL 中的表

我想这样做:

SELECT *
FROM (t1 NATURAL JOIN t2) AS H
.
.
.
Run Code Online (Sandbox Code Playgroud)

但它产生了这个错误: SQL command not properly ended在这一行。

如果可以的话,我怎样才能做到?

sql

0
推荐指数
2
解决办法
1万
查看次数