---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: gamebot
spec:
  selector:
    matchLabels:
      app: gamebot
  replicas: 1
  template:
    metadata:
      labels:
        app: gamebot
    spec:
      automountServiceAccountToken: false
      containers:
        - name: gamebot
          image: registry.31337.ooo:5000/gamebot
          imagePullPolicy: Always
          env:
            - name: KUBECONFIG
              value: /etc/config/game.k8s.config
            - name: DATABASE_API
              value: http://database-api/
          volumeMounts:
          - name: config-volume
            mountPath: /etc/config
      volumes:
        - name: config-volume
          configMap:
            name: game-config
            
