github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/kube-prometheus/grafana-deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app: grafana
     6    name: grafana
     7    namespace: monitoring
     8  spec:
     9    replicas: 1
    10    selector:
    11      matchLabels:
    12        app: grafana
    13    template:
    14      metadata:
    15        labels:
    16          app: grafana
    17      spec:
    18        containers:
    19        - image: grafana/grafana:6.0.1
    20          name: grafana
    21          ports:
    22          - containerPort: 3000
    23            name: http
    24          readinessProbe:
    25            httpGet:
    26              path: /api/health
    27              port: http
    28          resources:
    29            limits:
    30              cpu: 200m
    31              memory: 200Mi
    32            requests:
    33              cpu: 100m
    34              memory: 100Mi
    35          volumeMounts:
    36          - mountPath: /var/lib/grafana
    37            name: grafana-storage
    38            readOnly: false
    39          - mountPath: /etc/grafana/provisioning/datasources
    40            name: grafana-datasources
    41            readOnly: false
    42          - mountPath: /etc/grafana/provisioning/dashboards
    43            name: grafana-dashboards
    44            readOnly: false
    45          - mountPath: /grafana-dashboard-definitions/0/k8s-cluster-rsrc-use
    46            name: grafana-dashboard-k8s-cluster-rsrc-use
    47            readOnly: false
    48          - mountPath: /grafana-dashboard-definitions/0/k8s-node-rsrc-use
    49            name: grafana-dashboard-k8s-node-rsrc-use
    50            readOnly: false
    51          - mountPath: /grafana-dashboard-definitions/0/m3db-node-details
    52            name: grafana-dashboard-m3db-node-details
    53            readOnly: false
    54          - mountPath: /grafana-dashboard-definitions/0/promremotebench
    55            name: grafana-dashboard-promremotebench
    56            readOnly: false
    57          - mountPath: /grafana-dashboard-definitions/0/k8s-resources-cluster
    58            name: grafana-dashboard-k8s-resources-cluster
    59            readOnly: false
    60          - mountPath: /grafana-dashboard-definitions/0/k8s-resources-namespace
    61            name: grafana-dashboard-k8s-resources-namespace
    62            readOnly: false
    63          - mountPath: /grafana-dashboard-definitions/0/k8s-resources-pod
    64            name: grafana-dashboard-k8s-resources-pod
    65            readOnly: false
    66          - mountPath: /grafana-dashboard-definitions/0/k8s-resources-workload
    67            name: grafana-dashboard-k8s-resources-workload
    68            readOnly: false
    69          - mountPath: /grafana-dashboard-definitions/0/k8s-resources-workloads-namespace
    70            name: grafana-dashboard-k8s-resources-workloads-namespace
    71            readOnly: false
    72          - mountPath: /grafana-dashboard-definitions/0/nodes
    73            name: grafana-dashboard-nodes
    74            readOnly: false
    75          - mountPath: /grafana-dashboard-definitions/0/persistentvolumesusage
    76            name: grafana-dashboard-persistentvolumesusage
    77            readOnly: false
    78          - mountPath: /grafana-dashboard-definitions/0/pods
    79            name: grafana-dashboard-pods
    80            readOnly: false
    81          - mountPath: /grafana-dashboard-definitions/0/statefulset
    82            name: grafana-dashboard-statefulset
    83            readOnly: false
    84        nodeSelector:
    85          beta.kubernetes.io/os: linux
    86        securityContext:
    87          runAsNonRoot: true
    88          runAsUser: 65534
    89        serviceAccountName: grafana
    90        volumes:
    91        - emptyDir: {}
    92          name: grafana-storage
    93        - name: grafana-datasources
    94          secret:
    95            secretName: grafana-datasources
    96        - configMap:
    97            name: grafana-dashboards
    98          name: grafana-dashboards
    99        - configMap:
   100            name: grafana-dashboard-k8s-cluster-rsrc-use
   101          name: grafana-dashboard-k8s-cluster-rsrc-use
   102        - configMap:
   103            name: grafana-dashboard-k8s-node-rsrc-use
   104          name: grafana-dashboard-k8s-node-rsrc-use
   105        - configMap:
   106            name: grafana-dashboard-k8s-resources-cluster
   107          name: grafana-dashboard-k8s-resources-cluster
   108        - configMap:
   109            name: grafana-dashboard-k8s-resources-namespace
   110          name: grafana-dashboard-k8s-resources-namespace
   111        - configMap:
   112            name: grafana-dashboard-k8s-resources-pod
   113          name: grafana-dashboard-k8s-resources-pod
   114        - configMap:
   115            name: grafana-dashboard-m3db-node-details
   116          name: grafana-dashboard-m3db-node-details
   117        - configMap:
   118            name: grafana-dashboard-promremotebench
   119          name: grafana-dashboard-promremotebench
   120        - configMap:
   121            name: grafana-dashboard-k8s-resources-workload
   122          name: grafana-dashboard-k8s-resources-workload
   123        - configMap:
   124            name: grafana-dashboard-k8s-resources-workloads-namespace
   125          name: grafana-dashboard-k8s-resources-workloads-namespace
   126        - configMap:
   127            name: grafana-dashboard-nodes
   128          name: grafana-dashboard-nodes
   129        - configMap:
   130            name: grafana-dashboard-persistentvolumesusage
   131          name: grafana-dashboard-persistentvolumesusage
   132        - configMap:
   133            name: grafana-dashboard-pods
   134          name: grafana-dashboard-pods
   135        - configMap:
   136            name: grafana-dashboard-statefulset
   137          name: grafana-dashboard-statefulset