How to create unit test using ruby for Kubernetes cluster resources

10/28/2018

I have a Kubernetes cluster and want to write test cases in ruby for different resources of the cluster. These test cases should include pod count, service available, ingress is present etc.

Thanks in advance.

-- Mohd Shoaib
kubernetes
ruby
unit-testing

1 Answer

10/28/2018

A few options out there:

Connect to the kube-apiserver using any of these libraries and request pod count, ingress present, etc.

-- Rico
Source: StackOverflow