Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: networking.istio.io/v1alpha3
- kind: VirtualService
- metadata:
- name: my-virtualservice
- spec:
- hosts:
- # my-service.default.svc.cluster.local ?
- - "*"
- gateways:
- - my-gateway
- http:
- - match:
- - uri:
- prefix: /somepath/
- route:
- - destination:
- host: my-service
- Defining a service:
- # K8s - Service
- apiVersion: v1
- kind: Service
- metadata:
- name: my-service
- spec:
- ports:
- - name: my-port
- port: #*** Dynamic port? ***#
- targetPort: 80
Add Comment
Please, Sign In to add comment