istio egress

This commit is contained in:
Edward Viaene
2018-09-21 14:19:32 +00:00
parent f06430b407
commit f0806a4502
2 changed files with 58 additions and 0 deletions

View File

@@ -80,3 +80,9 @@ Create pods, services, destinationrules, virtualservices
kubectl create -f <(istioctl kube-inject -f helloworld-tls.yaml)
kubectl create -f helloworld-legacy.yaml
```
### End-user authentication
```
kubectl create -f <(istioctl kube-inject -f helloworld-jwt.yaml)
kubectl create -f helloworld-jwt-enable.yaml
```

View File

@@ -0,0 +1,52 @@
#
# 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