Posts

Showing posts from January, 2022

RedHat Open-shift and Kubernetes Automation - Ansible Approach

Image
 Hi Folks, So, I here is a brief POC that I was doing to automate the open-shift based test cases using Ansible. We are using kubernetes client in Ansible. Steps for installation >yum install python3 -y >yum install curl -y >curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py >python get-pip.py (you can install ansible using the pip3 or subscription-manager on rhel ) >pip3 install ansible -y (On control node in my case it was the rhel infra node, from which i was accessing rest of the ocp cluster nodes) Also, to resolve, following errors: ([WARNING]: Unable to parse /etc/ansible/hosts as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: Could not match supplied host pattern, ignoring: a) Perform following: >ssh-keygen > ssh-copy-id key to self node(your control node or loc...