apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    service: match-timeline-manager
    region: euw1
  name: match-timeline-manager-euw1
spec:
  replicas: 1
  selector:
    matchLabels:
      service: match-timeline-manager
      region: euw1
  template:
    metadata:
      labels:
        service: match-timeline-manager
        region: euw1
    spec:
      containers:
      - env:
          - name: TAG
            valueFrom:
              configMapKeyRef:
                name: env
                key: TAG
          - name: REDIS_HOST
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: REDIS_HOST
          - name: REDIS_PORT
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: REDIS_PORT
          - name: PERSISTENT_HOST
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: PERSISTENT_HOST
          - name: PERSISTENT_PORT
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: PERSISTENT_PORT
          - name: PERSISTENT_DATABASE
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: PERSISTENT_DATABASE
          - name: PERSISTENT_USER
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: PERSISTENT_USER
          - name: LEAGUE_UPDATE
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: LEAGUE_UPDATE
          - name: API_KEY
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: API_KEY
          - name: SERVER
            valueFrom:
              configMapKeyRef:
                name: secrets-env
                key: SERVER
          - name: DEBUG
        image: 'registry.yearin.lol/match_timeline_manager:latest'
        name: match-timeline-manager
      hostname: match-timeline-manager-euw1
      restartPolicy: Always
status: {}
