Exercise
1 minute read
In this exercise, you’ll use a CronJob to create dummy votes
- In a file named cronjob.yaml, define the specification for a CronJob resource with the following characteristics:
- Name: seed
- Schedule: “* * * * *”
- Contains a single container with the image voting/tools:latest and an environment variable NUMBER_OF_VOTES set to 10
Deploy the application and verify, from the resultui interface, that 10 new votes are created every minute.
Delete the application.