如何列出同类部署?

时间:2019-11-30 15:38:56

标签: kubernetes istio

我已经部署了Istio虚拟服务:

Public Sub Selected()

Dim ie As SHDocVw.InternetExplorer

Set ie = New SHDocVw.InternetExplorer

With ie
    .Visible = True
    .Navigate2 "https://www.castorama.ru/building-materials/building-dry-materials-and-primers"
    While .Busy Or .readyState <> 4: DoEvents: Wend
    .document.getElementsByClassName("store-switcher__current-store-i").querySelector("[shop='Воронеж']").Click

    Stop
End With

End Sub 

,并希望在屏幕上显示以下内容:

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: helloweb
spec:
  hosts:
    - 'helloweb.dev'
  gateways:
    - gateway
  http:
    - route:
      - destination:
          host: helloweb.default.svc.cluster.local
          port:
            number: 3000

如何显示VirtualServices?

1 个答案:

答案 0 :(得分:3)

不确定我是否正确理解了您的问题,但是如果您只想列出虚拟服务,则可以执行以下操作:

kubectl get virtualservices

VirtualService只是典型的CRD。