Skip to content

Instantly share code, notes, and snippets.

@aespinosa
Created September 18, 2019 18:49
Show Gist options
  • Save aespinosa/c66d713a4fa57ecc4cb1eb551c50c446 to your computer and use it in GitHub Desktop.
Save aespinosa/c66d713a4fa57ecc4cb1eb551c50c446 to your computer and use it in GitHub Desktop.
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: genius
namespace: bach-system
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/browser-xss-filter: "true"
traefik.ingress.kubernetes.io/content-type-nosniff: "true"
traefik.ingress.kubernetes.io/ssl-proxy-headers: X-Forwarded-Proto:https
traefik.ingress.kubernetes.io/ssl-redirect: "true"
ingress.kubernetes.io/custom-request-headers: Strict-Transport-Security:max-age=86400
spec:
rules:
- host: genius.babka.test
http:
paths:
- path: /
backend:
serviceName: genius
servicePort: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment