-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
173 changed files
with
6,958 additions
and
7,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,41 @@ | ||
# Overview | ||
# mlp CLI | ||
|
||
[`mlp`](https://github.com/mia-platform/mlp) is a comman line tool responsible for creating, updating and deleting kubernetes resources based on files generated by Mia-Platform Console. | ||
`mlp`is a Command Line Interface that is responsible for creating, updating and deleting Kubernetes resources | ||
based on files generated by Mia-Platform Console. | ||
It can be viewed as a superpowered `kubectl apply` command that introduce additional functionalities to simply sending | ||
patches to the api-server. | ||
|
||
The main subcommands that the tool has are: | ||
`mlp` can prune resources that are not present anymore between different deploys because it keeps an inventory | ||
of all the resources that has applyed the last time. | ||
It can force new deployment rollout even if there are no differeces between deploys, running Jobs immediately from | ||
CronJob definitions, and it will add annotations to workload resources about their Secrets and ConfigMaps depedencies. | ||
The cli will also automatically watch the progression of the applied resources and it will report what and how many | ||
resources failed to reach a ready or successfull state. | ||
|
||
- [`interpolate`](./30_interpolate.md): fill placeholders in kubernetes files with the values of ENV variables | ||
- [`generate`](./40_generate.md): create files for kubernetes `ConfigMap` and `Secret` based on files and/or ENV values | ||
- [`deploy`](./50_deploy.md): create and/or update resources in a kubernetes namespace with the interpolated/generated files | ||
- `kustomize`: run kustomize build | ||
- [`hydrate`](./70_hydrate.md): helper to fill kustomization.yml with resources and patches | ||
- `completion`: generate the autocompletion | ||
In addition `mlp` can also generate ConfigMaps or Secrets via a dedicate configuration file using a combination of | ||
environment variabiles, literal values and files, giving the user the ability to not commiting sensitive data and giving | ||
the ability to use different configuration for different runtime environments. | ||
|
||
## Functionalities | ||
|
||
- `deploy`: the main command, is used for creating, updating and pruning resources in a kubernetes | ||
environment using the resouce files created by the Mia-Platform Console | ||
- `generate`: create kubernetes `ConfigMap` and `Secret` based on a configuration file | ||
- `hydrate`: is an helper function for configuring correctly the kustomization files inside the target folder | ||
with all the files and patches found | ||
- `interpolate`: will run through all the files passed and run through a templating function for render the final | ||
manifests | ||
- `kustomize`: is the same command of `kustomize build` and can be used if you project is using the kustomize structure | ||
to render the resources to pass to the `interpolate` command | ||
|
||
For more information about the various options available to the various commands you can always run | ||
`mlp <command> --help` to see the helpers. | ||
|
||
## Guides | ||
|
||
Below, you can find additional documentation for `mlp`: | ||
|
||
- [Setup](./20_setup.md) | ||
- [Generation Configuration](./30_generate.md) | ||
- [Hydration Logic](./40_hydrate.md) | ||
- [Interpolatation Template](./50_interpolate.md) |
Oops, something went wrong.