...
cluster-admin access to the Kubernetes cluster.
Python 3.7+.
View file | ||
---|---|---|
|
The script will:
Create a service account for Data Theorem.
Add a security audit role (with read-only access).
Link the security audit role to the service account.
Generate a kube config file for the previously generated service account.
...
First you need to retrieve the role ARN of the Kubernetes cluster:
Go to the AWS Console
Go to EKS
On the left hand side, click on
Clusters
, underAmazon EKS
In the list of clusters, search for the cluster name you want to onboard and click on it
Then click on the
Configuration
tabFinally copy the
Cluster IAM Role ARN
...
Then run the script as follows:
...
In order to onboard the cluster, it must have the RBAC setting enabled. You can make sure of that by going to the Azure Console and:
Kubernetes Services
Search for the name of the cluster you want to onboard and click on it
Under
Settings
, click onCluster configuration
Role-based access control (RBAC)
must beEnabled
Code Block | ||
---|---|---|
| ||
python3 datatheorem-k8s-onboarding.py -p azure -o datatheorem_k8s_service_account.yaml |
...