如何使用nginx-ingress从localhost:8080访问服务?

时间:2020-01-08 11:09:55

标签: kubernetes

我想使用localhost:8080作为uri而不是minikube ip来访问pod上的nginx

  apiVersion: v1
    kind: Service
    metadata:
      name: nginx-service
    spec:
      selector:
        app: webserver
      ports:
        - port: 80
          targetPort: 80

enter image description here

enter image description here

0 个答案:

没有答案