GithubHelp home page GithubHelp logo

eks-kubectl's Introduction

EKS-Kubectl

Run kubectl commands with AWS authentication and a set of AWS keys

Usage

resource_types:
- name: eks-kubectl
  type: registry-image
  source:
    repository: ghcr.io/doutorfinancas/eks-kubectl
    tag: 1.23

resources:
- name: eks-kubectl
  type: eks-kubectl
  icon: kubernetes
  source:
    aws_access_key_id: YOU_AWS_ACCESS_KEY_HERE
    aws_secret_access_key: YOU_AWS_SECRET_ACCESS_HERE
    eks_cluster_name: my-cluster
    eks_region: eu-central-1
    namespace: my-namespace

jobs:
  - name: kubernetes-deployment
    plan:
      - put: eks-kubectl
        params:
          kubectl: get nodes
      - put: eks-kubectl
        params:
          kubectl: rollout restart deployment/my-deployment
          namespace: my-other-namespace

Why?

Because we needed a simple script to authenticate to AWS and do a simple command for us. We also needed different kubectl versions from the ones maintained, so, here we are

Resource definition - Source

Parameter Name Description
aws_access_key_id AWS KEY (mandatory)
aws_secret_access_key AWS Secret (mandatory)
eks_cluster_name EKS cluster name (mandatory)
eks_region EKS cluster region (mandatory)
namespace Kubernetes namespace (optional). This will replace the default namespace

PUT - Params

Parameter Name Description
kubectl kubectl command you wish to run
namespace kubernetes namespace, overrides source namespace (optional)

participating

Want more features? PRs are welcome :)

Versions

Currently, we have kubectl version 1.23.0 published. Feel free to ask for more

eks-kubectl's People

Contributors

bolovsky avatar

Stargazers

 avatar Jesualdo Cunha avatar Filipe Freitas avatar Mauricio Rodrigues avatar

Watchers

Ana Aires avatar  avatar Filipe Freitas avatar João Saleiro avatar Mauricio Rodrigues avatar MiguelBarros avatar Jesualdo Cunha avatar

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.