Skip to content
Snippets Groups Projects
Unverified Commit 1f034539 authored by Billy Tobon's avatar Billy Tobon Committed by GitHub
Browse files

docs: Adds example using ConfigMap for config.json in kubernetes (#7437)

parent a41aefc2
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,62 @@ stringData: ...@@ -83,6 +83,62 @@ stringData:
RENOVATE_TOKEN: 'your-github-enterprise-renovate-user-token' RENOVATE_TOKEN: 'your-github-enterprise-renovate-user-token'
``` ```
A `config.js` file can be added to the manifest using a `ConfigMap` as shown in the following example (using a "dry run" in github.com)
```yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: renovate-config
data:
config.json: |-
{
"logLevel" : "debug",
"repositories": ["orgname/repo","username/repo"],
"dryRun" : "true"
}
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: renovate-bot
spec:
schedule: '@hourly'
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- image: renovate/renovate:23.22.1
name: renovate-bot
env: # For illustration purposes, please user secrets.
- name: RENOVATE_PLATFORM
value: 'github'
- name: RENOVATE_TOKEN
value: 'some-token'
- name: RENOVATE_AUTODISCOVER
value: 'false'
- name: RENOVATE_BASE_DIR
value: '/tmp/renovate/'
- name: RENOVATE_CONFIG_FILE
value: '/opt/renovate/config.json'
volumeMounts:
- name: config-volume
mountPath: /opt/renovate/
- name: work-volume
mountPath: /tmp/renovate/
restartPolicy: Never
volumes:
- name: config-volume
configMap:
name: renovate-config
- name: work-volume
emptyDir: {}
```
## Configuration ## Configuration
Self-hosted Renovate can be configured using any of the following (or a combination): Self-hosted Renovate can be configured using any of the following (or a combination):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment