<p>I have a docker image that starts the service when I run</p>

<pre><code>server start:8080
</code></pre>

<p>How can I specify this command to be run in Kubernetes Service? 
Is the only option to have it part Dockerfile ?</p>

Sam
<p>I took "Kubernetes" and "specify command to run" from the title of your question and did an Internet search for "Kubernetes specify command to run" and the first result was <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/" rel="nofollow noreferrer">this official Kubernetes doc</a>. It says:</p>

<blockquote>
  <p>When you create a Pod, you can define a command and arguments for the containers that run in the Pod. To define a command, include the <code>command</code> field in the configuration file. To define arguments for the command, include the <code>args</code> field in the configuration file. The command and arguments that you define cannot be changed after the Pod is created.</p>
  
  <p>The command and arguments that you define in the configuration file override the default command and arguments provided by the container image. If you define args, but do not define a command, the default command is used with your new arguments.</p>
  
  <blockquote>
    <p><strong>Note</strong>: The <code>command</code> field corresponds to <code>entrypoint</code> in some container runtimes....</p>
  </blockquote>
</blockquote>
