Ingress address

12/16/2021

I have a question about applying the ingress resource below: the address of the ingress in localhost. if I want to call the ingress address from within a pod it will not work. is there a way to get an absolute address? Thanks

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: vault-ingress
  annotations:
    nginx.ingress.kubernetes.io/use-regex: "true"
spec:
 rules:
  - HTTP:
     paths:
     - path: /v1/*
       backend:
        serviceName: vault
        servicePort: 8200
-- erez
kind
kubernetes
nginx-ingress

1 Answer

12/17/2021

if I want to call the ingress address from within a pod it will not work

If your cluster has a default Ingress controller setup, you can obtain the address via kubectl get ing. If your cluster doesn't have a default Ingress controller setup, there will be no Ingress address available for you.

-- gohm'c
Source: StackOverflow