<p>snippet inside <strong>docker-compose.yml</strong></p>

<pre><code>graphite:
  image: sitespeedio/graphite:1.1.5-3
  ports:
   - "2003:2003"
   - "8080:80"
  restart: always
</code></pre>

<p>current snippet inside <strong>kube.yml</strong> that needs changes</p>

<pre><code>spec:
  containers:
  - name: graphite
    image: sitespeedio/graphite:1.1.5-3
    restartPolicy: Always
    ports:
    - containerPort: 2003
</code></pre>

<p>here, how to write the second mentioned <code>- "8080:80"</code> port in kubernetes yaml file? </p>

Prashanth Sams
<pre><code>spec:
  containers:
  - name: graphite
    image: sitespeedio/graphite:1.1.5-3
    restartPolicy: Always
    ports:
    - containerPort: 2003
      name: graphite_two 
    - containerPort: 8080
      name: graphite_one 
</code></pre>

<p>will solve your issue.</p>

<p><code>kubectl explain pods.spec.containers.ports</code> provides the detail information about the keys and values </p>
