Hi,
I have a ASP.NET Core 2.1 console application witch should run in a docker container. Width a kubernetes CronJob it should run every hour. But I don’t know what arguments (args) and commants are to set. At the internet I find lots of examples for very short console applications like “Hello world!”. Please could me help some body with informations about that.
Below you see my cronjob.yaml
Thanks for your help,
Frank
To be honest, I’m not 100% sure what you’re referring to.
If you are looking for the the difference between command and args in a podspec their equivalent with docker would be entrypoint and and command.
command in kubernetes is usually the path to the starting binary or script and args is the arguments for it.
In your example you’re passing “myHost” and “80” to printenv which would just print those environment variables.
I would highly recommend getting to know docker and containers in general before approaching kubernetes. A good understanding of containers is an essential skill to be successful.
There are quite a few tutorial available, a few I would suggest are:
Now I will answer my question by my self for people who came along with the same question.
args stay empty, because in my console application I also dont use arguments (as usual I think) command get the value from the endpoint at the Dockerfile
and image needs to get the repository path