eks-iam-cache

command module
v0.0.0-...-13f2bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 9 Imported by: 0

README

AWS EKS kubectl credential cache

Install

go install github.com/chlunde/eks-iam-cache@main

Configure ~/.kube/config

sed -i 's/command: aws/command: eks-iam-cache/' ~/.kube/config

or edit $KUBECONFIG:

apiVersion: v1
kind: Config
users:
- name: arn:aws:eks:eu-north-1:...:cluster/foo
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      command: aws
      args:
      - --region
      - eu-north-1
      - eks
      - get-token
      - --cluster-name
      - ...
      env:
      - name: AWS_PROFILE
        value: ...

replace aws in command: with eks-iam-cache:

      command: eks-iam-cache

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL