# Copyright (c) 2021 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: fip-healthcheck-controller
  labels: {}
spec:
  replicas: 2
  selector:
    matchLabels: {}
  template:
    metadata:
      labels: {}
    spec:
      serviceAccountName: fip-healthcheck-controller
      securityContext:
        fsGroup: 999
        runAsGroup: 999
        runAsUser: 1001
      containers:
      - name: fip-healthcheck-controller
        image: registry.sighup.io/poc/fip-healthcheck-controller:unstable
        imagePullPolicy: IfNotPresent
        args: ["--log-level", "$(HC_LOG_LEVEL)", "--resync", "$(HC_RESYNC_SECONDS)"]
        envFrom:
          - configMapRef:
              name: hc-envs
