angelscripts-k8s-deployments
Angelscripts for k8s deployments of node-organic cells
Last updated a month ago by outbounder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install angelscripts-k8s-deployments 
SYNC missed versions from official npm registry.

angelscripts-k8s-deployments

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.

prerequirements

  • kubectl
  • git
  • node / npm / npx

setup

$ npm i angelscripts-k8s-deployments --save
$ edit dna/cells/my-cell/production.yaml

commands

angel release

Does angel release patch production default. ;)

angel release :versionChange :branchName :namespace

Targets current working directory as a cell and does an release of the cell to the default configured cluster.

  1. builds via packagejson.scripts.build, defaults to angel build
  2. publishes via packagejson.scripts.publish, defaults to angel publish
  3. commits package.json.version changes
  4. applies :branchName dna to kubernetes cluster at given :namespace
  5. tags and pushes to upstream git repository

angel k8s apply :branchName :namespace

Does kubectl apply and sources that with the dna contents as YAML at given :branchName

angel k8s fapply :branchName :namespace

Does kubectl -f apply and sources that with the dna contents as YAML at given :branchName

angel changes

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.

angel k8s delete :branchName :namespace

Does kubectrl -f delete with the dna contents at :branchName

angel dna-to-yaml :branchName

Prints a dna contents at :branchName as YAML.

angel k8s logs :namespace

Connects to default cluster via kubectl logs and shows all logs from all containers/pods across the given namespace

TODO

PRs :smile:

  • angel cp uses git archive workaround (!)
  • tests :)
  • anything which you may find useful ;)

Current Tags

  • 4.0.4                                ...           latest (a month ago)

10 Versions

  • 4.0.4                                ...           a month ago
  • 4.0.3                                ...           9 months ago
  • 4.0.2                                ...           10 months ago
  • 4.0.1                                ...           10 months ago
  • 4.0.0                                ...           10 months ago
  • 3.0.1                                ...           10 months ago
  • 3.0.0                                ...           10 months ago
  • 2.0.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 17
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |