apiVersion: apps/v1
kind: StatefulSet
metadata:
  namespace: jitsi
  name: jvb
spec:
  serviceName: "jvb"
  selector:
    matchLabels:
      k8s-app: jvb
      shard: "1"
  template:
    metadata:
      labels:
        k8s-app: jvb
        shard: "1"
    spec:
      # avoid that pods of different shards share zone
      nodeSelector:
        topology.kubernetes.io/zone: asia-northeast3-b
      containers:
        - name: jvb
          env:
            - name: XMPP_SERVER
              value: shard-1-prosody
          args:
            - "30400"
            - "/init"
