Why Ansible Tower 3.6.x Installation Is Failing on OpenShift 4.x With Error "no matches for kind StatefulSet in version apps/v1beta1"

Solution Verified - Updated -

Issue

When deploying Ansible Tower 3.6.x on OpenShift 4.x, the setup fails at the taks TASK [kubernetes : Apply Deployment]

TASK [kubernetes : Apply Deployment]
-----output redacted--------
"msg": "non-zero return code", "rc": 1, "start": "2020-08-30 10:28:28.147466", "stderr": "error: unable to recognize \"STDIN\": no matches for kind \"StatefulSet\" in version \"apps/v1beta1\"", "stderr_lines": ["error: unable to recognize \"STDIN\": no matches for kind \"StatefulSet\" in version \"apps/v1beta1\""], "stdout": "serviceaccount/awx unchanged\nservice/rabbitmq unchanged\nconfigmap/rabbitmq-config unchanged\nrole.authorization.openshift.io/endpoint-reader configured\nrolebinding.authorization.openshift.io/endpoint-reader unchanged\nconfigmap/ansible-tower-healthchecks unchanged\nservice/ansible-tower-web-svc unchanged\nservice/ansible-tower-rmq-mgmt unchanged\nroute.route.openshift.io/ansible-tower-web-svc unchanged", "stdout_lines": ["serviceaccount/awx unchanged", "service/rabbitmq unchanged", "configmap/rabbitmq-config unchanged", "role.authorization.openshift.io/endpoint-reader configured", "rolebinding.authorization.openshift.io/endpoint-reader unchanged", "configmap/ansible-tower-healthchecks unchanged", "service/ansible-tower-web-svc unchanged", "service/ansible-tower-rmq-mgmt unchanged", "route.route.openshift.io/ansible-tower-web-svc unchanged"]}
---------output redacted---------

Environment

Ansible Tower 3.6.x
OpenShift 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content