<p>I'm new to Kubernetes. I'm trying to convert the following DOCKER container code to YAML for kubernetes.</p>
<pre><code>docker container run -d -p 80:80 --name MyFirstContainerWeb docker/getting-started:pwd
</code></pre>
<p>This is what I have come up with so far. Can someone please help me with the ingress part? I'm using Docker Desktop (which has kubernetes cluster). My final goal is to see the website in the browser.</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: getting-started-deployment 
spec:
  selector:
    matchLabels:
      app: getting-started 
  replicas: 2
  template:
    metadata:
      labels:
        app: getting-started
    spec:
      containers:
      - name: getting-started-container 
        image: docker/getting-started:pwd
        ports:
        - containerPort: 80
---
 apiVersion: v1
 kind: Service
 metadata:
   name: getting-started-service 
   namespace: default
   labels:
     app: myfirstcontainer
 spec:
   ports:
   - protocol: TCP
     port: 80
     targetPort: 80
   selector:
     app: getting-started-service
</code></pre>

<p>You can use port-forward to forward to service port by running</p>
<pre><code>$ kubectl port-forward svc/getting-started-service 80

</code></pre>
<p>To learn more about port-forwarding click <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">here</a></p>
