Ingress Controller using Fabric8's Java library

5/23/2018

I am looking for an example with the implementation of an Ingress Resource that can work with external controllers using Fabric8. I could not find it here https://github.com/fabric8io/ in any of the repositories

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
      - path: /testpath
        backend:
          serviceName: test
          servicePort: 80

Is there an Ingress Builder?

-- user_mda
fabric8
java
kubernetes
kubernetes-ingress

1 Answer

5/25/2018

Using fluent DSL to build Ingress Resource from https://github.com/fabric8io/kubernetes-client

new IngressBuilder()

This is what you're looking for?

-- Hrishikesh
Source: StackOverflow