Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGMT-14374: update day2 master docs #5335

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/user-guide/day2-master/411-healthy.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ spec:
namespace: openshift-machine-api
```

Apply those changes using `oc apply -f <filename>`

### Add Machine object

In the CR below you need to use the BMH's name from above in the `.metadata.annotations`. The cluster name under `.metadata.labels` needs to be correct. You can get it by looking at the output of e.g. `oc get machine -A`. The `.metadata.name` does not have to be the same as the name of BMH above, but for simplicity you can use the same name.
Expand Down Expand Up @@ -122,12 +124,14 @@ spec:
name: master-user-data-managed
```

Apply those changes using `oc apply -f <filename>`

### Link BMH and Machine and Node using the magic script

We need the Machine object to have the IP of the Node in its `.status` field. This is because of how etcd-operator accepts members of the cluster. In order to achieve that, a link between BareMetalHost, Machine and Node is needed. The script below takes care of it:

```
# bash link-machine-and-node.sh custom-master3-2 extraworker-5
# bash link-machine-and-node.sh custom-master3-chocobomb extraworker-5
```

## Confirm members of etcd
Expand Down Expand Up @@ -245,7 +249,7 @@ Confirm the Machine is unhealthy:
```
[root@test1001 ~]# oc get machine -A
NAMESPACE NAME PHASE TYPE REGION ZONE AGE
openshift-machine-api custom-master3-2 Running 14h
openshift-machine-api custom-master3-chocobomb Running 14h
openshift-machine-api test-day2-1-6qv96-master-0 Failed 20h
openshift-machine-api test-day2-1-6qv96-master-1 Running 20h
openshift-machine-api test-day2-1-6qv96-master-2 Running 20h
Expand Down