<p>i have created a deployment and a service to deploy an angular app. I'm using minikube and here is my deployment.yaml:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: angular-deployment
spec:
  selector: 
    matchLabels:
      app: angular
  replicas: 1
  template:
    metadata:
     labels:
      app: angular
  spec: 
    containers:
    - name: angular
      image: dhartl231198/k3s-dashboard
      imagePullPolicy: Always
      ports:
      - containerPort: 80
</code></pre>
<hr />
<pre><code>kind: Service
apiVersion: v1
metadata:
 name: angular-service
spec:
 selector:
   app: angular
 ports:
 - protocol: TCP
   port: 8080
   targetPort: 80
 type: ClusterIP
</code></pre>
<p>the deployment is already reachable within the cluster but i cannot access it from my machine.</p>

Dominik Hartl
<p>You haven't exposed your <code>Service</code> to outside of your cluster. That's why you can't access the Service from your local machine.</p>
<p>Now, you have two options:</p>
<ol>
<li>Make the Service type <code>NodePort</code>, then follow this <a href="https://minikube.sigs.k8s.io/docs/handbook/accessing/" rel="nofollow noreferrer">official minikube guide</a>.</li>
<li>Use <code>kubectl port-forward svc/angular-service :8080</code> on a terminal. Then, use the forwarded port to connect from the local machine.</li>
</ol>
