Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Last active October 28, 2020 04:04
Show Gist options
  • Save onefoursix/d29e25e6c3ace4950bd16143dfc2433c to your computer and use it in GitHub Desktop.
Save onefoursix/d29e25e6c3ace4950bd16143dfc2433c to your computer and use it in GitHub Desktop.
nginx-ingress.yaml that routes to nginx NodePort Service
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-ingress
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host:
http:
paths:
- path: /
backend:
serviceName: nginx
servicePort: 31901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment