Skip to content

Commit

Permalink
OPCT-257: Doc - remove machineset option in dedicated node section (#89)
Browse files Browse the repository at this point in the history
Remove form the user guide the ambiguous instruction to setup dedicated
node as we are requiring an agnostic installation, and providing an
option to use MachineSet, but MAPI isn't available in agnostic
installations/platform type None.

This option can be valid when we'll create different guides. Currently
the "User Guide" is very specific for VCSP requirements. The intention
of #88 is to improve it, but we don't have ETA yet.
  • Loading branch information
mtulio committed Oct 17, 2023
1 parent fb7164a commit eb0fb93
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions docs/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,34 +92,17 @@ The `Dedicated Node` is a regular worker with additional label and taints to run

The following requirements must be satisfied:

1. Choose one node with at least 8GiB of RAM and 4 vCPU
1. Choose one node with at least 8GiB of RAM and 4 CPU
2. Label node with `node-role.kubernetes.io/tests=""` (conformance-related pods will schedule to dedicated node)
3. Taint node with `node-role.kubernetes.io/tests="":NoSchedule` (prevent other pods from running on dedicated node)

There are two options to accomplish this type of setup:

##### Option A: Command Line
Example setting up the dedicated node:

```shell
oc label node <node_name> node-role.kubernetes.io/tests=""
oc adm taint node <node_name> node-role.kubernetes.io/tests="":NoSchedule
```

##### Option B: Machine Set

If you have support for OpenShift's Machine API then you can create a new `MachineSet` to configure the labels and taints. See [OpenShift documentation](https://docs.openshift.com/container-platform/latest/machine_management/creating-infrastructure-machinesets.html#binding-infra-node-workloads-using-taints-tolerations_creating-infrastructure-machinesets) on how to configure a new `MachineSet`. Note that at the time of conformance testing, OpenShift's product documentation may not mention your infrastructure provider yet!

Here is a `MachineSet` YAML snippet on how to configure the label and taint as well:

```yaml
metadata:
labels:
node-role.kubernetes.io/tests: ""
taints:
- key: node-role.kubernetes.io/tests
effect: NoSchedule
```

#### Setup MachineConfigPool for upgrade tests <a name="standard-env-setup-mcp"></a>

**Note**: The `MachineConfigPool` should be created only when the OPCT execution mode (`--mode`) is `upgrade`. If you are not running upgrade tests, please skip this section.
Expand Down

0 comments on commit eb0fb93

Please sign in to comment.