github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/m3coordinator-two.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: ConfigMap
     4  metadata:
     5    labels:
     6      app: m3coordinator
     7    name: m3coordinator-dedicated-test-cluster
     8  data:
     9    coordinator.yaml: |+
    10      listenAddress: 0.0.0.0:7201
    11      metrics:
    12        scope:
    13          prefix: "coordinator"
    14        prometheus:
    15          handlerPath: /metrics
    16          listenAddress: 0.0.0.0:7203 # until https://github.com/m3db/m3/issues/682 is resolved
    17        sanitization: prometheus
    18        samplingRate: 1.0
    19        extended: none
    20      clusters:
    21        - namespaces:
    22          - namespace: default
    23            type: unaggregated
    24            retention: 48h
    25          client:
    26            config:
    27              service:
    28                env: default/test-cluster
    29                zone: embedded
    30                service: m3db
    31                cacheDir: /var/lib/m3kv
    32                etcdClusters:
    33                - zone: embedded
    34                  endpoints:
    35                  - http://etcd-0.etcd:2379
    36      ingest:
    37        ingester:
    38          workerPoolSize: 10000
    39          opPool:
    40            size: 10000
    41          retry:
    42            maxRetries: 3
    43            jitter: true
    44          logSampleRate: 0.01
    45        m3msg:
    46          server:
    47            listenAddress: "0.0.0.0:7507"
    48            retry:
    49              maxBackoff: 10s
    50              jitter: true
    51      carbon:
    52        ingester:
    53          listenAddress: "0.0.0.0:7204"
    54      tagOptions:
    55        idScheme: quoted
    56  
    57  ---
    58  apiVersion: v1
    59  kind: Service
    60  metadata:
    61    labels:
    62      app: m3coordinator
    63    name: m3coordinator-dedicated-test-cluster
    64    namespace: default
    65  spec:
    66    ports:
    67    - name: coordinator
    68      port: 7201
    69      protocol: TCP
    70      targetPort: 7201
    71    - name: coord-debug
    72      port: 7203
    73      protocol: TCP
    74      targetPort: 7203
    75    selector:
    76      app: m3coordinator
    77    type: ClusterIP
    78  
    79  ---
    80  apiVersion: v1
    81  kind: Service
    82  metadata:
    83    labels:
    84      app: m3coordinator
    85    name: m3coordinator-dedicated-test-cluster-node-local
    86    namespace: default
    87  spec:
    88    ports:
    89    - name: coordinator
    90      port: 7201
    91      protocol: TCP
    92      targetPort: 7201
    93      nodePort: 30000
    94    selector:
    95      app: m3coordinator
    96    type: NodePort
    97  
    98  ---
    99  apiVersion: apps/v1
   100  kind: Deployment
   101  metadata:
   102    labels:
   103      app: m3coordinator
   104      deployment: dedicated-test-cluster
   105    name: coordinator-dedicated
   106  spec:
   107    replicas: 2
   108    strategy:
   109      type: RollingUpdate
   110    selector:
   111      matchLabels:
   112        app: m3coordinator
   113        deployment: dedicated-test-cluster
   114    template:
   115      metadata:
   116        labels:
   117          app: m3coordinator
   118          deployment: dedicated-test-cluster
   119      spec:
   120        containers:
   121        - name: m3coordinator
   122          image: quay.io/m3db/m3coordinator:latest
   123          args:
   124          - "-f"
   125          - "/etc/m3/coordinator.yaml"
   126          volumeMounts:
   127          - name: config
   128            mountPath: /etc/m3
   129          imagePullPolicy: Always
   130          ports:
   131          - name: coordinator
   132            containerPort: 7201
   133            protocol: TCP
   134          - name: debug
   135            containerPort: 7203
   136            protocol: TCP
   137        volumes:
   138        - name: config
   139          configMap:
   140            name: m3coordinator-dedicated-test-cluster