Scale up or down your OVH MKS nodepool.
Rely on the OVH API through the OVH Node.js SDK to manage your Kubernetes clusters. It allows you to scale the number of nodes in a specific nodepool of an OVH Managed Kubernetes Service (MKS) cluster. This action supports both Application Key/Application Secret and OAuth2 authentication methods.
- uses: hoverkraft-tech/github-action-ovh-mks-scaling@d9f205d85554633240217794cd535ecd0f84854c # 0.3.0
with:
# The OVH endpoint to use.
# See the [available endpoints](https://github.com/ovh/node-ovh/blob/master/lib/endpoints.js) list.
endpoint: ""
# The OVH application key
application-key: ""
# The OVH application secret
application-secret: ""
# The OVH consumer key
consumer-key: ""
# The OAuth2 client ID
client-id: ""
# The OAuth2 client secret
client-secret: ""
# The project ID of the OVH MKS project
# This input is required.
project-id: ""
# The ID of the OVH MKS cluster
# This input is required.
cluster-id: ""
# The ID of the OVH MKS nodepool
# This input is required.
nodepool-id: ""
# The number of nodes to scale to
# This input is required.
# Default: `1`
number-of-nodes: "1"You need first to :
- Create an application in OVH API at : https://www.ovh.com/auth/api/createApp
- Export env vars
OVH_APPLICATION_KEYandOVH_APPLICATION_SECRET - And to run the script
scripts/create-ovh-creds.sh - note the consumer key
- click on the link for credentials validation
export OVH_APPLICATION_KEY="your_application_key"
export OVH_APPLICATION_SECRET="your_application_secret"
bash scripts/create-ovh-creds.sh| Input | Description | Required | Default |
|---|---|---|---|
endpoint |
The OVH endpoint to use. | false | - |
| See the available endpoints list. | |||
application-key |
The OVH application key | false | - |
application-secret |
The OVH application secret | false | - |
consumer-key |
The OVH consumer key | false | - |
client-id |
The OAuth2 client ID | false | - |
client-secret |
The OAuth2 client secret | false | - |
project-id |
The project ID of the OVH MKS project | true | - |
cluster-id |
The ID of the OVH MKS cluster | true | - |
nodepool-id |
The ID of the OVH MKS nodepool | true | - |
number-of-nodes |
The number of nodes to scale to | true | 1 |
| Output | Description |
|---|---|
response |
The response of the server |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2025 hoverkraft
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.