Install Kubernetes from Scratch [20] - End to End Tests: Run Smoke Test

preview_player
Показать описание


We now perform a set of basic functionality testing to see if everything is working as expected.



First we perform a basic health check to test the state of nodes and pods on the system.



Then we test the data encryption. So we create a secret object with the key mykey and value my data. We then query this in the ETCD cluster. As you can see the key is not seen in plain text. Its encoded using aesbc provider.



Let us clean that up.



We then create a deployment using the image nginx.



Wait for that to be deployed.





We then expose it through a service of type nodeport. Fetch the port number, which in this case is 31518.

Then perform a curl to both of the workers Ips and verify it returns the page.



Check to make sure you can view the logs on the pods.



And that you can execute a command within the pod.



That's it for the basic test. In the next demo, we will see how to run and validate an end-to-end test.

#InstallKubernetesfromScratch #RunSmokeTest
Рекомендации по теме
Комментарии
Автор

This is amzaing, I recommend everyone should once watch this before doploying K8s easy solutions like, EKS, AKS, KOPS, Kubeadm....

hamidullahmuslih