Skip to content

Instantly share code, notes, and snippets.

@askmeegs
Created September 7, 2019 23:15
Show Gist options
  • Select an option

  • Save askmeegs/f3bdb0759f21ba4e45618fb443c0434a to your computer and use it in GitHub Desktop.

Select an option

Save askmeegs/f3bdb0759f21ba4e45618fb443c0434a to your computer and use it in GitHub Desktop.
mtls-some-svc.yaml
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: "adservice"
namespace: onlineboutique
spec:
targets:
- name: adservice
peers:
- mtls: {}
---
apiVersion: "networking.istio.io/v1alpha3"
kind: "DestinationRule"
metadata:
name: "adservice"
namespace: onlineboutique
spec:
host: "adservice.onlineboutique.svc.cluster.local"
trafficPolicy:
tls:
mode: ISTIO_MUTUAL
---
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: "recommendationsservice"
namespace: onlineboutique
spec:
targets:
- name: recommendationsservice
peers:
- mtls: {}
---
apiVersion: "networking.istio.io/v1alpha3"
kind: "DestinationRule"
metadata:
name: "recommendationsservice"
namespace: onlineboutique
spec:
host: "recommendationsservice.onlineboutique.svc.cluster.local"
trafficPolicy:
tls:
mode: ISTIO_MUTUAL
---
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: "productcatalogservice"
namespace: onlineboutique
spec:
targets:
- name: productcatalogservice
peers:
- mtls: {}
---
apiVersion: "networking.istio.io/v1alpha3"
kind: "DestinationRule"
metadata:
name: "productcatalogservice"
namespace: onlineboutique
spec:
host: "productcatalogservice.onlineboutique.svc.cluster.local"
trafficPolicy:
tls:
mode: ISTIO_MUTUAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment