DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
sveltos-shard-controller logo

sveltos-shard-controller

packaged by Chainguard

Last changed
Start with 5 free container images

Catalog Starter gives your team 5 production-grade container images, free forever, with no contract or sales call. Sign up with your work email.

Try Starter for free
Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for sveltos-shard-controller

Minimal Sveltos Shard Controller image that provisions a dedicated set of Sveltos controllers per cluster shard.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/sveltos-shard-controller:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

The cgr.dev/ORGANIZATION/sveltos-shard-controller image is comparable to the upstream projectsveltos/shard-controller image. It preserves the /manager entrypoint, / working directory, UID and GID 65532:65532, and absence of default command arguments. The /manager compatibility symlink points to the packaged executable at /usr/bin/manager.

This image contains the Shard Controller only. The Deployments it generates for each shard reference the upstream Sveltos component images that the controller pins by digest, not Chainguard Containers. The upstream projectsveltos Helm chart deploys the other Sveltos components in separate containers. The minimal image does not include a shell or package manager.

Prerequisites

You need a Kubernetes cluster supported by the upstream chart, Helm, kubectl, and permission to install custom resource definitions and cluster RBAC. Configure the cluster to authenticate to Chainguard's registry and pull cgr.dev/ORGANIZATION/sveltos-shard-controller. If you use an image pull Secret, add it to global.imagePullSecrets in the values file below.

Getting Started

Install Sveltos with its official Helm chart, overriding the Shard Controller image. Replace ORGANIZATION with your organization's registry repository name:

helm repo add projectsveltos https://projectsveltos.github.io/helm-charts
helm repo update
cat > values.yaml <<'EOF'
global:
  useDigest: false
shardController:
  enabled: true
  manager:
    image:
      registry: cgr.dev
      repository: ORGANIZATION/sveltos-shard-controller
      tag: latest
accessManager:
  manager:
    image:
      registry: cgr.dev
      repository: ORGANIZATION/sveltos-access-manager
      tag: latest
EOF
helm upgrade --install sveltos projectsveltos/projectsveltos \
  --namespace projectsveltos --create-namespace \
  --values values.yaml --wait --timeout 10m
kubectl rollout status deployment/shard-controller \
  --namespace projectsveltos --timeout=180s

The chart creates the controller's service account, permissions, and CRDs, and sets the required NAMESPACE environment variable from the Pod's namespace. The controller exits immediately when NAMESPACE is unset. Keep global.useDigest at its default of false: when it is true, the chart uses shardController.manager.image.digest, which defaults to the upstream image digest, and the same applies to Access Manager. The example also runs Chainguard's sveltos-access-manager image; the other Sveltos components retain their chart defaults.

Configuration

Shard Controller watches SveltosCluster and Cluster API Cluster objects for the sharding.projectsveltos.io/key annotation. For each distinct key it provisions a dedicated set of Sveltos controllers, named addon-controller, classifier-manager, event-manager, hc-manager, and sc-manager with the shard key as a suffix, and it removes them again when the last cluster of that shard goes away or moves to another key. The chart registers the management cluster as the mgmt SveltosCluster in the mgmt namespace. To move it to a shard of its own and wait for that shard's controllers:

kubectl annotate sveltoscluster mgmt --namespace mgmt \
  sharding.projectsveltos.io/key=shard1 --overwrite
kubectl rollout status deployment/addon-controller-shard1 \
  --namespace projectsveltos --timeout=180s

Cluster API Cluster objects are watched only when the clusters.cluster.x-k8s.io CRD serves v1beta2. If Cluster API is installed after the controller starts, the controller exits once and Kubernetes restarts it to begin watching them.

To customize the generated Deployments, set shardController.shardComponentsConfigMap.data to one or more libsveltos Patch documents. The chart renders them into a ConfigMap and passes --shard-components-config to the manager, which re-applies every active shard whenever the ConfigMap changes:

shardController:
  shardComponentsConfigMap:
    name: shard-components-config
    data:
      add-label: |
        patch: |
          - op: add
            path: /metadata/labels/team
            value: platform

A patch without a target applies to every Deployment the controller generates. Give a patch a target when it changes a path that only some of those Deployments have, such as an init container, because a replace on a missing path stops the controller from deploying the rest of that shard.

The manager serves liveness and readiness probes on :9440 (--health-addr) and authenticated diagnostics over TLS on :8443 (--diagnostics-address). Reading /metrics requires a bearer token for a subject allowed to get the /metrics non-resource URL. Run --help for the full flag set.

Documentation and Resources

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

    For a complete list of licenses, please refer to this Image's SBOM.

    Software license agreement

    Compliance

    Chainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.

    SLSA compliance at Chainguard

    This image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.

    PCI DSS at Chainguard

    A FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.


    Related images
    sveltos-shard-controller-fips logoFIPS

    sveltos-shard-controller-fips


    Category
    Application

    The trusted source for open source

    Talk to an expert
    PrivacyTerms

    Product

    Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
    © 2026 Chainguard, Inc. All Rights Reserved.
    Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
    The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.