openshift route fails with DNS_PROBE_FINISHED_NXDOMAIN

2/23/2022

I have a local minishift cluster and i configured a simple web app with a service for it. The service seems to be connected with the pod and send traffic, but when i try to create a route to expose the app, it fails with the error above. I tried many different solutions but nothings seems to work.

Deployment.yaml:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello-openshift
spec:
  replicas: 1
  selector:
    matchLabels:
      app: hello-openshift
  template:
    metadata:
      labels:
        app: hello-openshift
    spec:
      containers:
      - name: hello-openshift
        image: openshift/hello-openshift:latest
        ports:
        - containerPort: 8080

Here is the service.yaml:

apiVersion: v1
kind: Service
metadata:
  name: automationportal-service
  labels:
    {{- include "automation-portal.labels" . | nindent 4 }}
spec:
  type: clusterIP
  ports:
    - port: 80
      targetPort: 8080
      protocol: TCP
      name: http
  selector:
    app: hello-openshift

route.yaml:

apiVersion: route.openshift.io/v1	
kind: Route
metadata:
  name: automationportal-route
  labels:
  annotations:
spec:
  host: 
  port: 
    targetPort: http
  to:
    kind: Service
    name: automationportal-service
-- DlekaShelHaHaim
kubernetes
kubernetes-helm
kubernetes-ingress
minishift
openshift

0 Answers