Hi
I am using Kubernetes with Azure cloud, I have once application deployed along with service and ingress configured in helm file,
Deployment is working fine, when I access pod IP and port, application is working fine.
But when I try to access application through Public IP, it is not accessable.
Please let me know, what would be wrong in my config.
Below is my YAML file.
apiVersion: apps/v1
kind: Deployment
metadata:
name: duckdb-bundle
spec:
selector:
matchLabels:
app.kubernetes.io/name: app-duckdb-bundle
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: app-duckdb-bundle
spec:
containers:
- image: buntha/duckdb-bundle:0.0.3
imagePullPolicy: Always
name: duckdb-bundle
ports: - containerPort: 8088
apiVersion: v1
kind: Service
metadata:
name: duckdb-bundle
spec:
ports:
- port: 8088
targetPort: 8088
protocol: TCP
type: LoadBalancer
selector:
app.kubernetes.io/name: app-duckdb-bundle
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths: - path: /app
pathType: Prefix
backend:
service:
name: duckdb-bundle
port:
number: 8088