Skip to content

Instantly share code, notes, and snippets.

@manekinekko
Created October 29, 2018 16:44
Show Gist options
  • Save manekinekko/6552a87a5e497cbb7e1ac39a0a011b9c to your computer and use it in GitHub Desktop.
Save manekinekko/6552a87a5e497cbb7e1ac39a0a011b9c to your computer and use it in GitHub Desktop.
Google Cloud Build config file for xlayers.app (CD) — kubernetes.ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-_SHORT_SHA_
annotations:
kubernetes.io/ingress.class: "nginx"
# make sure the controller redirects (301) to HTTPS
ingress.kubernetes.io/ssl-redirect: "true"
nginx.org/hsts: "true"
nginx.org/hsts-include-subdomains: "true"
# will check the TLS configuration and make sure that the specified secret:
# - Exists and contains a valid private/public key pair;
# - The certificate is not expired;
# - The certificate covers all domain names specified in the ingress config.
kubernetes.io/tls-acme: "true"
spec:
rules:
- host: xlayers-_SHORT_SHA_.angular.run
http:
paths:
- path: /
backend:
serviceName: xlayers-_SHORT_SHA_
servicePort: 80
tls:
- secretName: nginx-ingress-nginx-secret
hosts:
- '*.angular.run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment