小编Nie*_*ijk的帖子

GKE 入口 https 重定向 - FrontendConfig 无法识别

我有一个同时包含 Http 和 Https 的 GKE 入口。我想将流量从端口 80 重定向到端口 443。我发现了这个:https: //github.com/kubernetes/ingress-gce/issues/1075 ,它让这个: https: //cloud.google.com/kubernetes -engine/docs/how-to/ingress-features#https_redirect

建议的解决方案添加了一个带有 RedirectToHttps 标志的 FrontendConfig,该标志使用了一些 LoadBalancer 功能。然而,当我尝试添加 FrontendEndConfig 时,出现以下错误:

error: unable to recognize "ssl.yaml": no matches for kind "FrontendConfig" in version "networking.gke.io/v1beta1"
Run Code Online (Sandbox Code Playgroud)

我还尝试过“networking.gke.io/v1”和“v1beta2”。我的区域中可用的最新 GKE 版本是 1.17.13-gke.2001。我最近启动了集群,所以虽然我不知道如何检查 GKE 版本,但我认为它正在最新版本上运行。

有人知道为什么我的 kubectl 不识别这种类型吗?


入口 yaml:

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: basic-ingress
  annotations:
    FrontendConfig: my-frontend-config
    kubernetes.io/ingress.global-static-ip-name: 'web-static-ip'
    networking.gke.io/managed-certificates: mycertificate
    # kubernetes.io/ingress.allow-http: "false"
spec:
  rules:
  - http:
      paths:
      - path: /*
        backend:
          serviceName: frontend
          servicePort: 80
      - path: …
Run Code Online (Sandbox Code Playgroud)

https google-kubernetes-engine gke-networking

7
推荐指数
1
解决办法
5446
查看次数

Azure CLI 无法识别资源组

我是 Azure 新手,在使用门户上的 CLI 时遇到了一些问题。使用 UI 创建 AKS 服务后,我在 CLI 中找不到它并收到如下所示的错误消息。我是否缺少一个过滤资源的模糊设置?我什至找不到我的资源组。

多次检查拼写,obv。还检查了这个Resource not found...,这又是针对非常晦涩的查询,而我的查询非常简单。

任何帮助,将不胜感激!

(ResourceGroupNotFound) Resource group 'WebPlatformResource' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'WebPlatformResource' could not be found.
Run Code Online (Sandbox Code Playgroud)

azure azure-cli

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