Skip to content

Instantly share code, notes, and snippets.

@initcron
Created September 3, 2024 05:02
Show Gist options
  • Save initcron/a92dd6522592ec132aa1eb14fed58340 to your computer and use it in GitHub Desktop.
Save initcron/a92dd6522592ec132aa1eb14fed58340 to your computer and use it in GitHub Desktop.
Ingress Rule for vote.example.com to point to vote service in instavote namespace.
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: vote
namespace: instavote
spec:
ingressClassName: nginx
rules:
- host: vote.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: vote
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment