Over the last few years, the demand for testing IoT applications has significantly increased. Testing these applications cannot occur directly on IoT devices, and therefore a different approach is needed. The PatrIoT framework offers the necessary features for testing distributed IoT applications, such as network simulation and device emulation. This thesis aims to extend the PatrIoT framework to support testing in the Kubernetes orchestration system. In addition, it will provide support for the automated deployment of the emulated devices. The designed and implemented extension consists of the network simulation library and the Kubernetes operator that provides the simulation. The extension also implements the automated deployment of emulated devices.