---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
  labels:
    name: web
    app: ejson-cloud
spec:
  replicas: 1
  selector:
    matchLabels:
      name: web
      app: ejson-cloud
  progressDeadlineSeconds: 60
  template:
    metadata:
      labels:
        name: web
        app: ejson-cloud
    spec:
      containers:
      - name: app
        image: busybox
        imagePullPolicy: IfNotPresent
        command: ["tail", "-f", "/dev/null"]
        ports:
        - containerPort: 80
          name: http
        volumeMounts:
        - mountPath: /keys
          name: ejson-keys
        - mountPath: /server-cert
          name: server-cert
        env:
        - name: MONITORING_TOKEN
          valueFrom:
            secretKeyRef:
              name: monitoring-token
              key: api-token
      volumes:
      - name: server-cert
        secret:
          secretName: catphotoscom
      - name: ejson-keys
        secret:
          secretName: ejson-keys
