Socket
Book a DemoInstallSign in
Socket

@smartive/generator-k8s

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartive/generator-k8s

Yeoman generator for kubernetes resources

1.0.0
latest
Source
npmnpm
Version published
Maintainers
7
Created
Source

Yeoman generator for k8s resources

This is a yeoman generator for kubernetes resources.

Build Status Build Status Code Coverage semantic-release Greenkeeper badge npm

Installation

To install this package, simply run

NPM

Usage

Install yeoman (if haven't already) npm i -g yo. After you installed this package, use:

yo k8s

All detailed generators are described below.

Usage (detail)

Default

Command: yo k8s

This launches the resource generator which asks which parts you want to configure. All parts are concatenated into one file after all questions are answered.

With this generator, you can generate a full deployment with service, app, ingress and other things.

Config

Command: yo k8s:config

This generates a ConfigMap for k8s. During the questions, you can enter config map values with your configured $EDITOR if you wish to do so.

Empty lines and lines that start with # are ignored after you close the editor.

Deployment

Command: yo k8s:deployment

This generates a Deployment for k8s. You have to enter some values to generate the yml structure. If you've configured a PersistentVolumeClaim it's added to the bottom.

Ingress

Command: yo k8s:ingress

This generates an Ingress for k8s. You can enter multiple host urls, which are then configured the correct way. You can decide if you want to disable HTTPS.

PersistentVolumeClaim

Command: yo k8s:persistent-volume-claim

This generates a PersistentVolumeClaim for k8s. You need to enter access modes and a size for the claim.

Secret

Command: yo k8s:secret

This generates a Secret for k8s. During the questions, you can enter secret values with your configured $EDITOR if you wish to do so.

Empty lines and lines that start with # are ignored after you close the editor. After the editor is closed, all values after the colon are base64 encoded.

foo: bar becomes foo: IGJhcg==.

Service

Command: yo k8s:service

This generates a Service for k8s. You can add multiple ports for the service which are then added to the resulting yml.

Changelog

The changelog is generated by semantic release and is located under the release section.

Licence

This software is licenced under the MIT licence.

Keywords

yeoman-generator

FAQs

Package last updated on 27 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.