Skip to content

Commit

Permalink
Add TLS termination
Browse files Browse the repository at this point in the history
  • Loading branch information
kzh committed May 30, 2020
1 parent 75f9f44 commit 8127e5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion kubernetes/helm/traefik.yaml
Expand Up @@ -21,8 +21,9 @@ ports:

additionalArguments:
- "--entryPoints.web.address=:8000"
- "--entryPoints.websecure.address=:8443"
- "--entryPoints.web.http.redirections.entryPoint.to=:443"
- "--entryPoints.websecure.address=:8443"
- "--entryPoints.websecure.http.tls"
- "--accesslog"
- "--api.dashboard"
- "--api.insecure"
Expand Down
7 changes: 4 additions & 3 deletions kubernetes/resources/pong.yaml
Expand Up @@ -43,6 +43,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
cert-manager.io/cluster-issuer: letsencrypt-prod
name: pong
namespace: pong
Expand All @@ -51,10 +52,10 @@ spec:
- host: ping.kzh.dev
http:
paths:
- backend:
- path: /
backend:
serviceName: pong
servicePort: 80
path: /
servicePort: pong-http
tls:
- hosts:
- ping.kzh.dev
Expand Down

0 comments on commit 8127e5c

Please sign in to comment.