aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/graphite/deployment.yaml
blob: 17c66f866728dada0829b0037575eddd05fa398c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: apps/v1
kind: Deployment
metadata:
  name: graphite
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: graphite
  template:
    metadata:
      labels:
        app: graphite
    spec:
      containers:
        - name: graphite
          image: graphiteapp/graphite-statsd:latest
          imagePullPolicy: Always
          resources:
            requests:
              cpu: 200m
              memory: 500Mi
            limits:
              cpu: 1000m
              memory: 750Mi
          ports:
            - containerPort: 80
            - containerPort: 8125
            - containerPort: 8126
          volumeMounts:
            - mountPath: /opt/graphite/storage
              name: graphite-volume
      volumes:
        - name: graphite-volume
          persistentVolumeClaim:
            claimName: graphite-storage