forked from kairos-io/kairos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install edgevpn kubectl k9s nerdctl and kube-vip on standard images
Signed-off-by: Mauro Morales <contact@mauromorales.com>
- Loading branch information
1 parent
334df9b
commit b3573e1
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
ARG BASE_IMAGE=ubuntu:20.04 | ||
ARG VARIANT | ||
ARG TARGETARCH | ||
ARG FRAMEWORK_VERSION=v2.15.14 | ||
|
||
FROM quay.io/kairos/kairos-init:v0.2.4 AS kairos-init | ||
FROM --platform="linux/${TARGETARCH}" quay.io/kairos/framework:${FRAMEWORK_VERSION} AS framework | ||
|
||
FROM ${BASE_IMAGE} AS base | ||
FROM ${BASE_IMAGE} AS base-kairos | ||
ARG VARIANT=core | ||
ARG MODEL=generic | ||
ARG TRUSTED_BOOT=false | ||
ARG KUBERNETES_DISTRO=k3s | ||
ARG KUBERNETES_VERSION=latest | ||
ARG FRAMEWORK_VERSION=v2.15.14 | ||
ARG FRAMEWORK_VERSION | ||
|
||
COPY --from=kairos-init /kairos-init /kairos-init | ||
RUN /kairos-init -f "${FRAMEWORK_VERSION}" -l debug -s install -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${KUBERNETES_DISTRO}" --k8sversion "${KUBERNETES_VERSION}" | ||
RUN /kairos-init -f "${FRAMEWORK_VERSION}" -l debug -s init -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${KUBERNETES_DISTRO}" --k8sversion "${KUBERNETES_VERSION}" | ||
RUN /kairos-init -f "${FRAMEWORK_VERSION}" -l debug --validate -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${KUBERNETES_DISTRO}" --k8sversion "${KUBERNETES_VERSION}" | ||
RUN rm /kairos-init | ||
|
||
FROM base-kairos AS kairos-core | ||
|
||
FROM base-kairos AS kairos-standard | ||
COPY --from=framework /usr/bin/luet /usr/bin/luet | ||
COPY --from=framework /etc/luet/luet.yaml /etc/luet/luet.yaml | ||
RUN luet install -y utils/edgevpn utils/k9s utils/nerdctl container/kubectl utils/kube-vip | ||
|
||
FROM kairos-${VARIANT} AS kairos-final |