---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: server-marker
  namespace: marker
spec:
  selector:
    matchLabels:
      run: server
  replicas: 1
  template:
    metadata:
      labels:
        run: server
    spec:
      containers:
      - name: server-marker
        image: medinvention/marker-server:0.1.1
        imagePullPolicy: Always
        ports:
          - containerPort: 5000
        volumeMounts:
          - name: maker-data
            mountPath: /var/db
        env:
          - name: DB_PATH
            value: /var/db/marker.db
          - name: KEYCLOAK_REALM
            value: master
          - name: KEYCLOAK_URL
            value: https://sso.medinvention.dev/auth/
          - name: KEYCLOAK_APP
            value: marker-ui
          - name: NODEBUG
            value: '1'
      volumes:
        - name: maker-data
          persistentVolumeClaim:
            claimName: server-marker-pvc