apiVersion: apps/v1
kind: Deployment
metadata:
  name: faf-content
  labels:
    app: faf-content
spec:
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: faf-content
  template:
    metadata:
      labels:
        app: faf-content
      annotations:
        prometheus.io/scrape: 'false'
    spec:
      containers:
        - image: nginx:1.21-alpine
          imagePullPolicy: Always
          name: faf-content
          envFrom:
            - configMapRef:
                name: faf-content
          ports:
            - containerPort: 80
          volumeMounts:
            - name: faf-content-pvc
              mountPath: /content
              readOnly: true
            - name: config
              mountPath: /etc/nginx/conf.d/default.conf
              subPath: default.conf
          startupProbe:
            httpGet:
              port: 80
              path: /health
            initialDelaySeconds: 10
            failureThreshold: 30
            periodSeconds: 3
          livenessProbe:
            httpGet:
              port: 80
              path: /health
            failureThreshold: 3
            periodSeconds: 10
      restartPolicy: Always
      volumes:
        - name: faf-content-pvc
          persistentVolumeClaim:
            claimName: faf-content-pvc
            readOnly: true
        - name: config
          configMap:
            name: faf-content



