Skip to content

Commit

Permalink
fix(occm): Empty nodeSelector by default
Browse files Browse the repository at this point in the history
Signed-off-by: babykart <babykart@gmail.com>
  • Loading branch information
babykart committed Apr 26, 2024
1 parent b6d73d6 commit 68ec012
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions charts/openstack-cloud-controller-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ tolerations:
effect: NoSchedule
```

## NodeSelector

To deploy OCCM to control-plane nodes only, adjust the nodeSelectors in the chart:

```yaml
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
```

## Unsupported configurations

- The chart does not support the mounting of custom `clouds.yaml` files. Therefore, the following config values in the `[Global]` section won’t have any effect:
Expand Down
7 changes: 4 additions & 3 deletions charts/openstack-cloud-controller-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ livenessProbe: {}
# Set readinessProbe in the same way like livenessProbe
readinessProbe: {}

# Set nodeSelector where the controller should run, i.e. controlplane nodes
nodeSelector:
node-role.kubernetes.io/control-plane: ""
# Set nodeSelector where the controller should run.
nodeSelector: {}
# i.e. controlplane nodes
# node-role.kubernetes.io/control-plane: "true"

# Set tolerations for nodes where the controller should run, i.e. node
# should be uninitialized, controlplane...
Expand Down

0 comments on commit 68ec012

Please sign in to comment.