Skip to content

Instantly share code, notes, and snippets.

@tuna2134
Last active July 12, 2024 01:30
Show Gist options
  • Save tuna2134/afddf70695f345a155c2368c9fc9099d to your computer and use it in GitHub Desktop.
Save tuna2134/afddf70695f345a155c2368c9fc9099d to your computer and use it in GitHub Desktop.

Manifests

apiVersion: sharding.k8s.io/auto
kind: AutoShardingBot
metadata:
  name: komari-sama
  labels:
    app: sukisuki
spec:
  metadata:
    each_shard_ids: 2 // [[0, 1], [2, 3], [4, 5]]
  template:
    spec:
      name: komari-sama
      image: ghcr.io/tuna2134/komari-sama
      env:
      - name: DISCORD_TOKEN
        value: Your token
      - name: SHARDS
        valueType: Shards
      - name: SHARD_IDS
        valueType: EachShardIds

After run that

root@tuna:~ $ kubectl get deployments
NAME                       READY   UP-TO-DATE   AVAILABLE   AGE
komari-sama-deployment     3/3     3            3           18s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment