shy-evening-51366
07/20/2023, 1:47 PM{FLYTECONSOLE_ENDPOINT}/projects
that are not there, because they are at {FLYTEADMIN_ENDPOINT}/projects
Did I misconfigure something? How do I tell Flyteconsole to not look at its own base url for that?
❯ k get svc -n flyte
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
...
flyteadmin LoadBalancer 172.20.236.182 {FLYTEADMIN_ENDPOINT}.<http://elb.amazonaws.com|elb.amazonaws.com> 80:30338/TCP,81:32698/TCP,87:30451/TCP,10254:30759/TCP 29h
flyteconsole LoadBalancer 172.20.137.85 {FLYTECONSOLE_ENDPOINT}.<http://elb.amazonaws.com|elb.amazonaws.com> 80:30048/TCP 29h
...
shy-evening-51366
07/20/2023, 1:55 PMADMIN_API_URL
in the flyte-console-config configmap, but Im not sure if that is the correct solution, as its not mentioned anywhere in the deployment walkthroughshy-evening-51366
07/20/2023, 3:15 PMFailed with Exception Code: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.INTERNAL
details: failed to create a signed url. Error: WebIdentityErr: failed to retrieve credentials
caused by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity
status code: 403, request id: f9376664-606d-441d-8b49-3534a6b368cb
Debug string UNKNOWN:Error received from peer ipv4:{FLYTEADMIN_IP_ADDRESS}:81 {grpc_message:"failed to create a signed url. Error: WebIdentityErr: failed to retrieve credentials\ncaused by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity\n\tstatus code: 403, request id: f9376664-606d-441d-8b49-3534a6b368cb", grpc_status:13, created_time:"2023-07-20T17:13:55.233969+02:00"}
shy-evening-51366
07/20/2023, 3:19 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///{FLYTEADMIN_ENDPOINT}.<http://elb.amazonaws.com:81|elb.amazonaws.com:81>
insecure: true
insecureSkipVerify: true
logger:
show-source: true
level: 0
where 81
is the gRPC port exposed by the flyteadmin LoadBalancer service:
❯ k get svc -n flyte flyteadmin -o yaml
apiVersion: v1
kind: Service
...
spec:
...
ports:
- name: http
nodePort: ...
port: 80
protocol: TCP
targetPort: 8088
- name: grpc
nodePort: ...
port: 81
protocol: TCP
targetPort: 8089
selector:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: flyte-core
<http://app.kubernetes.io/name|app.kubernetes.io/name>: flyteadmin
sessionAffinity: None
type: LoadBalancer
status:
loadBalancer:
ingress:
- hostname: {FLYTEADMIN_ENDPOINT}.<http://elb.amazonaws.com|elb.amazonaws.com>
freezing-journalist-8768
07/20/2023, 4:04 PMthankful-minister-83577
shy-evening-51366
07/20/2023, 5:04 PMshy-evening-51366
07/20/2023, 5:04 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
shy-evening-51366
07/20/2023, 5:06 PMflyte-core
shy-evening-51366
07/20/2023, 5:07 PMthankful-minister-83577
thankful-minister-83577
shy-evening-51366
07/20/2023, 5:09 PMshy-evening-51366
07/20/2023, 5:10 PMthankful-minister-83577
thankful-minister-83577
shy-evening-51366
07/20/2023, 5:10 PMshy-evening-51366
07/20/2023, 5:11 PMthankful-minister-83577
shy-evening-51366
07/20/2023, 5:11 PMshy-evening-51366
07/20/2023, 5:11 PMshy-evening-51366
07/20/2023, 5:12 PMthankful-minister-83577
shy-evening-51366
07/20/2023, 5:13 PMshy-evening-51366
07/20/2023, 5:13 PMshy-evening-51366
07/20/2023, 5:15 PMAnd I should use the gRPC endpoint of flyteadmin in my flyte config.yaml
thankful-minister-83577
freezing-boots-56761
freezing-boots-56761
shy-evening-51366
07/20/2023, 5:20 PMshy-evening-51366
07/20/2023, 7:22 PMflyte-binary
chart Pod comes up and I can view the UI, but on registering a workflow I get this error:
Failed with Exception Code: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.UNAVAILABLE
details: failed to connect to all addresses; last error: INTERNAL: ipv4:{INGRESS_IP}:80: Trying to connect an http1.x server
Debug string UNKNOWN:failed to connect to all addresses; last error: INTERNAL: ipv4:{INGRESS_IP}:80: Trying to connect an http1.x server {grpc_status:14, created_time:"2023-07-20T21:19:54.817303+02:00"}
Using this config (tried a couple of variations for the endpoint but no luck):
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///{flyte_ingress_host}:80
authType: Pkce
insecure: true
insecureSkipVerify: true
logger:
show-source: true
level: 0
creamy-greece-49911
07/20/2023, 8:03 PMPlease open <http://undefined:8080/console>
creamy-greece-49911
07/20/2023, 8:03 PMconfigmap:
# -- Configuration for Flyte console UI
console:
BASE_URL: /console
CONFIG_DIR: /etc/flyte/config
ADMIN_API_URL: flyteadmin
creamy-greece-49911
07/20/2023, 8:04 PMPlease open <http://flyteadmin:8080/console>
thankful-minister-83577
thankful-minister-83577
creamy-greece-49911
07/20/2023, 8:06 PMservice:
annotations:
# Required for the ingress to properly route grpc traffic to grpc port
<http://cloud.google.com/app-protocols|cloud.google.com/app-protocols>: '{"grpc":"HTTP2"}'
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
creamy-greece-49911
07/20/2023, 8:08 PMapiVersion: v1
kind: Service
metadata:
annotations:
<http://cloud.google.com/app-protocols|cloud.google.com/app-protocols>: '{"grpc":"HTTP2"}'
<http://meta.helm.sh/release-name|meta.helm.sh/release-name>: flyte
<http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: flyte
<http://projectcontour.io/upstream-protocol.h2c|projectcontour.io/upstream-protocol.h2c>: grpc
creationTimestamp: "2023-07-17T21:11:12Z"
labels:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: flyte
<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
<http://app.kubernetes.io/name|app.kubernetes.io/name>: flyteadmin
<http://helm.sh/chart|helm.sh/chart>: flyte-core-v1.8.0
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:<http://cloud.google.com/app-protocols|cloud.google.com/app-protocols>: {}
f:<http://meta.helm.sh/release-name|meta.helm.sh/release-name>: {}
f:<http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: {}
f:<http://projectcontour.io/upstream-protocol.h2c|projectcontour.io/upstream-protocol.h2c>: {}
f:labels:
.: {}
f:<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: {}
f:<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: {}
f:<http://app.kubernetes.io/name|app.kubernetes.io/name>: {}
f:<http://helm.sh/chart|helm.sh/chart>: {}
f:spec:
f:externalTrafficPolicy: {}
f:internalTrafficPolicy: {}
f:ports:
.: {}
k:{"port":80,"protocol":"TCP"}:
.: {}
f:name: {}
f:port: {}
f:protocol: {}
f:targetPort: {}
k:{"port":81,"protocol":"TCP"}:
.: {}
f:name: {}
f:port: {}
f:protocol: {}
f:targetPort: {}
k:{"port":87,"protocol":"TCP"}:
.: {}
f:name: {}
f:port: {}
f:protocol: {}
f:targetPort: {}
k:{"port":10254,"protocol":"TCP"}:
.: {}
f:name: {}
f:port: {}
f:protocol: {}
f:targetPort: {}
f:selector: {}
f:sessionAffinity: {}
f:type: {}
manager: terraform-provider-helm_v2.10.1_x5
operation: Update
time: "2023-07-20T19:16:28Z"
name: flyteadmin
namespace: flyte
resourceVersion: "336301862"
uid: 1d565b87-57b1-4eb1-9bd5-dfc1ddc21e32
spec:
clusterIP: 10.182.10.251
clusterIPs:
- 10.182.10.251
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8088
- name: grpc
port: 81
protocol: TCP
targetPort: 8089
- name: redoc
port: 87
protocol: TCP
targetPort: 8087
- name: http-metrics
port: 10254
protocol: TCP
targetPort: 10254
selector:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: flyte
<http://app.kubernetes.io/name|app.kubernetes.io/name>: flyteadmin
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
creamy-greece-49911
07/20/2023, 8:08 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
creamy-greece-49911
07/20/2023, 8:14 PMcreamy-greece-49911
07/20/2023, 8:15 PMcreamy-greece-49911
07/20/2023, 8:15 PMshy-evening-51366
07/20/2023, 8:25 PMshy-evening-51366
07/20/2023, 8:25 PMuse-http2: "true"
set, is there something else to check?shy-evening-51366
07/20/2023, 8:30 PMshy-evening-51366
07/20/2023, 8:31 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
shy-evening-51366
07/21/2023, 8:41 AMshy-evening-51366
07/21/2023, 8:42 AMaverage-finland-92144
07/21/2023, 11:20 AM