Skip to content

Instantly share code, notes, and snippets.

@initcron
Created January 28, 2023 03:57
Show Gist options
  • Save initcron/469b8d975c1c41a8423eb19ee2fd9c0f to your computer and use it in GitHub Desktop.
Save initcron/469b8d975c1c41a8423eb19ee2fd9c0f to your computer and use it in GitHub Desktop.
Ingress for Web App
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
namespace: instavote
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip
spec:
rules:
- host: web.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nginx
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment