apiVersion: v1
kind: Service
metadata:
  name: mysql
  labels:
    app: mysql
spec:
  type: LoadBalancer
  selector:
    app: mysql
    tier: mysql
  ports:
    - protocol: TCP
      port: 3306
      targetPort: 3306
      name: mysql