File tree 1 file changed +61
-0
lines changed
1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change @@ -833,3 +833,64 @@ $ oc expose service/<name> --hostname="m.api.openshift.org"
833
833
$ oc expose service/<name> --hostname="kates.net"
834
834
$ oc expose service/<name> --hostname="api.kates.net"
835
835
----
836
+
837
+ [[architecture-routes-support-for-ingress]]
838
+ == Support for Kubernetes ingress objects
839
+
840
+ The Kubernetes ingress object is a configuration object determining how inbound
841
+ connections reach internal services. {product-title} has support for these
842
+ objects, starting in {product-title} version 3.10, using a ingress controller configuration file.
843
+
844
+ This controller watches ingress objects and creates one or more routes to
845
+ satisfy the conditions of the ingress object. The controller is also responsible
846
+ for keeping the ingress object and generated route objects synchronized. This
847
+ includes giving generated routes permissions on the secrets associated with the
848
+ ingress object.
849
+
850
+ For example, an ingress object configured as:
851
+
852
+ [source, yaml]
853
+ ----
854
+ kind: Ingress
855
+ apiVersion: extensions/v1beta1
856
+ metadata:
857
+ name: test
858
+ spec:
859
+ rules:
860
+ - host: test.com
861
+ http:
862
+ paths:
863
+ - path: /test
864
+ backend:
865
+ serviceName: test-1
866
+ servicePort: 80
867
+ ----
868
+
869
+ generates the following route object:
870
+
871
+ [source, yaml]
872
+ ----
873
+ kind: Route
874
+ apiVersion: route.openshift.io/v1
875
+ metadata:
876
+ name: test-a34th <1>
877
+ ownerReferences:
878
+ - apiVersion: extensions/v1beta1
879
+ kind: Ingress
880
+ name: test
881
+ controller: true
882
+ spec:
883
+ host: test.com
884
+ path: /test
885
+ to:
886
+ name: test-1
887
+ port:
888
+ targetPort: 80
889
+ ----
890
+ <1> The name is generated by the route objects, with the ingress name as a prefix.
891
+
892
+ [NOTE]
893
+ ====
894
+ In order for a route to be created, an ingress object must have a host,
895
+ service, and path.
896
+ ====
You can’t perform that action at this time.
0 commit comments