apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    service: summoner-id-manager
    region: euw1
  name: summoner-id-manager
spec:
  replicas: 1
  selector:
    matchLabels:
      service: summoner-id-manager
      region: euw1
  template:
    metadata:
      labels:
        service: summoner-id-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/summoner_id_manager:latest'
        name: summoner-id-manager
      hostname: summoner-id-euw1
      restartPolicy: Always
status: {}
