apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ template "httpbin.fullname" . }}
  labels:
    app: {{ template "httpbin.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}  
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ template "httpbin.name" . }}
  strategy: {}
  template:
    metadata:
      labels:
        app: {{ template "httpbin.name" . }}
        release: {{ .Release.Name }}
    spec:
      containers:
      - name: {{ .Chart.Name }}
        image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
        imagePullPolicy: {{ .Values.image.pullPolicy }}
        livenessProbe:
          httpGet:
            path: /
            port: {{ .Values.service.internalPort }}
        readinessProbe:
          httpGet:
            path: /
            port: {{ .Values.service.internalPort }}        
        ports:
          - containerPort: {{ .Values.service.internalPort }}
        resources:
{{ toYaml .Values.resources | indent 10 }}

status: {}
---
