Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danehans/f96b98ec7b7199dec766eb6a3978f0c0 to your computer and use it in GitHub Desktop.
Save danehans/f96b98ec7b7199dec766eb6a3978f0c0 to your computer and use it in GitHub Desktop.
% openshift-install create manifests --dir=./clusters/gcp-mmasters-6
INFO Consuming "Install Config" from target directory
openshift-install create manifests --dir=./clusters/gcp-mmasters-6 1.78s user 0.06s system 18% cpu 9.806 total
% cat > ./clusters/gcp-mmasters-6/manifests/ingress-controller-01-crd.yaml <<EOF
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ingresscontrollers.operator.openshift.io
spec:
group: operator.openshift.io
names:
kind: IngressController
plural: ingresscontrollers
scope: Namespaced
subresources:
scale:
labelSelectorPath: .status.labelSelector
specReplicasPath: .spec.replicas
statusReplicasPath: .status.availableReplicas
status: {}
versions:
- name: v1
served: true
storage: true
EOF
% cat > ./clusters/gcp-mmasters-6/manifests/ingress-controller-02-namespace.yaml <<EOF
---
kind: Namespace
apiVersion: v1
metadata:
annotations:
openshift.io/node-selector: ""
name: openshift-ingress-operator
EOF
% cat > ./clusters/gcp-mmasters-6/manifests/ingress-controller-03-default.yaml <<EOF
---
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
name: default
namespace: openshift-ingress-operator
spec:
endpointPublishingStrategy:
type: LoadBalancerService
loadBalancer:
scope: Internal
EOF
% openshift-install create cluster --dir=./clusters/gcp-mmasters-6
INFO Consuming "Worker Machines" from target directory
INFO Consuming "Common Manifests" from target directory
INFO Consuming "Master Machines" from target directory
INFO Consuming "Openshift Manifests" from target directory
INFO Creating infrastructure resources...
INFO Waiting up to 30m0s for the Kubernetes API at https://api.mmasters-6.gcp.devcluster.openshift.com:6443...
INFO API v1.14.0+a18e898 up
INFO Waiting up to 30m0s for bootstrapping to complete...
INFO Destroying the bootstrap resources...
INFO Waiting up to 30m0s for the cluster at https://api.mmasters-6.gcp.devcluster.openshift.com:6443 to initialize...
INFO Waiting up to 10m0s for the openshift-console route to be created...
INFO Install complete!
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/mmasters/src/github.com/openshift/installer/clusters/gcp-mmasters-6/auth/kubeconfig'
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.mmasters-6.gcp.devcluster.openshift.com
INFO Login to the console with user: kubeadmin, password: ngsDe-wtUrX-ddzfH-qvi92
openshift-install create cluster --dir=./clusters/gcp-mmasters-6 34.09s user 2.83s system 2% cpu 27:55.21 total
% export KUBECONFIG=/home/mmasters/src/github.com/openshift/installer/clusters/gcp-mmasters-6/auth/kubeconfig
% oc get nodes
NAME STATUS ROLES AGE VERSION
mmaste-hqg24-m-0.c.openshift-gce-devel.internal Ready master 17m v1.14.0+7fe5fb087
mmaste-hqg24-m-1.c.openshift-gce-devel.internal Ready master 17m v1.14.0+7fe5fb087
mmaste-hqg24-m-2.c.openshift-gce-devel.internal Ready master 17m v1.14.0+7fe5fb087
mmaste-hqg24-w-b-42v7r.c.openshift-gce-devel.internal Ready worker 8m51s v1.14.0+7fe5fb087
mmaste-hqg24-w-c-plkfq.c.openshift-gce-devel.internal Ready worker 8m52s v1.14.0+7fe5fb087
mmaste-hqg24-w-d-5rdwl.c.openshift-gce-devel.internal Ready worker 8m50s v1.14.0+7fe5fb087
% oc -n openshift-ingress-operator get ingresscontrollers/default -o yaml
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
creationTimestamp: "2019-09-04T22:51:00Z"
finalizers:
- ingresscontroller.operator.openshift.io/finalizer-ingresscontroller
generation: 1
name: default
namespace: openshift-ingress-operator
resourceVersion: "15382"
selfLink: /apis/operator.openshift.io/v1/namespaces/openshift-ingress-operator/ingresscontrollers/default
uid: 76e8190d-cf66-11e9-b9c4-42010a000003
spec:
endpointPublishingStrategy:
loadBalancer:
scope: Internal
type: LoadBalancerService
status:
availableReplicas: 2
conditions:
- lastTransitionTime: "2019-09-04T22:57:09Z"
reason: Valid
status: "True"
type: Admitted
- lastTransitionTime: "2019-09-04T23:03:18Z"
status: "True"
type: Available
- lastTransitionTime: "2019-09-04T22:57:12Z"
message: The endpoint publishing strategy supports a managed load balancer
reason: WantedByEndpointPublishingStrategy
status: "True"
type: LoadBalancerManaged
- lastTransitionTime: "2019-09-04T22:58:00Z"
message: The LoadBalancer service is provisioned
reason: LoadBalancerProvisioned
status: "True"
type: LoadBalancerReady
- lastTransitionTime: "2019-09-04T22:57:12Z"
message: DNS management is supported and zones are specified in the cluster DNS
config.
reason: Normal
status: "True"
type: DNSManaged
- lastTransitionTime: "2019-09-04T22:58:01Z"
message: The record is provisioned in all reported zones.
reason: NoFailedZones
status: "True"
type: DNSReady
- lastTransitionTime: "2019-09-04T22:57:12Z"
status: "False"
type: Degraded
domain: apps.mmasters-6.gcp.devcluster.openshift.com
endpointPublishingStrategy:
loadBalancer:
scope: Internal
type: LoadBalancerService
selector: ingresscontroller.operator.openshift.io/deployment-ingresscontroller=default
% oc get clusteroperators
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE
authentication 4.2.0-0.ci-2019-09-04-184920 True False False 48s
cloud-credential 4.2.0-0.ci-2019-09-04-184920 True False False 15m
cluster-autoscaler 4.2.0-0.ci-2019-09-04-184920 True False False 11m
console 4.2.0-0.ci-2019-09-04-184920 True False False 3m20s
dns 4.2.0-0.ci-2019-09-04-184920 True False False 15m
image-registry 4.2.0-0.ci-2019-09-04-184920 True False False 6m2s
ingress 4.2.0-0.ci-2019-09-04-184920 True False False 5m38s
insights 4.2.0-0.ci-2019-09-04-184920 True False False 15m
kube-apiserver 4.2.0-0.ci-2019-09-04-184920 True False False 14m
kube-controller-manager 4.2.0-0.ci-2019-09-04-184920 True False False 14m
kube-scheduler 4.2.0-0.ci-2019-09-04-184920 True False False 14m
machine-api 4.2.0-0.ci-2019-09-04-184920 True False False 15m
machine-config 4.2.0-0.ci-2019-09-04-184920 True False False 15m
marketplace 4.2.0-0.ci-2019-09-04-184920 True False False 11m
monitoring 4.2.0-0.ci-2019-09-04-184920 True False False 4m41s
network 4.2.0-0.ci-2019-09-04-184920 True False False 14m
node-tuning 4.2.0-0.ci-2019-09-04-184920 True False False 12m
openshift-apiserver 4.2.0-0.ci-2019-09-04-184920 True False False 13m
openshift-controller-manager 4.2.0-0.ci-2019-09-04-184920 True False False 15m
openshift-samples 4.2.0-0.ci-2019-09-04-184920 True False False 7m38s
operator-lifecycle-manager 4.2.0-0.ci-2019-09-04-184920 True False False 15m
operator-lifecycle-manager-catalog 4.2.0-0.ci-2019-09-04-184920 True False False 15m
operator-lifecycle-manager-packageserver 4.2.0-0.ci-2019-09-04-184920 True False False 11m
service-ca 4.2.0-0.ci-2019-09-04-184920 True False False 15m
service-catalog-apiserver 4.2.0-0.ci-2019-09-04-184920 True False False 12m
service-catalog-controller-manager 4.2.0-0.ci-2019-09-04-184920 True False False 12m
storage 4.2.0-0.ci-2019-09-04-184920 True False False 11m
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment