apiVersion: apps/v1
kind: Deployment
metadata:
  name: grafana
spec:
  selector:
    matchLabels:
      app: grafana
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: grafana
    spec:
      containers:
      - name: grafana
        image: my_grafana
        imagePullPolicy: Never
        ports:
        - name: graf-port
          containerPort: 3000
        livenessProbe:
          exec:
            command:
            - sh
            - -c
            - "service telegraf status && pgrep grafana-server"
          initialDelaySeconds: 5
          periodSeconds: 5
