https://gitea.krondor.fr/nox/dynhost-ovh
409
A simple cronjob to update DynHost on OVH hosting.
This repo provides a script to retrieve the public ip of an host and set a dynhost on OVH accordingly.
A docker image and a Chart is also provided for deployment on kubernetes.
You may also just use
cronto run the script.
Other versions might work but were not tested.
curl - HTTP callsdig - DNS lookupTo install the chart:
git clone [REPO_CLONE_URL] && cd dynhost-ovh
helm install [RELEASE] chart \
--set dynhost.host=[DYNHOST_HOST] \
--set dynhost.login=[DYNHOST_USERNAME] \
--set dynhost.password=[DYNHOST_PASSWORD]
Make sure to replace the
[...]accordingly.
You may also use a
values.yamlfile usinghelm install -f [FILE] ...
helm delete [RELEASE]
| Name | Description | Value |
|---|---|---|
dynhost.host* | The dynhost DNS name to update | "" |
dynhost.login* | The dynhost identifier | "" |
dynhost.password* | The dynhost password | "" |
dynhost.externalSecretName | The name of a secret containing the script's parameters to use instead of creating one | "" |
suspend | Wether to suspend the cron or not | no |
schedule | The schedule of the cronjob. Use cron syntax | 0 * * * * (every hour) |
image.repository | The docker image repository | nox404/dynhost-ovh |
image.tag | The docker image tag | 1.0.0 |
*
dynhost.host,dynhost.login,dynhost.passwordare Mandatory unless you provide an external secret withdynhost.externalSecretName.
| Name | Description | Value |
|---|---|---|
cronjobApiVersion | Use this if the cronjob api has a different version in your cluster | batch/v1beta1 |
failedJobsHistoryLimit | The number of failed jobs to keep | 1 |
successfulJobsHistoryLimit | The number of successful jobs to keep | 1 |
backoffLimit | The number of retries to attempt when the job fails | 0 |
image.pullPolicy | Image pull policy | IfNotPresent |
imagePullSecrets | Specify image pull secrets | [] |
serviceAccount.create | Wether to create a service account | true |
serviceAccount.name | Name of the service account to create and/or use | "" |
podAnnotations | Extra pod annotations | {} |
podSecurityContext | The pod security context | {} |
securityContext | The container security context | {} |
resources | Specify container resources | {} |
nodeSelector | Constrain the pod to specific nodes | {} |
tolerations | Pod tolerations | [] |
affinity | Pod affinities | {} |
The script uses environment variable as parameters.
| Name | Description | Value |
|---|---|---|
HOST | Mandatory - The dynhost DNS name to update | "" |
LOGIN | Mandatory - The dynhost identifier | "" |
PASSWORD | Mandatory - The dynhost password | "" |
git clone [REPO_CLONE_URL] && cd dynhost-ovh
docker build -f docker/Dockerfile -t [REPOSITORY]:[TAG] .
docker push [REPOSITORY]:[TAG]
Content type
Image
Digest
Size
6.7 MB
Last updated
over 4 years ago
docker pull nox404/dynhost-ovh