--- kind: Service apiVersion: v1 metadata: namespace: sre name: service-mysql-for-apollo-test-beta-env labels: app: service-mysql-for-apollo-test-beta-env spec: ports: - protocol: TCP port: 3306 targetPort: 3306 type: ClusterIP sessionAffinity: None --- kind: Endpoints apiVersion: v1 metadata: namespace: sre name: service-mysql-for-apollo-test-beta-env subsets: - addresses: - ip: your-mysql-addresses ports: - protocol: TCP port: 3306