Skip to content

Instantly share code, notes, and snippets.

@stvdilln
Last active February 13, 2020 20:23
Show Gist options
  • Save stvdilln/eca5de751bd076e9a567b7779a0088fe to your computer and use it in GitHub Desktop.
Save stvdilln/eca5de751bd076e9a567b7779a0088fe to your computer and use it in GitHub Desktop.
kubectl apply -f - << EOF
#
# This mapping maps to the sidecar-proxy
# so that Ambassador can do mTLS with Consul
---
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: demo-helloworld
spec:
prefix: /helloworld/
service: demo-helloworld-sidecar-proxy
resolver: consul-dc1
tls: ambassador-consul
load_balancer:
policy: round_robin
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment