https://github.com/scality/metalk8s-solution-example
Example for MetalK8s solutions framework
https://github.com/scality/metalk8s-solution-example
Last synced: 9 months ago
JSON representation
Example for MetalK8s solutions framework
- Host: GitHub
- URL: https://github.com/scality/metalk8s-solution-example
- Owner: scality
- License: apache-2.0
- Created: 2020-10-29T14:38:43.000Z (over 5 years ago)
- Default Branch: development/1.0
- Last Pushed: 2021-11-02T09:45:48.000Z (over 4 years ago)
- Last Synced: 2025-02-23T22:21:04.960Z (over 1 year ago)
- Language: Go
- Size: 1.58 MB
- Stars: 0
- Watchers: 42
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example Solution for MetalK8s
Basic demo of how to package a Solution for [MetalK8s].
To build the ISO of this Solution, you will need to have installed:
- [`make`][GNU Make], to run the buildchain
- [`docker`][Docker] 17.03 or higher, to build images
- [`skopeo`][Skopeo] 0.1.19 or higher, to save images into the desired format
- [`hardlink`][hardlink], to deduplicate image layers
- [`go`][Go] 1.12 or higher, and [`operator-sdk`][Operator SDK] 0.17 or higher,
to build the Operator
- `mkisofs` to generate the ISO
Once all of these are installed, just run `make iso`. The generated ISO will be
accessible at `_build/root/example-solution-.iso`.
For iterative development, the `Makefile` provides intermediate targets,
including:
- `make images`, to build, save, and deduplicate image layers
- `make`, or `make all`, to generate the contents of the ISO without building
the ISO itself (visible under `_build/root`)
- `make operator`, to generate/copy the various Kubernetes manifests used to
deploy the Operator.
**Note**: if within `$GOPATH/src`, you need to enable Go modules:
`GO111MODULE=on make [ ...]`.
[Docker]: https://www.docker.com/
[GNU Make]: https://www.gnu.org/software/make/
[Go]: https://golang.org/
[hardlink]: https://jak-linux.org/projects/hardlink/
[MetalK8s]: https://github.com/scality/metalk8s/
[Operator SDK]: https://github.com/operator-framework/operator-sdk/
[Skopeo]: https://github.com/containers/skopeo/