Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
1f034539
Unverified
Commit
1f034539
authored
4 years ago
by
Billy Tobon
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: Adds example using ConfigMap for config.json in kubernetes (#7437)
Co-authored-by:
Michael Kriese
<
michael.kriese@visualon.de
>
parent
a41aefc2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/usage/self-hosting.md
+56
-0
56 additions, 0 deletions
docs/usage/self-hosting.md
with
56 additions
and
0 deletions
docs/usage/self-hosting.md
+
56
−
0
View file @
1f034539
...
@@ -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):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment