<p>I am learning kubernetes and created first pod using below command</p>
<pre><code>kubectl run helloworld --image=&lt;image-name&gt; --port=8080
</code></pre>
<p>The Pod creation was successful.
But since it is neither a ReplicationController or a Deloyment, how could I expose it as a service. Please advise.</p>

<p>You can create the service with the same set of selector and labels</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: my-service
spec:
  selector:
    app: helloworld
  ports:
    - protocol: TCP
      port: 80
      targetPort: 9376
</code></pre>
<p>so if selector matching it will route the traffic to POD and you can expose it.</p>
<p>ref : <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/</a></p>
