i'm noob on Kubernetes. I've configured Kube successfully on my Raspberry pi4b, using kubeadm. I created my first deployment using demo image that expose a simple page with some info and if I logs the pod it says that it listen correctly to the port 8080.
After installing nginx-ingress-controller (status is running) with helm following this https://limpygnome.com/2019/09/21/raspberry-pi-kubernetes-cluster/, I've created a service that points to deployment and an ingress as tutorial explains, but the host that I specified into that ingress is not reachable. Status is running for every pod but I don't understand how to fix it.
I don't know if the problem is the ingress-controller, the ingress or something else.
Here are my yaml:
---
apiVersion: v1
kind: Namespace
metadata:
name: hello
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: hello-world
name: hello-world-deploy
namespace: hello
spec:
replicas: 1
selector:
matchLabels:
app: hello-world
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: hello-world
spec:
containers:
# - image: docker:stable-dind
- image: pmorjan/demo:latest
name: hello-world
securityContext:
privileged: true
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
labels:
app: hello-world
name: hello-world-service
annotations:
metallb.universe.tf/allow-shared-ip: home-network
namespace: hello
spec:
ports:
- name: http
port: 80
targetPort: 8080
selector:
app: hello-world
sessionAffinity: None
type: LoadBalancer
loadBalancerIP: 192.168.1.241
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: hello-world-ingress
namespace: hello
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: ciao.mirco.com
http:
paths:
- path: /hello
backend:
serviceName: hello-world-service
servicePort: 80
Thanks for your help