Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of aws/gcp #39

Open
talset opened this issue Aug 30, 2023 · 0 comments
Open

Support of aws/gcp #39

talset opened this issue Aug 30, 2023 · 0 comments

Comments

@talset
Copy link

talset commented Aug 30, 2023

To allow authentification on AWS (EKS) & GCP (GKE), it would be nice to install the following packages

Add of aws-iam-authenticator

curl -s -L -o /usr/local/bin/aws-iam-authenticator "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/${AWS_IAM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_$(echo "$AWS_IAM_AUTHENTICATOR_VERSION" | tr -d v)_linux_amd64" && \
    chmod +x /usr/local/bin/aws-iam-authenticator && \
    aws-iam-authenticator version

Add gcloud

    # Download and install gcloud
    curl -sSL https://sdk.cloud.google.com > ./install.sh && \
    bash install.sh --disable-prompts --install-dir=/opt && \
    ln -s /opt/google-cloud-sdk/bin/gcloud /usr/local/bin/gcloud && \
    gcloud --version

Update the param to add

aws_access_key_id
aws_secret_access_key
aws_session_token

gcp_credentials_json
gcp_credentials_json_file

And then, update the out to auth before running kubectl

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=...

gcloud auth activate-service-account --key-file="$GOOGLE_APPLICATION_CREDENTIALS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant