...
Install Kubectl
Step 1: Go through the Kubernetes documentation page to install and configure the kubectl. Following are useful links:
Kubernetes Installation Doc
Kubernetes Ubuntu Installation
After installing type the below command to check the version install in your system
Code Block |
---|
kubectl version |
...
Go to $HOME/.Kube folder
Code Block |
---|
cd cd .kube |
Open the config file and replace the content with the environment cluster config file. (Config file will be attached)
Code Block |
---|
gedit config |
Copy-paste the content from the config file provided to this config file opened and save the file.
...
Code Block |
---|
kubectl exec --stdin --tty playground-584d866dcc-cr5zf -n playground -- /bin/bash |
(Replace the pod name depending on what data you want.
Refer Refer to Table 1.2 for more information)
3. Install Python and check to see if it installed correctly
...
(Every time you want a datamart with the latest data available in the pods)
1. Sending the python script to the pod
Code Block |
---|
tar cf - /home/priyanka/Desktop/mcollect.py | kubectl exec -i -n playground playground-584d866dcc-cr5zf -- tar xf - -C /tmp |
...