Skip to content

Instantly share code, notes, and snippets.

@Miciah
Last active September 4, 2019 22:32
Show Gist options
  • Save Miciah/431c9f18132a12475ee3463c854945d2 to your computer and use it in GitHub Desktop.
Save Miciah/431c9f18132a12475ee3463c854945d2 to your computer and use it in GitHub Desktop.
% openshift-install create manifests --dir=./clusters/gcp-mmasters-5
INFO Consuming "Install Config" from target directory
openshift-install create manifests 1.73s user 0.08s system 60% cpu 2.972 total
% cat > ./clusters/gcp-mmasters-5/manifests/ingress-controller-01-crd.yaml <<EOF
heredoc> ---
heredoc> apiVersion: apiextensions.k8s.io/v1beta1
heredoc> kind: CustomResourceDefinition
heredoc> metadata:
heredoc> name: ingresscontrollers.operator.openshift.io
heredoc> spec:
heredoc> group: operator.openshift.io
heredoc> names:
heredoc> kind: IngressController
heredoc> plural: ingresscontrollers
heredoc> scope: Namespaced
heredoc> subresources:
heredoc> scale:
heredoc> labelSelectorPath: .status.labelSelector
heredoc> specReplicasPath: .spec.replicas
heredoc> statusReplicasPath: .status.availableReplicas
heredoc> status: {}
heredoc> versions:
heredoc> - name: v1
heredoc> served: true
heredoc> storage: true
heredoc> EOF
% cat > ./clusters/gcp-mmasters-5/manifests/ingress-controller-02-namespace.yaml <<EOF kind: Namespace
heredoc> apiVersion: v1
heredoc> metadata:
heredoc> annotations:
heredoc> openshift.io/node-selector: ""
heredoc> name: openshift-ingress-operator
heredoc> EOF
% cat > ./clusters/gcp-mmasters-5/manifests/ingress-controller-03-default.yaml <<EOF
heredoc> apiVersion: operator.openshift.io/v1
heredoc> kind: IngressController
heredoc> metadata:
heredoc> name: default
heredoc> namespace: openshift-ingress-operator
heredoc> spec:
heredoc> endpointPublishingStrategy:
heredoc> type: Private
heredoc> EOF
% openshift-install create cluster --dir=./clusters/gcp-mmasters-5
INFO Consuming "Worker Machines" from target directory
INFO Consuming "Common Manifests" from target directory
INFO Consuming "Openshift Manifests" from target directory
INFO Consuming "Master Machines" from target directory
INFO Creating infrastructure resources...
INFO Waiting up to 30m0s for the Kubernetes API at https://api.mmasters-5.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-5.gcp.devcluster.openshift.com:6443 to initialize...
FATAL failed to initialize the cluster: Working towards 4.2.0-0.ci-2019-09-04-184920: 100% complete
zsh: exit 1 openshift-install create cluster
openshift-install create cluster 35.19s user 3.37s system 1% cpu 52:06.56 total
% export KUBECONFIG=/home/mmasters/src/github.com/openshift/installer/clusters/gcp-mmasters-5/auth/kubeconfig
% oc get nodes
NAME STATUS ROLES AGE VERSION
mmaste-j7cq9-m-0.c.openshift-gce-devel.internal Ready master 47m v1.14.0+7fe5fb087
mmaste-j7cq9-m-1.c.openshift-gce-devel.internal Ready master 47m v1.14.0+7fe5fb087
mmaste-j7cq9-m-2.c.openshift-gce-devel.internal Ready master 47m v1.14.0+7fe5fb087
mmaste-j7cq9-w-b-f5z54.c.openshift-gce-devel.internal Ready worker 39m v1.14.0+7fe5fb087
mmaste-j7cq9-w-c-6p7f9.c.openshift-gce-devel.internal Ready worker 39m v1.14.0+7fe5fb087
mmaste-j7cq9-w-d-nk2vm.c.openshift-gce-devel.internal Ready worker 39m 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-04T21:35:39Z"
finalizers:
- ingresscontroller.operator.openshift.io/finalizer-ingresscontroller
generation: 1
name: default
namespace: openshift-ingress-operator
resourceVersion: "14732"
selfLink: /apis/operator.openshift.io/v1/namespaces/openshift-ingress-operator/ingresscontrollers/default
uid: f050b88c-cf5b-11e9-9ead-42010a000004
spec:
endpointPublishingStrategy:
type: Private
status:
availableReplicas: 2
conditions:
- lastTransitionTime: "2019-09-04T21:42:11Z"
reason: Valid
status: "True"
type: Admitted
- lastTransitionTime: "2019-09-04T21:47:29Z"
status: "True"
type: Available
- lastTransitionTime: "2019-09-04T21:42:16Z"
message: The endpoint publishing strategy does not support a load balancer
reason: UnsupportedEndpointPublishingStrategy
status: "False"
type: LoadBalancerManaged
- lastTransitionTime: "2019-09-04T21:42:16Z"
message: The endpoint publishing strategy doesn't support DNS management.
reason: UnsupportedEndpointPublishingStrategy
status: "False"
type: DNSManaged
- lastTransitionTime: "2019-09-04T21:42:16Z"
status: "False"
type: Degraded
domain: apps.mmasters-5.gcp.devcluster.openshift.com
endpointPublishingStrategy:
type: Private
selector: ingresscontroller.operator.openshift.io/deployment-ingresscontroller=default
% oc get clusteroperators
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE
authentication Unknown Unknown True 43m
cloud-credential 4.2.0-0.ci-2019-09-04-184920 True False False 46m
cluster-autoscaler 4.2.0-0.ci-2019-09-04-184920 True False False 41m
console 4.2.0-0.ci-2019-09-04-184920 False True False 37m
dns 4.2.0-0.ci-2019-09-04-184920 True False False 46m
image-registry 4.2.0-0.ci-2019-09-04-184920 True False False 36m
ingress 4.2.0-0.ci-2019-09-04-184920 True False False 37m
insights 4.2.0-0.ci-2019-09-04-184920 True False False 46m
kube-apiserver 4.2.0-0.ci-2019-09-04-184920 True False False 45m
kube-controller-manager 4.2.0-0.ci-2019-09-04-184920 True False False 44m
kube-scheduler 4.2.0-0.ci-2019-09-04-184920 True False False 44m
machine-api 4.2.0-0.ci-2019-09-04-184920 True False False 46m
machine-config 4.2.0-0.ci-2019-09-04-184920 True False False 46m
marketplace 4.2.0-0.ci-2019-09-04-184920 True False False 41m
monitoring 4.2.0-0.ci-2019-09-04-184920 True False False 34m
network 4.2.0-0.ci-2019-09-04-184920 True False False 45m
node-tuning 4.2.0-0.ci-2019-09-04-184920 True False False 43m
openshift-apiserver 4.2.0-0.ci-2019-09-04-184920 True False False 43m
openshift-controller-manager 4.2.0-0.ci-2019-09-04-184920 True False False 43m
openshift-samples 4.2.0-0.ci-2019-09-04-184920 True False False 41m
operator-lifecycle-manager 4.2.0-0.ci-2019-09-04-184920 True False False 46m
operator-lifecycle-manager-catalog 4.2.0-0.ci-2019-09-04-184920 True False False 46m
operator-lifecycle-manager-packageserver 4.2.0-0.ci-2019-09-04-184920 True False False 43m
service-ca 4.2.0-0.ci-2019-09-04-184920 True False False 46m
service-catalog-apiserver 4.2.0-0.ci-2019-09-04-184920 True False False 43m
service-catalog-controller-manager 4.2.0-0.ci-2019-09-04-184920 True False False 43m
storage 4.2.0-0.ci-2019-09-04-184920 True False False 42m
% oc get clusteroperators/{authentication,console} -o yaml
apiVersion: v1
items:
- apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
creationTimestamp: "2019-09-04T21:40:48Z"
generation: 1
name: authentication
resourceVersion: "15379"
selfLink: /apis/config.openshift.io/v1/clusteroperators/authentication
uid: a8b9db6e-cf5c-11e9-b39f-42010a000002
spec: {}
status:
conditions:
- lastTransitionTime: "2019-09-04T21:49:27Z"
message: 'RouteHealthDegraded: failed to GET route: dial tcp: lookup oauth-openshift.apps.mmasters-5.gcp.devcluster.openshift.com
on 172.30.0.10:53: no such host'
reason: RouteHealthDegradedFailedGet
status: "True"
type: Degraded
- lastTransitionTime: "2019-09-04T21:40:48Z"
reason: NoData
status: Unknown
type: Progressing
- lastTransitionTime: "2019-09-04T21:40:48Z"
reason: NoData
status: Unknown
type: Available
- lastTransitionTime: "2019-09-04T21:40:49Z"
reason: AsExpected
status: "True"
type: Upgradeable
extension: null
relatedObjects:
- group: operator.openshift.io
name: cluster
resource: authentications
- group: config.openshift.io
name: cluster
resource: authentications
- group: config.openshift.io
name: cluster
resource: infrastructures
- group: config.openshift.io
name: cluster
resource: oauths
- group: ""
name: openshift-config
resource: namespaces
- group: ""
name: openshift-config-managed
resource: namespaces
- group: ""
name: openshift-authentication
resource: namespaces
- group: ""
name: openshift-authentication-operator
resource: namespaces
- apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
creationTimestamp: "2019-09-04T21:41:57Z"
generation: 1
name: console
resourceVersion: "14003"
selfLink: /apis/config.openshift.io/v1/clusteroperators/console
uid: d1b8762f-cf5c-11e9-878a-42010a000005
spec: {}
status:
conditions:
- lastTransitionTime: "2019-09-04T21:41:57Z"
reason: AsExpected
status: "False"
type: Degraded
- lastTransitionTime: "2019-09-04T21:41:58Z"
message: 'SyncLoopRefreshProgressing: Working toward version 4.2.0-0.ci-2019-09-04-184920'
reason: SyncLoopRefreshProgressingInProgress
status: "True"
type: Progressing
- lastTransitionTime: "2019-09-04T21:47:13Z"
message: 'DeploymentAvailable: 0 pods available for console deployment'
reason: DeploymentAvailableInsufficientReplicas
status: "False"
type: Available
- lastTransitionTime: "2019-09-04T21:41:57Z"
reason: AsExpected
status: "True"
type: Upgradeable
extension: null
relatedObjects:
- group: operator.openshift.io
name: cluster
resource: consoles
- group: config.openshift.io
name: cluster
resource: consoles
- group: config.openshift.io
name: cluster
resource: infrastructures
- group: config.openshift.io
name: cluster
resource: proxies
- group: oauth.openshift.io
name: console
resource: oauthclients
- group: ""
name: openshift-console-operator
resource: namespaces
- group: ""
name: openshift-console
resource: namespaces
- group: ""
name: console-public
namespace: openshift-config-managed
resource: configmaps
versions:
- name: operator
version: 4.2.0-0.ci-2019-09-04-184920
kind: List
metadata:
resourceVersion: ""
selfLink: ""
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment