Created
October 29, 2018 16:44
-
-
Save manekinekko/6552a87a5e497cbb7e1ac39a0a011b9c to your computer and use it in GitHub Desktop.
Google Cloud Build config file for xlayers.app (CD) — kubernetes.ingress.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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