/
DirectorySecurity Advisories
Sign In
Directory
vitess-lite logo

vitess-lite

Last changed

Create your Free Account

Be the first to hear about exciting product updates, critical vulnerability alerts, compare alternative images, and more.

Sign Up
Tags
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for vitess-lite

Vitess is a database clustering system for horizontal scaling of MySQL through generalized sharding.

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/vitess-lite:latest

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

Usage

To deploy Vitess on Kubernetes, you can use the Vitess Operator for Kubernetes.

Let's follow the official Operator Example to deploy a Vitess cluster:

  1. Install the Operator
kubectl apply -f https://raw.githubusercontent.com/vitessio/vitess/refs/heads/main/examples/operator/operator.yaml
  1. Download the VitessCluster resource
curl -sLO https://raw.githubusercontent.com/vitessio/vitess/refs/heads/main/examples/operator/101_initial_cluster.yaml
  1. Replace the images with the Chainguard Image
sed -i "s|vitess/lite:v<CURRENT_VITESS_VERSION>|cgr.dev/chainguard/vitess-lite:latest|g" 101_initial_cluster.yaml
  1. Apply the resource
kubectl apply -f 101_initial_cluster.yaml
  1. Check the status of the cluster
NAME                                                         READY   STATUS    RESTARTS   AGE
example-commerce-x-x-zone1-vtorc-c13ef6ff-5dc567c466-h8xbx   1/1     Running   0          86s
example-etcd-faf13de3-1                                      1/1     Running   0          101s
example-etcd-faf13de3-2                                      1/1     Running   0          106s
example-etcd-faf13de3-3                                      1/1     Running   0          106s
example-vttablet-zone1-2469782763-bfadd780                   3/3     Running   0          86s
example-vttablet-zone1-2548885007-46a852d0                   3/3     Running   0          86s
example-zone1-vtadmin-c03d7eae-6db4c646bc-vmdj6              2/2     Running   0          106s
example-zone1-vtctld-1d4dcad0-5b797d9f9b-7svm9               1/1     Running   0          106s
example-zone1-vtgate-bc6cde92-659bbdbb5d-6xtzh               1/1     Running   0          86s
vitess-operator-68dd5f96-4v5sz                               1/1     Running   0          4h46m
  1. Create a sample schema to ensure the cluster is operational
POD_NAME=$(kubectl get pods -l planetscale.com/component=vtctld -o jsonpath="{.items[0].metadata.name}")
SVC_NAME=$(kubectl get svc -l planetscale.com/component=vtctld -o jsonpath="{.items[0].metadata.name}")
VTGATE_SVC_NAME=$(kubectl get svc -l planetscale.com/component=vtgate -o jsonpath="{.items[0].metadata.name}")
kubectl exec -it $POD_NAME -- bash -c "cd /tmp && curl -sLO https://raw.githubusercontent.com/vitessio/vitess/refs/heads/main/examples/operator/create_commerce_schema.sql"
kubectl exec -it $POD_NAME -- bash -c "cd /tmp && curl -sLO https://raw.githubusercontent.com/vitessio/vitess/refs/heads/main/examples/operator/vschema_commerce_initial.json"
kubectl exec -it $POD_NAME -- bash -c "cd /tmp && vtctldclient --server=$SVC_NAME.default.svc.cluster.local:15999 ApplySchema --sql-file="create_commerce_schema.sql" commerce"
kubectl exec -it $POD_NAME -- bash -c "cd /tmp && vtctldclient --server=$SVC_NAME.default.svc.cluster.local:15999 ApplyVSchema --vschema-file="vschema_commerce_initial.json" commerce"
kubectl exec -it $POD_NAME -- bash -c "mysql -h $VTGATE_SVC_NAME.default.svc.cluster.local -P 3306 -u user -e 'SHOW DATABASES;'" | grep "commerce"

Error Logs

While testing the image, we noticed that the following error-severity logs also appear in the official upstream vitess/lite image:

  • Config File "vtconfig" Not Found in "[/]".
  • can't connect to syslog
  • Client received GoAway with error
  • Cannot start query service: Unknown database 'vt_commerce'
  • unable to connect to tablet
  • Error transitioning to the desired state

But eventually, the cluster becomes operational, all Pods are Ready and Running, and the schema is created successfully.

Notes

This image includes percona-server which is bundled with the DBD::Module

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro 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 -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

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 container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • Artistic-1.0-Perl

  • BSD-2-Clause

  • BSD-3-Clause

  • GCC-exception-3.1

  • GPL-1.0-or-later

  • GPL-2.0-only

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

Software license agreement

Category
application

Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Products

Chainguard ContainersChainguard LibrariesChainguard VMs