ks pkg

Manage packages and dependencies for the current ksonnet application

Synopsis

A ksonnet package contains:

  • A set of prototypes (see ks prototype --help for more info on prototypes), which
    generate similar types of components (e.g. redis-stateless, redis-persistent)
  • Associated helper libraries that define the prototype parts (e.g. redis.libsonnet)

Packages allow you to easily distribute and reuse code in any ksonnet application.
Packages come from registries, such as Github repositories. (For more info, see
ks registry --help).

To be recognized and imported by ksonnet, packages need to follow a specific schema.
See the annotated file tree below, as an example:

  1. .
  2. ├── README.md // Human-readable description of the package
  3. ├── parts.yaml // Provides metadata about the package
  4. ├── prototypes // Can be imported and used to generate components
  5. ├── redis-all-features.jsonnet
  6. ├── redis-persistent.jsonnet
  7. └── redis-stateless.jsonnet
  8. └── redis.libsonnet // Helper library, includes prototype parts

Options

  1. -h, --help help for pkg

Options inherited from parent commands

  1. --dir string Ksonnet application root to use; Defaults to CWD
  2. --tls-skip-verify Skip verification of TLS server certificates
  3. -v, --verbose count Increase verbosity. May be given multiple times.

SEE ALSO

  • ks - Configure your application to deploy to a Kubernetes cluster
  • ks pkg describe - Describe a ksonnet package and its contents
  • ks pkg install - Install a package (e.g. extra prototypes) for the current ksonnet app
  • ks pkg list - List all packages known (downloaded or not) for the current ksonnet app
  • ks pkg remove - Remove a package from the app or environment scope