apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
  name: cicd-route  # TODO change this route name
spec:
  http:
    - name: cicd-route # TODO change this route name
      match:
        hosts:
          - xx.pingcap.net # TODO Replace xx with your own domain name
        paths:
          - /*
      backends:
        - serviceName: cicd-service # TODO change this Service name, and make sure it matches the name in service.yml
          servicePort: 80 # TODO change this port, and make sure it matches the port in service.yml
      # apisix 的插件配置，这里配置了 redirect（http --> https ）
      plugins:
        - name: redirect
          enable: true
          config:
            http_to_https: true