Giter VIP home page Giter VIP logo

aws-eks-action's Introduction

setup-aws-eks

build-test

Use this action to connect to an AWS EKS cluster from a GitHub Actions workflow.

This action will create or update the .kube/config file, configuring Kubernetes clients (including the kubectl CLI) to connect to your EKS cluster. It uses the update-kubeconfig command provided by the AWS CLI.

Usage

See action.yml.

- uses: gumlet/[email protected]
  with:
    # Name of the EKS cluster you want to access (required)
    cluster: ''

    # Name of the Kubernetes config context to create (default: EKS cluster name)
    context: ''

    # ARN of an IAM role to assign to cluster authentication
    role: ''

    # If 'true', the action will run use-context for the cluster's new context
    activate: 'false'

Example

- name: Configure AWS Credentials
  uses: aws-actions/configure-aws-credentials@v2
  with:
    role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
    aws-region: us-east-2

- name: Configure Kubernetes client
  uses: gumlet/[email protected]
  with:
    cluster: my-cluster-name

- name: Deploy service
  run: |
    kubectl apply -f ./deployment.yml
    kubectl rollout status -f ./deployment.yml --timeout=15m

Outputs

  • context – The name of the Kubernetes context created
  • cluster_name – The EKS cluster name for which access was configured
  • cluster_arn – The ARN of the EKS cluster
  • cluster_status – The observed status of the EKS cluster
  • cluster_endpoint – The https:// origin of the cluster's API server
  • cluster_tags – The AWS tags applied to the EKS cluster, as a JSON object
  • kubernetes_version – The Kubernetes version of the cluster, e.g., 1.24

aws-eks-action's People

Contributors

silverlyra avatar adityapatadia 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.