christianlempa-boilerplates/kubernetes/templates/ingress.yaml

18 lines
475 B
YAML
Raw Normal View History

2022-04-14 09:29:36 +02:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress # Name of the ingress object
namespace: namespace # Name of the namespace
spec:
rules:
- host: "your-hostname.com" # Your hostname
http:
paths:
# Path-based routing settings:
- path: /
pathType: Prefix
backend:
service:
name: your-service-name # The name of the service
port:
number: 80 # Service Portnumber