Skip to content

Compose multiple overlays #171

Description

@nicksnyder

Thanks for creating kustomize!

At Sourcegraph we deploy our Kubernetes application to customers. We have core services that are deployed to every customer and then a few optional services that each customer can choose to deploy or not (e.g. monitoring, alerting, SSDs, etc.).

A single customer may wish to include multiple optional services that we provide. It would be ideal if they could do a single build that composes multiple overlays together.

This could be accomplished via command line or by defining a new kustomization.yaml that references the overlays to be composed.

More generally, I think I am asking for there to be no distinction between "base" and "overlay". It would be ideal if kustomize could compose an arbitrary number of layers together in a particular order.

Consider the following resources

# frontend/kustomization.yaml
resources:
- frontend.Deployment.yaml
# frontend-replicas/kustomization.yaml
resources:
- frontend-replicas.yaml
# monitoring/kustomization.yaml
resources:
- monitoring.Deployment.yaml

Ideal:

kustomize build frontend/ frontend-replicas/ monitoring/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions