apiVersion: v1
kind: Service
metadata:
  annotations:
    #https://cloud.tencent.com/document/product/457/51258
    service.cloud.tencent.com/direct-access: "true"
    service.kubernetes.io/tke-existed-lbid: "lb-123456"
  labels:
    helm.sh/chart: ingress-nginx-3.23.0
    app.kubernetes.io/name: ingress-nginx-class01
    app.kubernetes.io/instance: ingress-nginx-class01
    app.kubernetes.io/version: 0.44.0
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/component: controller
  name: ingress-nginx-controller-class01
  namespace: ingress-nginx
spec:
  type: LoadBalancer
  ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: http
    - name: https
      port: 443
      protocol: TCP
      targetPort: https
  selector:
    app.kubernetes.io/name: ingress-nginx-class01
    app.kubernetes.io/instance: ingress-nginx-class01
    app.kubernetes.io/component: controller
