npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nbai/k10s

v1.0.12

Published

## The Name **k10s** works on top of **k8s**, to rollout/uninstall resources. More specifically it utilizes following software:

Downloads

245

Readme

Project K10S

The Name

k10s works on top of k8s, to rollout/uninstall resources. More specifically it utilizes following software:

  1. kubectl
  2. helm
  3. gsg

Note: you need all these binaries locatable in PATH before you can use k10s

The Config

basePath: gs://<bucket-and-path-to-k10s>
cluster: <cluster-name>
namespaceVersion: <namespace-version>
globalSpecPlugins: []

basePath

a gcs path that stores all assets and resources, see The Concepts section below.

cluster

name of the k8s cluster for resource identification purpose, see Resource section under The Concepts below.

namespaceVersion

verison of namespace asset, which will be used to create namespace if not exists.

The Concepts

Asset

Assets are proper named and versioned helm charts. An Asset is stored in <base-path>/foreman/operator/assets/<asset-name>/releases/<asset-version>/ under the above path, there are always 2 files:

  1. chart.tgz
  2. schema.json

where schema.json is json schema of configurable values of chart.

Resource

Resources are combination of an asset and values.

asset:
  type: gateway
  release: 1.0.20
app:
  ...

NOTE: object app has configurable values of the asset (helm chart with specific version) and will be validated against asset schema

resources are stored in <base-path>/foreman/operator/resources/<cluster-name>/<namespace>/<resource-name>.yaml

Install and Run

Install

yarn global add @nbai/k19s

Run

  • make sure your kubectl is configured to access the target clsuter
  • create a proper ~/.k10s.yaml config file.

k10s rollout <namespace>/<resource-name> -f resource.yaml where resource.yaml contains the resource definition, if -f argument is not supplied, k10s will try to download and use from resource gcs path. k10s will always upload the resource to its path during rolling out. k10s uninstall <namespace>/<resource-name> k10s will uninstall all k8s objects installed perviously under the in the