bonny v0.3.2 mix bonny.gen.manifest
Generates the Kubernetes YAML manifest for this operator
mix bonny.gen.manifest expects a docker image name if deploying to a cluster. You may optionally provide a namespace.
Examples
The image
switch is required.
Options:
- --image (docker image to deploy)
- --namespace (of service account and deployment; defaults to "default")
- --out (path to save manifest; defaults to "manifest.yaml")
Deploying to kubernetes:
docker build -t $(YOUR_IMAGE_URL) .
docker push $(YOUR_IMAGE_URL)
mix bonny.gen.manifest --image $(YOUR_IMAGE_URL):latest --namespace default
kubectl apply -f manifest.yaml -n default
To skip the deployment
for running an operator outside of the cluster (like in development) simply omit the --image
flag:
mix bonny.gen.manifest
Link to this section Summary
Link to this section Functions
Link to this function
run(args)
A task needs to implement run
which receives
a list of command line args.
Callback implementation for Mix.Task.run/1
.