eranco74 / bootstrap-in-place-poc

Apache License 2.0
29 stars 38 forks source link

Added ignition-overrides for completing the installation by adding a … #9

Closed eranco74 closed 3 years ago

eranco74 commented 3 years ago

…service

that write the rhcos + master ignition to disk and reboot the node

omertuc commented 3 years ago

lgtm

eranco74 commented 3 years ago

Seems to work :smiley:

 17:52:24  ~  go  …  github.com  eranco74  bootstrap-in-place-poc  main  1⬆  1+  $  kubectl --kubeconfig=sno-workdir/auth/kubeconfig get nodes
NAME      STATUS   ROLES           AGE   VERSION
master1   Ready    master,worker   46m   v1.20.0+d9c52cc
 17:52:43  ~  go  …  github.com  eranco74  bootstrap-in-place-poc  main  1⬆  1+  $  kubectl --kubeconfig=sno-workdir/auth/kubeconfig get co
NAME                                       VERSION                                           AVAILABLE   PROGRESSING   DEGRADED   SINCE
authentication                             4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      6m52s
baremetal                                  4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      33m
cloud-credential                           4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      30m
cluster-autoscaler                         4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      33m
config-operator                            4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      43m
console                                    4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      6m24s
csi-snapshot-controller                    4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      25m
dns                                        4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      29m
etcd                                       4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      32m
image-registry                             4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      27m
ingress                                    4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         True       25m
insights                                   4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      28m
kube-apiserver                             4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      32m
kube-controller-manager                    4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      31m
kube-scheduler                             4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      25m
kube-storage-version-migrator              4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      27m
machine-api                                4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      33m
machine-approver                           4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      40m
machine-config                             4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      26m
marketplace                                4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      33m
monitoring                                 4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      7m55s
network                                    4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      43m
node-tuning                                4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      30m
openshift-apiserver                        4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      30m
openshift-controller-manager               4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      30m
openshift-samples                          4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      28m
operator-lifecycle-manager                 4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      37m
operator-lifecycle-manager-catalog         4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      37m
operator-lifecycle-manager-packageserver   4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      7m19s
service-ca                                 4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      42m
storage                                    4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         False      43m
 17:52:47  ~  go  …  github.com  eranco74  bootstrap-in-place-poc  main  1⬆  1+  $  kubectl --kubeconfig=sno-workdir/auth/kubeconfig get clusterversion
NAME      VERSION                                           AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb   True        False         6m24s   Cluster version is 4.7.0-0.ci.test-2021-01-19-093712-ci-ln-cvxm9pb
markmc commented 3 years ago

Let's remove this again when we start using the newer installer version with bootstrapInPlace.installationDisk in install-config

We don't want to encourage the idea that we recommend doing all sorts of crazy things with ignition overrides

romfreiman commented 3 years ago

of course. Eran just didnt get to it yet