name: httpd
containers:
- image: centos/httpd
services:
- name: httpd
  ports:
  - port: 8080
    targetPort: 80
    endpoint: minikube.local

name: httpd
containers:
- image: centos/httpd
services:
  - name: httpd
    type: NodePort
    ports:
    - port: 8080
      targetPort: 80

Switch to NodePort in example
Switch to NodePort in example

Simplest of simple should use NodePort
