kubernetes 404 not found when i try to access to an url

10/10/2018

I've an application ( CAS ) who's running on kubernets or almost :) i 've set the pod, deployment, pv, pvc, when i try to get the https://xxxx.corp/mdev1/auth i'get an notification error from nginx 404 Not Found?? So i created an ingress file to open the port 8443 without success :(

Do you have an idea where i can make a mistake ??

i've set the ports on Deployment.yaml file

   ports:
        - containerPort: 8443

ingress.yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ds-mg-cas-ingress
  namespace: ds-svc
spec:
  rules:
  - host: mode-xxx.corp
    http:
      paths:
      - backend:
          serviceName:   ds-mg-cas-se
          servicePort:   8443
        path: /

did i did that on the right file or ..

services.yaml

apiVersion: v1
kind: Service
metadata:
  name: ds-mg-cas-se
  namespace: ds-svc
spec:
  type: NodePort
  selector:
    app: ds-mg-cas
  ports:
  - name: https-cas
    protocol: TCP
    port: 8443
    targetPort: 8443
-- morla
google-kubernetes-engine
kubernetes
kubernetes-ingress

0 Answers