Last active
April 13, 2020 11:29
-
-
Save junoteam/7729bec1317ecd2250074ac20552d134 to your computer and use it in GitHub Desktop.
web-app-ingress.yml
This file contains 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
# webapp-ingress | |
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: webapp | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
# # type of authentication | |
# nginx.ingress.kubernetes.io/auth-type: basic | |
# # name of the secret that contains the user/password definitions | |
# nginx.ingress.kubernetes.io/auth-secret: basic-auth | |
# # message to display with an appropriate context why the authentication is required | |
# nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - mothes' | |
spec: | |
rules: | |
- host: webapp.linuxspace.org | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: simple-web-app-svc | |
servicePort: 8181 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment