apiVersion: v1
kind: ConfigMap
metadata:
  name: admin-config
  namespace: {{ .Release.Namespace }}
data:
  dubbo-cp.yaml: |-
    # 可选 k8s half universal
    deploy_mode: half
    #mode: test
    mode: zone
    #store:
    #  traditional:
    #    config_center: zookeeper://localhost:2181
    #    registry:
    #      address: zookeeper://localhost:2181
    #    metadata_report:
    #      address: zookeeper://localhost:2181
    store:
      traditional:
        config_center: nacos://47.76.94.134:8848?username=nacos&password=nacos
        registry:
          address: nacos://47.76.94.134:8848?username=nacos&password=nacos
        metadata_report:
          address: nacos://47.76.94.134:8848?username=nacos&password=nacos
    admin:
      metric_dashboards:
        application:
          baseURL: http://47.251.1.59:3000/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed/application
        instance:
          baseURL: http://47.251.1.59:3000/d/dcf5defe-d198-4704-9edf-6520838880e9/instance
        service:
          baseURL: http://47.251.1.59:3000/d/ec689613-b4a1-45b1-b8bd-9d557059f970/service/
      trace_dashboards:
        application:
          baseURL: http://47.251.1.59:3000/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f/application
        instance:
          baseURL: http://47.251.1.59:3000/d/f5f48f75-13ec-489b-88ae-635ae38d8618/instance
        service:
          baseURL: http://47.251.1.59:3000/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662/service
      prometheus: http://47.251.116.82:9090

      # grafana should config root_url/allowed_origins/serve_from_sub_path:
      # eg.
      # root_url = %(protocol)s://%(domain)s：%(http_port)s/grafana
      # allowed_origins = *
      # allow_embedding = true
      # serve_from_sub_path = true
      grafana: http://47.251.1.59:3000/
    #multizone:
    #  zone:
    #    globalAddress: grpc://127.0.0.1:5685
    #  global:
    #    dds:
    #      grpcPort: 5685
    runtime:
      kubernetes:
        admissionServer:
          address: 10.23.132.51
          port: 5443
          certDir: test/cert