Skip to content

Latest commit

 

History

History
117 lines (103 loc) · 5.54 KB

installation-complete-user-infra.adoc

File metadata and controls

117 lines (103 loc) · 5.54 KB

Completing installation on user-provisioned infrastructure

After you complete the Operator configuration, you can finish installing the cluster on infrastructure that you provide.

Prerequisites
  • Your control plane has initialized.

  • You have completed the initial Operator configuration.

Procedure
  1. Confirm that all the cluster components are online:

    $ watch -n5 oc get clusteroperators
    
    NAME                                 VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE
    authentication                       4.3.0     True        False         False      10m
    cloud-credential                     4.3.0     True        False         False      22m
    cluster-autoscaler                   4.3.0     True        False         False      21m
    console                              4.3.0     True        False         False      10m
    dns                                  4.3.0     True        False         False      21m
    image-registry                       4.3.0     True        False         False      16m
    ingress                              4.3.0     True        False         False      16m
    kube-apiserver                       4.3.0     True        False         False      19m
    kube-controller-manager              4.3.0     True        False         False      18m
    kube-scheduler                       4.3.0     True        False         False      22m
    machine-api                          4.3.0     True        False         False      22m
    machine-config                       4.3.0     True        False         False      18m
    marketplace                          4.3.0     True        False         False      18m
    monitoring                           4.3.0     True        False         False      18m
    network                              4.3.0     True        False         False      16m
    node-tuning                          4.3.0     True        False         False      21m
    openshift-apiserver                  4.3.0     True        False         False      21m
    openshift-controller-manager         4.3.0     True        False         False      17m
    openshift-samples                    4.3.0     True        False         False      14m
    operator-lifecycle-manager           4.3.0     True        False         False      21m
    operator-lifecycle-manager-catalog   4.3.0     True        False         False      21m
    service-ca                           4.3.0     True        False         False      21m
    service-catalog-apiserver            4.3.0     True        False         False      16m
    service-catalog-controller-manager   4.3.0     True        False         False      16m
    storage                              4.3.0     True        False         False      16m

    When all of the cluster Operators are AVAILABLE, you can complete the installation.

  2. Monitor for cluster completion:

    $ ./openshift-install --dir=<installation_directory> wait-for install-complete (1)
    INFO Waiting up to 30m0s for the cluster to initialize...
    1. For <installation_directory>, specify the path to the directory that you stored the installation files in.

      The command succeeds when the Cluster Version Operator finishes deploying the {product-title} cluster from Kubernetes API server.

      Important

      The Ignition config files that the installation program generates contain certificates that expire after 24 hours. You must keep the cluster running for 24 hours in a non-degraded state to ensure that the first certificate rotation has finished.

  3. Confirm that the Kubernetes API server is communicating with the Pods.

    1. To view a list of all Pods, use the following command:

      $ oc get pods --all-namespaces
      
      NAMESPACE                         NAME                                            READY   STATUS      RESTARTS   AGE
      openshift-apiserver-operator      openshift-apiserver-operator-85cb746d55-zqhs8   1/1     Running     1          9m
      openshift-apiserver               apiserver-67b9g                                 1/1     Running     0          3m
      openshift-apiserver               apiserver-ljcmx                                 1/1     Running     0          1m
      openshift-apiserver               apiserver-z25h4                                 1/1     Running     0          2m
      openshift-authentication-operator authentication-operator-69d5d8bf84-vh2n8        1/1     Running     0          5m
      ...
    2. View the logs for a Pod that is listed in the output of the previous command by using the following command:

      $ oc logs <pod_name> -n <namespace> (1)
      1. Specify the Pod name and namespace, as shown in the output of the previous command.

        If the Pod logs display, the Kubernetes API server can communicate with the cluster machines.