mirror of
https://github.com/wardviaene/kubernetes-course.git
synced 2026-02-14 17:49:56 +00:00
53 lines
797 B
YAML
53 lines
797 B
YAML
#
|
|
# http
|
|
#
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: ServiceEntry
|
|
metadata:
|
|
name: ifconfig-co-http
|
|
spec:
|
|
hosts:
|
|
- ifconfig.co
|
|
ports:
|
|
- number: 80
|
|
name: http
|
|
protocol: HTTP
|
|
resolution: DNS
|
|
location: MESH_EXTERNAL
|
|
---
|
|
#
|
|
# https
|
|
#
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: ServiceEntry
|
|
metadata:
|
|
name: ifconfig-co-https
|
|
spec:
|
|
hosts:
|
|
- ifconfig.co
|
|
ports:
|
|
- number: 443
|
|
name: https
|
|
protocol: HTTPS
|
|
resolution: DNS
|
|
location: MESH_EXTERNAL
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
name: ifconfig-co
|
|
spec:
|
|
hosts:
|
|
- ifconfig.co
|
|
tls:
|
|
- match:
|
|
- port: 443
|
|
sni_hosts:
|
|
- ifconfig.co
|
|
route:
|
|
- destination:
|
|
host: ifconfig.co
|
|
port:
|
|
number: 443
|
|
weight: 100
|