wolgod commented on issue #1165:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1165#issuecomment-1186874418

   1.kubectl run httpbin --image kennethreitz/httpbin --port 80
   2.
   apiVersion: v1
   kind: Service
   metadata:
     name: httpbin
   spec:
     type: ClusterIP
     clusterIP: None   # clusterIP = None
     selector:
       run: httpbin
     ports:
     - port: 80
       targetPort: 80
   3.
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: httpserver-route
   spec:
     http:
     - name: rule1
       match:
         hosts:
         - local.httpbin.org
         paths:
         - /*
       backends:
          - serviceName: httpbin
            servicePort: 80
   
   
   4. change the svc port 8080 and apisix-route 8080


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to