apiVersion: apps/v1
kind: Deployment
metadata:
  name: apjung-backend-prod-deploy
  namespace: prod
  labels:
    app.kubernetes.io/name: apjung-backend-prod
    app.kubernetes.io/instance: apjung-backend-prod-deploy
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/instance: apjung-backend-prod-pod
  template:
    metadata:
      labels:
        app.kubernetes.io/name: apjung-backend-prod
        app.kubernetes.io/instance: apjung-backend-prod-pod
    spec:
      imagePullSecrets:
        - name: dockerhub-secrets
      containers:
        - name: apjung-backend
          image: labyu/apjung-backend:prod-15
          ports:
            - containerPort: 8080
          imagePullPolicy: Always
          resources:
            requests:
              memory: "1000Mi"
              cpu: "250m"
          envFrom:
            - secretRef:
                name: apjung-backend-prod.secret-db
            - secretRef:
                name: apjung-backend-prod.secret-jwt
            - secretRef:
                name: apjung-backend-prod.secret-smtp
            - secretRef:
                name: apjung-backend-aws.secret
