...
Code Block | ||
---|---|---|
| ||
python3 datatheorem-k8s-onboarding.py -p onprem -o <CONFIG_OUTPUT_PATH> |
Send the generated credentials to Data Theorem
The script generates a configuration which is located at the path you provided when you executed the script. The filename is kube-config-to-onboard.yaml
.
Copy the content of the file into the Data Theorem onboarding step. This will allow us to connect to your Kubernetes cluster with read-only access and scan your cluster.
The content should look similar to this one:
Code Block |
---|
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tC[...]
server: https://ABCD.yl4.eu-west-3.eks.amazonaws.com
name: arn:aws:eks:eu-west-3:123:cluster/test-to-delete
contexts:
- context:
cluster: arn:aws:eks:eu-west-3:123:cluster/test-to-delete
namespace: kube-system
user: datatheorem-kube-system-arn:aws:eks:eu-west-3:123:cluster/test-to-delete
name: datatheorem-kube-system-arn:aws:eks:eu-west-3:123:cluster/test-to-delete
current-context: datatheorem-kube-system-arn:aws:eks:eu-west-3:123:cluster/test-to-delete
kind: Config
preferences: {}
users:
- name: datatheorem-kube-system-arn:aws:eks:eu-west-3:123:cluster/test-to-delete
user:
token: eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ1LTZ[...] |