Deploy Nagios on Kubernetes failed serveral times

Hello everyone, I tries this task serveral times each time it gives me unauthorized and bad gateway
here is the manifest file:

kind: Deployment
metadata:
  name: nagios-deployment
  labels:
    app: nagios
spec:
  replicas: 1 
  selector:
    matchLabels:
      app: nagios
  template:
    metadata:
      labels:
        app: nagios
    spec:
      containers:
      - name: nagios-container
        image: jasonrivers/nagios
---
apiVersion: v1
kind: Service
metadata:
  name: nagios-service
spec:
  type: NodePort
  ports:
  - port:80
    targetPort: 80
    nodePort: 30008
    protocol: TCP
    name: http
  selector:
    app: nagios

and here a screenshots from the app deployed



and here the logs. for the pod

have you check the index file existing in the container ? . Please check that

@markt but it is not required to change it

index.php is it correct or error

@markt it only gives me 401 in access.logs for apache2 but there is not synatx error in index.html

have you check the services is it listening to correct port

@Sabreen Hey
I noticed when you try curl, you put the username with X… not x…
That`s why it says you are not authorised