octant

module
v0.1.43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: AGPL-3.0

README

Chores codecov Artifact Hub

MDAI Octant

Check out the octant docs.

Building Octant

Pre-Requisites

Octant communicates with a kubernetes cluster to manage objects that it needs for various operations. If you are running octant outside of a cluster, ensure that you have a valid kubernetes config (~/.kube/config) set to your local cluster context. When run inside a cluster, it will have everything it needs due to the Role/RoleBinding octant sets up.

kubectl config current-context
Building and running just the Octant API:

Octant API runs on port 50051, so the easiest way to integrate with it for localdev is to set the baseUrl in the octant typescript client to localhost:50051.

go build -trimpath -ldflags="-w -s" -o octant ./cmd/octant
./octant
Building the "full" webapp:

This requires having the octant-ui repo also checked out. This method is desired if you

# From the octant-ui repo base dir
npm install
npm run build
cp -R dist /path/to/octant/web/
# Then, from the octant repo base dir
go build -trimpath -tags webapp -ldflags="-w -s" -o octant ./cmd/octant
Building the docker image and deploying to the local cluster

NOTE: the docker build defaults to the ghcr.io/mydecisive/octant-ui:latest image for octant-ui

make docker-build
# to override the octant-ui image with a locally built image
OCTANT_UI_IMAGE=octant-ui:0.1.2 make docker-build

Then, load the image to the kind cluster, package a helm release, and deploy it.

# replace `local/octant-ui` with whatever you named your image
kind load docker-image local/octant-ui:latest --name mdai
# helm package and deploy
make helm-package
helm upgrade octant ./octant-0.1.2.tgz --install

Directories

Path Synopsis
cmd
octant command
internal
config
Package config contains global configurations.
Package config contains global configurations.
mock
Package mock and its sub packages contains mocks that will be used for testing purposes.
Package mock and its sub packages contains mocks that will be used for testing purposes.
rpc
Package rpc contains code to handle RPC requests.
Package rpc contains code to handle RPC requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL