Adventures in Freebernetes Tutorial: Build Your Own Bare-VM k3s Cluster

Part 2: Build k3sup

  • 2.1 Setup Your Go Environment
  • 2.2 Check Out and Build k3sup
  • We’ll need to build k3sup for our FreeBSD hypervisor.

    2.1 Setup Your Go Environment

    If you already have a working golang build environment on your FreeBSD hypervisor, you can skip this section.

    First, create your go workspace. This tutorial will assume you are using the path ${HOME}/go.

    export GOPATH="${HOME}/go"
    mkdir -p $GOPATH ${GOPATH}/bin ${GOPATH}/pkg ${GOPATH}/src ${GOPATH}/src/k8s.io ${GOPATH}/src/github.com
    view raw gistfile1.txt hosted with ❤ by GitHub

    2.2 Check Out and Build k3sup

    cd $GOPATH/src/github.com
    git clone https://github.com/alexellis/k3sup/
    cd k3sup
    git checkout 0.9.13
    go build -ldflags="-X github.com/alexellis/k3sup/cmd.Version=0.9.13"
    view raw build.sh hosted with ❤ by GitHub

    You should copy this k3sup binary somewhere in your PATH.

    Pages: 1 2 3 4 5 6 7 8

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google photo

    You are commenting using your Google account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    Connecting to %s

    Blog at WordPress.com.

    Up ↑

    %d bloggers like this: