GithubHelp home page GithubHelp logo

mourad-hamza / nutanix-karbon-k8s-login Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 20 KB

Command-line to automate login to Kubernetes cluster based on Nutanix Karbon API

Home Page: https://github.com/mourad-hamza/nutanix-karbon-k8s-login

License: Apache License 2.0

Shell 100.00%
cluster kubernetes nutanix-karbon-kubernetes nutanix prism karbon

nutanix-karbon-k8s-login's Introduction

Nutanix Karbon Kubernetes login command line

This project is a command line to automate login to Nutanix Karbon Kubernetes based cluster

Resouces

This command line is based on Prism central Karbon API : https://www.nutanix.dev/reference/karbon/api-reference/cluster/getk8sclusterkubeconfig/ that help to download the Kubernetes config file from a given cluster

Requirements

Have already created users with at least view permission on Prism Central, users can be local or from LDAP Have installed curl command

# RHEL / CENTOS
yum install -y curl

# Debian / Ubuntu
apt-get install -y curl

How to install

curl -o /usr/local/bin/karbon-login https://raw.githubusercontent.com/mourad-hamza/nutanix-karbon-k8s-login/main/karbon-login && chmod +x /usr/local/bin/karbon-login

Usage:

Usage karbon-login -k KARBON_API_URL -c KUBERNETES_CLUSTER_NAME [ -i INSECURE | -u USERNAME | -p PASSWORD ]
      karbon-login -h

This command is to automate login to Nutanix Karbon Kubernetes based cluster
it simply gets the config file from Nutanix Prism central Karbon server for a given Kubernetes cluster and stores it in the user home directory ~/.kube/config :

Options
 -k or --karbon-api-url  : Karbon API URL, like https://IP_ADDRESS:9440 or https://FQDN:9440
 -c or --k8s-cluster     : Kubernetes cluster name in Karbon clusters list
 -i or --insecure        : Disable SSL certificat check for Prism central URL
 -u or --username        : Prism central username
 -p or --password        : Prism central password
 -h or --help            : Display this help

Notes
 This command line can be used in an interactive or non-interactive mode
 this will depend on the login and password given in the arguments

nutanix-karbon-k8s-login's People

Contributors

mourad-hamza avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

nutanix-karbon-k8s-login's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.