Provide your container with a task that will never finish. Something like this should work:
- name: ubuntu
# Just spin & wait forever
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
For further details, refer to the Kubernetes Training.