请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

插入代码

1回答

刘果国 2020-11-19 10:27:50

这个是ingress配置呀,edit命令修改:kubectl edit ingress -n istio-system prometheus

0 回复 有任何疑惑可以回复我~
  • 提问者 ccmfirst #1
    apiVersion: extensions/v1beta1
    kind: Ingress
    metadata:
      annotations:
        kubectl.kubernetes.io/last-applied-configuration: |
          {"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{},"labels":{"app":"prometheus","chart":"prometheus","heritage":"Tiller","release":"istio"},"name":"prometheus","namespace":"istio-system"},"spec":{"rules":[{"host":"prometheus.local","http":{"paths":[{"backend":{"serviceName":"prometheus","servicePort":9090},"path":"/prometheus"}]}}]}}
      creationTimestamp: "2020-11-18T06:06:57Z"
      generation: 1
      labels:
        app: prometheus
        chart: prometheus
        heritage: Tiller
        release: istio
      name: prometheus
      namespace: istio-system
      resourceVersion: "1494511"
      selfLink: /apis/extensions/v1beta1/namespaces/istio-system/ingresses/prometheus
      uid: a4ea83e6-606d-4f9a-b842-91df86650e54
    spec:
      rules:
      - host: prometheus.local
        http:
          paths:
          - backend:
              serviceName: prometheus
              servicePort: 9090
            path: /prometheus
            pathType: ImplementationSpecific
    status:
      loadBalancer: {}
    
    请问应该如何修改?
    回复 有任何疑惑可以回复我~ 2020-11-19 15:03:57
  • 刘果国 回复 提问者 ccmfirst #2
    抱歉,我搞错了,这个列展示的应该是ingress-nginx的监听端口。跟ingress本身无关。确实没关注过这个。
    回复 有任何疑惑可以回复我~ 2020-11-20 10:57:28
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信