Skip to content

Instantly share code, notes, and snippets.

@junoteam
Last active April 13, 2020 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junoteam/7729bec1317ecd2250074ac20552d134 to your computer and use it in GitHub Desktop.
Save junoteam/7729bec1317ecd2250074ac20552d134 to your computer and use it in GitHub Desktop.
web-app-ingress.yml
# 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