---
apiVersion: v1
kind: Service
metadata:
  name: mysqlservice
  namespace: default
spec:
  selector:
    app: mysql
  type: ClusterIP
  ports:
  - name: mysql
    port: 3306
    targetPort: 3306
    protocol: TCP
...