Hi Bartosz,
It it possible to connect the Kubernetes agent to an Automation Engine on premises, similarly to the other integrations it connects to the JCP using TLS. More details in the docu.
But in order to run Kubernetes jobs, you also need a connection to a target system that runs on Kubernetes. You can find more details about how to establish a connection in the documentation.
If you are referring to the containerized agent that is deployed in a Kubernetes cluster, this should also work as long as there is no Firewall blocking access between the agent and AE. If you are using self-signed or internal CA signed certificates for AE, you will also need to mount them to the agent pod. You can find examples how to deploy the agent in a Kubernetes cluster in the documentation.
BR,
Oana