apiVersion: apps/v1
kind: Deployment
metadata:
  name: shard-rs
  labels:
    app: shard-rs
spec:
  selector:
    matchLabels:
      app: shard-rs
  template:
    metadata:
      labels:
        app: shard-rs
    spec:
      containers:
        - name: shard-rs
          image: shard-rs-image
          env:
            - name: SHARD_RS_CONFIG_DISCORD_APP_ID
              valueFrom:
                secretKeyRef:
                  name: architus-secret
                  key: client_id
            - name: SHARD_RS_CONFIG_DISCORD_TOKEN
              valueFrom:
                secretKeyRef:
                  name: architus-secret
                  key: bot_token
            - name: SHARD_RS_CONFIG_DATABASE__USER
              valueFrom:
                secretKeyRef:
                  name: architus-secret
                  key: db_user
            - name: SHARD_RS_CONFIG_DATABASE__PASSWORD
              valueFrom:
                secretKeyRef:
                  name: architus-secret
                  key: db_pass
