Angelscripts for k8s deployments of node-organic cells
organic-angel scripts for generating docker compatible configuration and commands aiding kubernetes usage for node-organic / stem-skeleton v2.1 based cells
Works with angelscripts-dockerbuild.
kubectl
git
node
/npm
/npx
$ npm i angelscripts-k8s-deployments --save
$ edit dna/cells/my-cell/production.yaml
Create a .kubeconfig
file within the repo root folder, it will be used for kubectl
.
Executes kubectl :cmd
by specifying --kubeconfig
if custom config is provided.
Does angel release patch production default
. ;)
Targets current working directory as a cell and does an release of the cell to the default configured cluster.
- builds via
packagejson.scripts.build
, defaults toangel build
- publishes via
packagejson.scripts.publish
, defaults toangel publish
- commits package.json.version changes
- applies
:branchName
dna to kubernetes cluster at given:namespace
- tags and pushes to upstream git repository
Does kubectl apply
and sources that with the dna contents as YAML at given :branchName
Does kubectl -f apply
and sources that with the dna contents as YAML at given :branchName
Does a check of the current working repository, git tags and cell's dependencies for changes to be released. it returns non-zero status when there are changes.
Note that dynamically loaded modules won't be included for checks. An workaround is to provide packagejson.sources
array of fast-glob patterns to be manually appended to the dependencies list.
Does kubectrl -f delete
with the dna contents at :branchName
Prints a dna contents at :branchName
as YAML.
Connects to default cluster via kubectl logs
and shows all logs from all containers/pods across the given namespace
PRs 😄
angel cp
uses git archive workaround (!)- tests :)
- anything which you may find useful ;)