https://authzed.com logo
#spicedb
Title
# spicedb
r

romil

04/12/2022, 6:11 AM
Hello, Trying to configure the spicedb dispatcher and getting below error from respective pods kuberesolver: watching ended with error='invalid response code 403 for service spicedb Below is the snippet of the configuration:
Copy code
apiVersion: "v1"
kind: "Service"
metadata:
  name: "spicedb"
  labels:
    app: "spicedb"
spec:
  selector:
    app: "spicedb"
  type: "LoadBalancer"
  ports:
    - name: "grpc"
      port: 50051
      protocol: "TCP"
**      targetPort: 50051
**    - name: "internal"
      port: 50053
      protocol: "TCP"
      targetPort: 50053
    - name: "http"
      port: 8443
      protocol: "TCP"
      targetPort: 8443

-------

  spec:
      dnsPolicy: "ClusterFirst"
      restartPolicy: "Always"
      terminationGracePeriodSeconds: 30
      containers:
        - name: "spicedb"
          image: "quay.io/authzed/spicedb"
          imagePullPolicy: "IfNotPresent"
          command: ["spicedb", "serve"]
          args:
            - grpc-no-tls
            - --http-enabled
            - --dispatch-upstream-addr=kubernetes:///spicedb.authz:50051

------
I assume these are internal port that needs to be configured and not the one expose . Any view why the error still coming ?