Joey
11/11/2022, 8:48 PMJoey
11/11/2022, 8:48 PMsymion
11/11/2022, 8:49 PMJoey
11/11/2022, 8:49 PMJoey
11/11/2022, 8:49 PMJoey
11/11/2022, 8:50 PM--dispatch-upstream-addr=kubernetes:///spicedb.default:50053
Joey
11/11/2022, 8:50 PMspicedb.default
is, I believe, your serviceJoey
11/11/2022, 8:50 PMsymion
11/11/2022, 8:50 PMJoey
11/11/2022, 8:51 PMJoey
11/11/2022, 8:51 PMJoey
11/11/2022, 8:51 PMsymion
11/11/2022, 8:53 PMSPICEDB_UPSTREAM_ADDR=kubernetes://spicedb.default.svc.cluster.local:50051
?symion
11/11/2022, 8:53 PMJoey
11/11/2022, 8:53 PMJoey
11/11/2022, 8:53 PMSPICEDB_DISPATCH_UPSTREAM_ADDR=...
Joey
11/11/2022, 8:54 PM50053
Joey
11/11/2022, 8:54 PMsymion
11/11/2022, 9:16 PMSPICEDB_DISPATCH_CLUSTER_ENABLED=true
?Joey
11/11/2022, 9:20 PMsymion
11/11/2022, 9:20 PMsymion
11/11/2022, 9:23 PMSingha1
11/11/2022, 9:23 PMJoey
11/11/2022, 9:24 PMJoey
11/11/2022, 9:25 PMsymion
11/11/2022, 9:25 PMsymion
11/11/2022, 9:26 PM{"level":"info","grpc.component":"server","grpc.method":"CheckPermission","grpc.method_type":"unary","grpc.service":"authzed.api.v1.PermissionsService","peer.address":"10.11.246.160:55750","protocol":"grpc","requestID":"6d51de7529f6d1ba4a79b5b8811fc1f1","grpc.start_time":"2022-11-11T21:24:38Z","grpc.code":"OK","grpc.time_ms":"0.02","time":"2022-11-11T21:24:38Z","message":"started call"}
{"level":"warn","grpc.component":"server","grpc.method":"CheckPermission","grpc.method_type":"unary","grpc.service":"authzed.api.v1.PermissionsService","peer.address":"10.11.246.160:55750","protocol":"grpc","requestID":"6d51de7529f6d1ba4a79b5b8811fc1f1","grpc.start_time":"2022-11-11T21:24:38Z","grpc.code":"Unavailable","grpc.error":"rpc error: code = Unavailable desc = last connection error: connection closed before server preface received","grpc.time_ms":"7.6","time":"2022-11-11T21:24:38Z","message":"finished call"}
symion
11/11/2022, 9:28 PMapiVersion: v1
kind: Service
metadata:
name: database
namespace: spicedb
labels:
app: database
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: 50051
- name: dispatch
protocol: TCP
port: 8080
targetPort: 50053
symion
11/11/2022, 9:28 PM- name: SPICEDB_DISPATCH_UPSTREAM_ADDR
value: kubernetes:///database.spicedb:8080
- name: SPICEDB_DISPATCH_CLUSTER_ENABLED
value: "true"
Singha1
11/11/2022, 9:29 PM