Skip to content

Instantly share code, notes, and snippets.

@liveaverage
Last active June 25, 2020 01:15
Show Gist options
  • Save liveaverage/90b28621b8f56edceef85289fe945832 to your computer and use it in GitHub Desktop.
Save liveaverage/90b28621b8f56edceef85289fe945832 to your computer and use it in GitHub Desktop.
OCP 4.5 vSphere IPI Install
# Grab your vSphere cert and ensure it's trusted
openssl s_client -connect vcsa.gxr.me:443 -showcerts
# Copy BEGIN/END Certificate contenst to /etc/pki/tls/certs/vsphere.pem
# Prior to OpenShift cluster install, identify base domain and cluster name, reserve (2) IPs and create (2) DNS A records:
# - 192.168.20.99 (api.gnv.int.shifti.us)
# - 192.168.20.98 (*.apps.gnv.int.shifti.us)
[jrmorgan@localhost Documents]$ ./openshift-install create cluster
? SSH Public Key /home/jrmorgan/.ssh/lab.pub
? Platform vsphere
? vCenter vcsa.gxr.me
? Username [email protected]
? Password [? for help] **************
INFO Connecting to vCenter vcsa.gxr.me
INFO Defaulting to only available datacenter: GXR
INFO Defaulting to only available cluster: GXR-Primary
? Default Datastore esx2_vms_nvme1
? Network VM_vlan20
? Virtual IP Address for API 192.168.20.99
? Virtual IP Address for Ingress 192.168.20.98
? Base Domain int.shifti.us
? Cluster Name gnv
? Pull Secret [? for help] ********************************
INFO Obtaining RHCOS image file from 'https://releases-art-rhcos.svc.ci.openshift.org/art/storage/releases/rhcos-4.5/45.81.202005200134-0/x86_64/rhcos-45.81.202005200134-0-vmware.x86_64.ova?sha256=2166966efba40c32ed845498cc7d8692ce2efd7c1fb307635df4b04633c27df0'
INFO Creating infrastructure resources...
INFO Waiting up to 20m0s for the Kubernetes API at https://api.gnv.int.shifti.us:6443...
INFO API v1.18.3+a637491 up
INFO Waiting up to 40m0s for bootstrapping to complete...
E0624 10:59:21.388949 447334 reflector.go:307] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.ConfigMap: Get https://api.gnv.int.shifti.us:6443/api/v1/namespaces/kube-system/configmaps?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dbootstrap&resourceVersion=3704&timeoutSeconds=379&watch=true: dial tcp 192.168.20.99:6443: connect: connection refused
E0624 10:59:22.434851 447334 reflector.go:307] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.ConfigMap: Get https://api.gnv.int.shifti.us:6443/api/v1/namespaces/kube-system/configmaps?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dbootstrap&resourceVersion=3704&timeoutSeconds=439&watch=true: dial tcp 192.168.20.99:6443: connect: connection refused
E0624 10:59:23.481834 447334 reflector.go:307] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.ConfigMap: Get https://api.gnv.int.shifti.us:6443/api/v1/namespaces/kube-system/configmaps?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dbootstrap&resourceVersion=3704&timeoutSeconds=552&watch=true: dial tcp 192.168.20.99:6443: connect: connection refused
INFO Destroying the bootstrap resources...
INFO Waiting up to 30m0s for the cluster at https://api.gnv.int.shifti.us:6443 to initialize...
INFO Cluster operator authentication Progressing is True with _WellKnownNotReady: Progressing: got '404 Not Found' status while trying to GET the OAuth well-known https://192.168.20.75:6443/.well-known/oauth-authorization-server endpoint data
INFO Cluster operator authentication Available is False with :
INFO Cluster operator insights Disabled is False with :
INFO Cluster operator kube-apiserver Progressing is True with NodeInstaller: NodeInstallerProgressing: 1 nodes are at revision 4; 2 nodes are at revision 5
INFO Cluster operator kube-storage-version-migrator Available is False with _NoMigratorPod: Available: deployment/migrator.openshift-kube-storage-version-migrator: no replicas are available
FATAL failed to initialize the cluster: Working towards 4.5.0-0.nightly-2020-06-05-214616: 87% complete
## Although my deployment timedout, everything still came up fine:
export KUBECONFIG="$(pwd)/auth/kubeconfig"
oc get nodes
[jrmorgan@localhost auth]$ oc get nodes
NAME STATUS ROLES AGE VERSION
gnv-rgswj-master-0 Ready master 78m v1.18.3+a637491
gnv-rgswj-master-1 Ready master 78m v1.18.3+a637491
gnv-rgswj-master-2 Ready master 78m v1.18.3+a637491
gnv-rgswj-worker-wq8sd Ready worker 50m v1.18.3+a637491
@liveaverage
Copy link
Author

scrnli_6_24_2020_9-13-09 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment