关键字:k8s istio endpoint svc vs

1、创建VS

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: vs-luntan
  namespace: qa
spec:
  gateways:
  -gateway-qa11
  hosts:
  - luntan.qa.com
  http:
  - match:
    - uri:
        prefix: /
    route:
    - destination:
        host: svc-luntan.qa.svc.cluster.local 

2、创建svc

apiVersion: v1
kind: Service
metadata:
  name: svc-luntan
  namespace: qa
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 80
  sessionAffinity: None
  type: ClusterIP
status:
  loadBalancer: {} 

3、创建endpoint

apiVersion: v1
kind: Endpoints
metadata:
  name: svc-luntan
  namespace: qa
subsets:
- addresses:
  - ip: 10.198.1.1
  ports:
  - port: 80
    protocol: TCP 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-02-09
  • 2022-01-01
  • 2021-09-23
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-12-10
  • 2022-01-22
  • 2021-11-13
相关资源
相似解决方案