apiVersion: v1
kind: Service
metadata:
  labels:
    app.kubernetes.io/component: metrics-server
  name: metrics-server
  namespace: kube-system
spec:
  ports:
  - name: https
    port: 443
    protocol: TCP
    targetPort: https
  selector:
    app.kubernetes.io/name: metrics-server