Skip to content

Udpate k8s deployments' images using renovate-bot

renovate

Automated dependency updates. Multi-platform and multi-language.

Enable renovatebot on repository

CodeFloe runs an instance-wide Renovate bot that automatically keeps your dependencies up to date. It is managed by the renovate-operator and runs hourly at :30.

source

Set up renovate user

Create new team with administrator access and add renovate-bot user to it

renowate team

In repositories section add repos that renovatebot will have access to.

Renovate will scan each repo and look for renovate.json file.

Congfigure renovate

For kubernetes manifests files config looks quite simple.

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "timezone": "Europe/Warsaw",
  "automerge": false,
  "dependencyDashboard": true,
  "kubernetes": {
    "managerFilePatterns": [
      "**/*.yml",
      "**/*.yaml"
    ]
  }
}

Renovate will create Dependency Dashboard issue in repo and will update its description when new release is found

Dependency Dashboard

After a while it will create pull request with latest image e.g https://codefloe.com/rpi-homelab/kubernetes-manifests/pulls/7