-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingresshostbased.yml
39 lines (39 loc) · 1.79 KB
/
ingresshostbased.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Ingress resource for the crud-db-app-service
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: crud-db-app-service-ingress # The name of the Ingress resource
namespace: default # The namespace where the service is running
spec:
ingressClassName: nginx # The ingress class name, specifying which controller to use
rules:
- host: krishnendu.online # The domain name that this Ingress resource should match
http:
paths:
- pathType: Prefix # The type of path matching, "Prefix" in this case
path: "/" # The path prefix to match, in this case "/"
backend:
service:
name: crud-db-app-service # The name of the cluster IP service to route traffic to
port:
number: 80 # The port number of the service to route traffic to
---
# Ingress resource for the pythondeploymentsvc service
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: python-deployment-ingress # The name of the Ingress resource
namespace: default # The namespace where the service is running
spec:
ingressClassName: nginx # The ingress class name, specifying which controller to use
rules:
- host: test.krishnendu.online # The domain name that this Ingress resource should match
http:
paths:
- pathType: Prefix # The type of path matching, "Prefix" in this case
path: "/" # The path prefix to match, in this case "/"
backend:
service:
name: pythondeploymentsvc # The name of the cluster IP service to route traffic to
port:
number: 8080 # The port number of the service to route traffic to