Skip to content

Commit

Permalink
Create ingress.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
akannan1087 authored Oct 31, 2024
1 parent cb5cd49 commit a7e0367
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-app-ingress
namespace: python-app-ns # Namespace where the deployment will be created
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: python-app-svc
port:
number: 80

0 comments on commit a7e0367

Please sign in to comment.