0% found this document useful (0 votes)
6 views1 page

Lesson 5

This document provides an example of a kubeconfig file, which is used to configure access to a Kubernetes cluster. It includes sections for clusters, contexts, users, and the current context, with placeholder data that should not be copied. The example illustrates the structure and necessary components for connecting to an Amazon EKS cluster using AWS IAM authentication.

Uploaded by

codandocerto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Lesson 5

This document provides an example of a kubeconfig file, which is used to configure access to a Kubernetes cluster. It includes sections for clusters, contexts, users, and the current context, with placeholder data that should not be copied. The example illustrates the structure and necessary components for connecting to an Amazon EKS cluster using AWS IAM authentication.

Uploaded by

codandocerto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

# kubeconfig Example Config

Here is an example kubeconfig file for reference:

```yaml
apiVersion: v1
# NONE OF THIS DATA IS ACTUALLY VALID. DO NOT COPY AND PASTE.
clusters:
- cluster:
certificate-authority-data:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lJTHpUUG9jT2ppZ0F3RFF
ZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFRLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQ
WUyZ0F3SUJBZ0lJTHpUUG9jT2ppZ0F3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFRLS0tLS1CRUdJTiB
DRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lJTHpUUG9jT2ppZ0F3RFFZSktvWklodmNOQV
FFTEJRQXdGVEVUTUJFRLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURLS0tLS1CRUdJTiBDRVJUS
UZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJ
server: https://6E5EF5C647C8948F013E24DE787AB9FE.yl4.us-east-
1.eks.amazonaws.com
name: cluster_name.us-east-1.eksctl.io
contexts:
- context:
cluster: cluster_name.us-east-1.eksctl.io
user: cloud_user@cluster_name.us-east-1.eksctl.io
name: cloud_user@cluster_name.us-east-1.eksctl.io
current-context: cloud_user@cluster_name.us-east-1.eksctl.io
kind: Config
preferences: { }
users:
- name: cloud_user@cluster_name.us-east-1.eksctl.io
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- token
- -i
- cluster_name
command: aws-iam-authenticator
env:
- name: AWS_STS_REGIONAL_ENDPOINTS
value: regional
- name: AWS_DEFAULT_REGION
value: us-east-1
provideClusterInfo: false
```

You might also like