Search code examples
javakubernetesfabric8kubernetes-ingress

Ingress Controller using Fabric8's Java library


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?


Solution

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

    new IngressBuilder()
    

    This is what you're looking for?