title: Expose port from container in a pod minikube kubernetes
body: <p>I'm new to K8s, I'll try minikube with 2 container running in a pod with this command:</p>
  
  <pre><code>kubectl apply -f deployment.yaml
  </code></pre>
  
  <p>and this deployment.yml:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>apiVersion: v1
  kind: Pod
  metadata:
    name: site-home
  spec:
  
    restartPolicy: Never
  
    volumes:
    - name: v-site-home
      emptyDir: {}
  
    containers:
  
  
    - name: site-web
      image: site-home:1.0.0
      ports:
      - containerPort: 80
      volumeMounts:
      - name: v-site-home
        mountPath: /usr/share/nginx/html/assets/quotaLago
    
    - name: site-cron
      image: site-home-cron:1.0.0
      volumeMounts:
      - name: v-site-home
        mountPath: /app/quotaLago</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've a shared volume so if I understand I cannot use deployment but only pods (maybe stateful set?)</p>
  
  <p>In any case I want to expose the port 80 from the container site-web in the pod site-home. 
  In the official docs I see this for deployments:</p>
  
  <pre><code>kubectl expose deployment hello-node --type=LoadBalancer --port=8080
  </code></pre>
  
  <p>but I cannot use for example:</p>
  
  <pre><code>kubectl expose pod site-web --type=LoadBalancer --port=8080
  </code></pre>
  
  <p>any idea?</p>