apiVersion: apps/v1
kind: Deployment
metadata:
  name: fc-client
  labels:
    app: fc-client
  namespace: tarroja
spec:
  replicas: 1
  selector:
    matchLabels:
      app: fc-client
  selector:
    matchLabels:
      app: fc-client
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: fc-client
    spec:
      containers:
      - name: fc-client
        image: juanitotrrj/fc-client:latest
        imagePullPolicy: Always
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: http
            scheme: HTTP
          initialDelaySeconds: 60
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources:
          limits:
            cpu: 200m
            memory: 300Mi
          requests:
            cpu: 5m
            memory: 100Mi
