# Build-time variables

**URL:** <https://discuss.kubernetes.io/t/build-time-variables/24705>\
**Category:** microk8s\
**Tags:** docs\
**Created:** [July 6, 2023, 3:27pm UTC](https://discuss.kubernetes.io/t/build-time-variables/24705 "2023-07-06T15:27:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evilnick](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/evilnick/32/3481_2.png) [@evilnick](https://discuss.kubernetes.io/u/evilnick)\
**Post date:** [July 6, 2023, 3:27pm UTC](https://discuss.kubernetes.io/t/build-time-variables/24705/1 "2023-07-06T15:27:47Z")

</div>

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 |
