How to design the every 10 min working service not server

I have python command which is supposed to be exec-ed every 10min.

I am familiar with container/service for server.

However in this case, I want to exec, python every10mincommand in every 10 min, its something like crond.

What is the best practice for this purpose??

My service is like this below.

version: '3'
    image: registry:5000/myapp/djago:latest #django environment made by python image.

    #command: python runserver ## If I don't use as server, service stops...
    #command: python every10mincommand  ##want to exec this every 10 min

      replicas: 1
        constraints: [node.role != manager]

Source: StackOverflow