Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Latest commit

 

History

History
41 lines (28 loc) · 734 Bytes

Developer.md

File metadata and controls

41 lines (28 loc) · 734 Bytes

Developer Guide

Here are some basic tips for compiling and generating Kuberne artifactors.

Prerequisites

Obviously you will need a kubernete environment. The easiest way to start is by creating a cluster with kind (you will need the docker)

kind create cluster --name default

Compilation

mix deps.get && mix compile

Generate artifacts and deploy on k8s

mix bonny.gen.dockerfile
docker build -t ${BONNY_IMAGE} . 
docker push ${BONNY_IMAGE}:latest

mix bonny.gen.manifest --image ${BONNY_IMAGE}
kubectl apply -f ./manifest.yaml
kubectl get all

Or simply:

make

To test the operator you can use the StatefulService CRD found in the example file.

kubectl apply -f example.yaml