adamant-kite-43734
12/04/2024, 6:23 PMcreamy-pencil-82913
12/04/2024, 6:25 PMdazzling-bird-17431
12/04/2024, 6:26 PMdazzling-bird-17431
12/04/2024, 6:27 PMdazzling-bird-17431
12/04/2024, 6:36 PManonymous-auth
is set to false
, now I'm trying to figure out how to set it to true
. I have a rancher running in dockercreamy-pencil-82913
12/04/2024, 6:42 PMcreamy-pencil-82913
12/04/2024, 6:43 PMdazzling-bird-17431
12/04/2024, 6:43 PMdazzling-bird-17431
12/04/2024, 6:44 PM$ kubectl --kubeconfig .kube_config get --raw /.well-known/openid-configuration
Error from server (NotFound): the server could not find the requested resource
dazzling-bird-17431
12/04/2024, 6:46 PMkubectl get --raw /.well-known/openid-configuration
{"issuer":"<https://kubernetes.default.svc.cluster.local>","jwks_uri":"<https://x.x.x.x:6443/openid/v1/jwks>","response_types_supported":["id_token"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"]}>
creamy-pencil-82913
12/04/2024, 6:48 PMcreamy-pencil-82913
12/04/2024, 6:48 PMcreamy-pencil-82913
12/04/2024, 6:49 PMcreamy-pencil-82913
12/04/2024, 6:49 PMdazzling-bird-17431
12/04/2024, 6:52 PMcreamy-pencil-82913
12/04/2024, 6:56 PMdazzling-bird-17431
12/04/2024, 6:57 PMdazzling-bird-17431
12/04/2024, 6:57 PMdazzling-bird-17431
12/04/2024, 7:33 PMcreamy-pencil-82913
12/04/2024, 7:49 PMcreamy-pencil-82913
12/04/2024, 7:49 PMdazzling-bird-17431
12/04/2024, 9:11 PMOn RKE2 and K3s clusters, you need to manually enable authorized cluster endpoints
dazzling-bird-17431
12/04/2024, 9:11 PMcreamy-pencil-82913
12/04/2024, 10:16 PMdazzling-bird-17431
12/05/2024, 1:01 PMapiVersion: v1
kind: Config
clusters:
- name: "testjs"
cluster:
server: "<https://myrancherhost.mydomain.com/k8s/clusters/c-m-47k66slf>"
certificate-authority-data: "REDACTED"
users:
- name: "testjs"
user:
token: "REDACTED"
contexts:
- name: "testjs"
context:
user: "testjs"
cluster: "testjs"
current-context: "testjs"
creamy-pencil-82913
12/05/2024, 7:08 PM/.well-known/openid-configuration
right? But the base path in that kubeconfig to use the rancher cluster proxy is /k8s/clusters/c-m-47k66slf
. Put them together?creamy-pencil-82913
12/05/2024, 7:08 PMkubectl get --raw /k8s/clusters/c-m-47k66slf/.well-known/openid-configuration
creamy-pencil-82913
12/05/2024, 7:09 PMdazzling-bird-17431
12/05/2024, 7:09 PMdazzling-bird-17431
12/05/2024, 7:15 PMdazzling-bird-17431
12/05/2024, 7:16 PMcreamy-pencil-82913
12/05/2024, 7:22 PMcreamy-pencil-82913
12/05/2024, 7:22 PM