Skip to content

Instantly share code, notes, and snippets.

@avillela
Created October 4, 2020 04:24
Show Gist options
  • Save avillela/d88d8bfc117e6451ac4f488531a034de to your computer and use it in GitHub Desktop.
Save avillela/d88d8bfc117e6451ac4f488531a034de to your computer and use it in GitHub Desktop.
Ambassador Service Configuration for TLS
---
apiVersion: v1
kind: Service
metadata:
name: ambassador
namespace: ambassador
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v1
kind: Module
name: tls
config:
server:
enabled: True
redirect_cleartext_from: 8080
secret: ambassador-certs
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
- name: https
protocol: TCP
port: 443
targetPort: 8443
selector:
service: ambassador
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment