{{ if eq .Values.influxdb.host "" -}}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ include "chart.fullname" . }}-influxdb
  labels:
    app: influxdb
    chart: {{ include "chart.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: influxdb
        release: {{ .Release.Name }}
    spec:
      containers:
      - name: influxdb
        image: influxdb
        imagePullPolicy: {{ .Values.image.pullPolicy }}
        env:
        - name: INFLUXDB_DB
          value: telegraf
        resources:
          requests:
            memory: 100Mi
            cpu: 50m
          limits:
            memory: 200Mi
            cpu: 1000m
        volumeMounts:
        - name: influxdb-config
          mountPath: /etc/influxdb/influxdb.conf
          subPath: influxdb.conf
        - mountPath: /var/lib/influxdb
          name: influxdb
      volumes:
      - name: influxdb-config
        configMap:
          name: {{ include "chart.fullname" . }}-influxdb
      - name: influxdb
        persistentVolumeClaim:
          claimName: {{ include "chart.fullname" . }}-influxdb
{{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- end }}

{{ if eq .Values.influxdb.host "" -}}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ include "chart.fullname" . }}-influxdb
  labels:
    app: influxdb
    chart: {{ include "chart.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: influxdb
        release: {{ .Release.Name }}
    spec:
      containers:
      - name: influxdb
        image: influxdb
        imagePullPolicy: {{ .Values.image.pullPolicy }}
        env:
        - name: INFLUXDB_DB
          value: telegraf
        resources:
          requests:
            memory: 200Mi
            cpu: 50m
          limits:
            memory: 500Mi
            cpu: 1000m
        volumeMounts:
        - name: influxdb-config
          mountPath: /etc/influxdb/influxdb.conf
          subPath: influxdb.conf
        - mountPath: /var/lib/influxdb
          name: influxdb
      volumes:
      - name: influxdb-config
        configMap:
          name: {{ include "chart.fullname" . }}-influxdb
      - name: influxdb
        persistentVolumeClaim:
          claimName: {{ include "chart.fullname" . }}-influxdb
{{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- end }}

Increase influxdb deployment memory request & limit in helm chart
Increase influxdb deployment memory request & limit in helm chart
