---
title: Build-time variables
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical.com/microk8s/docs/ref-build-env?format=md
---

*Submit*

# Build-time variables

When generating the MicroK8s snap, a number of build-time environment variables can be used to modify components or setting, as listed here:

| variable | use |
| --- | --- |
| CNI\_VERSION | version of CNI tools |
| CONTAINERD\_COMMIT | the commit hash from which to build containerd |
| ETCD\_VERSION | version of etcd |
| ISTIO\_VERSION | istio release |
| KNATIVE\_EVENTING\_VERSION | Knative Eventing release |
| KNATIVE\_SERVING\_VERSION | Knative Serving release |
| KUBE\_TRACK | Kubernetes release series (e.g., 1.10) to package. Defaults to latest stable |
| KUBE\_VERSION | Kubernetes release to package. Defaults to latest stable |
| KUBERNETES\_COMMIT | commit to be used from KUBERNETES\_REPOSITORY for building the Kubernetes binaries |
| KUBERNETES\_REPOSITORY | build the Kubernetes binaries from this repository instead of getting them from upstream |
| RUNC\_COMMIT | the commit hash from which to build runc |

Last updated 3 years ago. [Help improve this document in the forum](https://discuss.kubernetes.io/t/build-time-variables/24705).
