🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

kube-deploy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kube-deploy

Utility for patching kubernetes resources

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Code Style

kube-deploy

It's meant to be used in continuous integration pipelines in order to update a kubernetes deployment with the most recent docker image. It sends a PATCH request to the kubernetes apiserver in order to do so.

Currently, only deployments are supported and other types of kubernetes resources will be added when and if they are requested.

Usage

  Usage: kube-deploy [options] <resource-type/resource-name> <container-name> <container-image>

  Options:

    -h, --help               output usage information
    -u --url <string>        kubernetes API URL
    -n --namespace <string>  optional: kubernetes namespace [default: default]
    -k --insecure-https      optional: ingore SSL certificate validity

Example

It's designed to be used as a script in other packages:

"scripts": {
  ...
  "deploy": "kube-deploy -u https://kubernetes.example.com deployment/my-deployment my-container-name docker/image:tag",
  ...
}

So that it makes it easy to just say npm run kube-deploy in the CI pipeline.

Authentication

In order to authenticate against the kubernetes deployment, kube-deploy will use the access token from the environment variable KUBERNETES_TOKEN.

Keywords

kubernetes

FAQs

Package last updated on 13 Sep 2016

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