# Service for clusters automatic cleanup scripts on dev and stg envs
# https://github.com/tidbcloud/cloud-finops-system/actions/workflows/dev-stg-cluster-cleanup.yaml
apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
    service.beta.kubernetes.io/aws-load-balancer-type: external
    service.beta.kubernetes.io/aws-load-balancer-internal: "false"
    service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: instance
  labels:
    app: dbaas-core-svc-server
  name: dbaas-core-svc-server-grpc-cleanup
spec:
  loadBalancerSourceRanges:
    - 104.196.246.224/32
    - 35.233.250.206/32
  ports:
    - name: grpc
      port: 8888
      protocol: TCP
      targetPort: 8888
  selector:
    app: dbaas-core-svc-server
  type: LoadBalancer
