Automated Dependency Updates For KUBERNETES Manifests

Automated Dependency Updates For KUBERNETES Manifests
Table of Contents

Renovate now supports keeping Docker dependencies up-to-date in Kubernetes manifests. Read on to learn how to configure file matching to get it started.

How it Works

A new kubernetes manager type has been added to Renovate. You need to add one or more fileMatch values to tell it where to find your file(s), and after that it will keep the Docker dependency versions up-to-date like any other Docker definitions file we support (e.g. Dockerfile, Docker Compose files, CircleCI, etc.). Please see our Docker documentation for full details.

Configuring

If most .yaml files in your repository are Kubernetes ones, then you could add this to your config:

{
“kubernetes”: {
“fileMatch”: [“(^|/)[^/]*\\.yaml$”] }
}

If instead you have them all inside a k8s/ directory, you would add this:

{
“kubernetes”: {
“fileMatch”: [“k8s/.+\\.yaml$”] }
}

Or if it’s just a single file then something like this:

{
“kubernetes”: {
“fileMatch”: [“^config/k8s.yaml$”] }
}

Credit

Thank you to Maximilian Gaß for contributing this PR.

Recent resources

What is LDAP Injection? Types, Examples and How to Prevent It

Learn what LDAP Injection is, its types, examples, and how to prevent it. Secure your applications against LDAP attacks.

Read more

How to Use Dependency Injection in Java: Tutorial with Examples

Learn how to use Dependency Injection in Java with this comprehensive tutorial. Discover its benefits, types, and practical examples.

Read more

Idempotency: The Microservices Architect’s Shield Against Chaos

Discover the power of idempotency in microservices architecture. Learn how to maintain data consistency and predictability.

Read more