Article Directory
In OpenShift 4 supplied by Ingress Operator (clusteroperator called ingress of) the Kubernetes of Ingress Controller Object (default named default ingresscontroller) and maintain its life cycle, if the default is ingresscontroller be deleted, Ingress Operator will automatically rebuild the new ingresscontroller instance of an object. The Ingress Operator OpenShift may be supplied to one or more of Ingress Controller based HAProxy implemented external traffic routing stack requests.
Route functional differences Kubernetes default Igress and OpenShift to achieve the following:
The default view is named ingress of clusteroperator
$ oc get clusteroperators ingress
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE
ingress 4.2.8 True False False 21d
The default view is named default ingresscontroller
$ oc get ingresscontroller -n openshift-ingress-operator
NAME AGE
default 21d
$ oc describe ingresscontroller/default -n openshift-ingress-operator
Name: default
Namespace: openshift-ingress-operator
Labels: <none>
Annotations: <none>
API Version: operator.openshift.io/v1
Kind: IngressController
Metadata:
Finalizers:
ingresscontroller.operator.openshift.io/finalizer-ingresscontroller
Generation: 2
Resource Version: 24859
Spec:
Replicas: 1
Status:
Available Replicas: 1
Domain: apps-crc.testing
Endpoint Publishing Strategy:
Type: HostNetwork
Selector: ingresscontroller.operator.openshift.io/deployment-ingresscontroller=default
ingresscontroller expand the number of instances of default
$ oc patch ingresscontroller/default --patch '{"spec":{"replicas": 3}}' --type=merge -n openshift-ingress-operator
ingresscontroller.operator.openshift.io/default patched
View Ingress Operator logs
$ oc logs deployments/ingress-operator -n openshift-ingress-operator
View running route of the project
Wherein Pod run function based on the Route of HA-Proxy.
$ oc get all -n openshift-ingress
NAME READY STATUS RESTARTS AGE
pod/router-default-746d57f6d8-p7fct 1/1 Running 2 21d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/router-internal-default ClusterIP 172.30.145.3 <none> 80/TCP,443/TCP,1936/TCP 21d
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/router-default 1/1 1 1 21d
NAME DESIRED CURRENT READY AGE
replicaset.apps/router-default-746d57f6d8 1 1 1 21d