View Source mix bonny.gen.manifest (bonny v1.4.0)

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

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

@spec run(list()) :: any()

Callback implementation for Mix.Task.run/1.