apiVersion: apps/v1
kind: Deployment
metadata:
  name: recruitment-tool-server
  labels:
    app: recruitment-tool-server
spec:
  replicas: 1
  selector:
    matchLabels:
      app: recruitment-tool-server
  template:
    metadata:
      labels:
        app: recruitment-tool-server
    spec:
      containers:
      - name: recruitment-tool-server
        image: rekrysofta/recruitmenttool_server
        ports:
        - containerPort: 8080
        env:
        - name: GOOGLE_APPLICATION_CREDENTIALS
          value: /etc/gcloud-service-account/emblica-212815-8c1abce476a1.json
        - name: SITE_URL
          value: "https://rekrysofta-staging.apps.emblica.com"
        envFrom:
        - secretRef:
            name: database-staging
        - secretRef:
            name: smtp
        volumeMounts:
        - name: gcloud-service-account
          mountPath: /etc/gcloud-service-account
          readOnly: true
      volumes:
      - name: gcloud-service-account
        secret:
          secretName: gcloud-service-account