<p>I am using Traefik as Kubernetes Ingress and I would like to know if I can use an IP address instead of a domain name. Example:</p>
<pre><code>http://ipaddress/service1
</code></pre>
<pre><code>http://ipdadress/service2
</code></pre>
<p>My ingress configuration:</p>
<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: service1
  namespace: staging
  annotations:
    kubernetes.io/ingress.class: traefik
    traefik.frontend.rule.type: PathPrefixStrip
spec:
  rules:
  - host: mydomain.dev
    http:
      paths:
      - path: /service1
        backend:
          serviceName: service1
          servicePort: 3000
</code></pre>

cleitond
<p>Since it is a Layer 7 Load Balancer you can't use IP address directly. But if you use <a href="https://nip.io/" rel="noreferrer">nip.io</a> and for example 192-168-1-1.nip.io as your hostname it would work and you can do all the things you can regularly do with normal hostnames such as redirect app1.192-168-1-1.nip.io to app1 and 192-168-1-1.nip.io/app2 to app2 etc.</p>
