kind: Deployment
apiVersion: apps/v1
metadata:
  labels:
    heritage: huv
    app: ${_name}
  name: ${_name}
spec:
  replicas: 3
  selector:
    matchLabels:
      app: ${_name}
  template:
    metadata:
      labels:
        app: ${_name}
      name: ${_name}
    spec:
      containers:
        - name: ${_name}
          image: ${image_digest}
          env:
            - name: API_READ_KEY
              value: ${api_read_key}
            - name: SEGMENT_WRITE_KEY
              value: ${segment_write_key}
            - name: SENTRY_DSN
              value: ${sentry_dsn}
            - name: CLUSTER_ENV
              value: ${environment}
          ports:
            - name: http
              containerPort: 3000
              protocol: TCP
          livenessProbe:
            httpGet:
              path: /internal/health
              port: 3000
          readinessProbe:
            httpGet:
              path: /internal/health
              port: 3000
