Minikube expose MySQL running on localhost as service
Kubernetes allows you to create a service without selector, and cluster will not create related endpoint for this service, this feature is usually used to proxy a legacy component or an outside component. Create a service without selector apiVersion: v1 kind: Service metadata: name: my-service spec: ports: – protocol: TCP port: 1443 targetPort: <YOUR_MYSQL_PORT> Create … Read more