https://rancher.com/ logo
Title
b

bright-fireman-42144

05/21/2023, 9:02 PM
Dealing with the way rancher manager acts as a auth proxy to get the argo suite of products working and ran into this: https://gist.github.com/janeczku/b16154194f7f03f772645303af8e9f80 Can anyone tell me where/how I can find the cadata for this:
apiVersion: v1
kind: Secret
metadata:
  name: mycluster-secret
  labels:
    <http://argocd.argoproj.io/secret-type|argocd.argoproj.io/secret-type>: cluster
type: Opaque
stringData:
  name: <http://mycluster.com|mycluster.com>
  server: <https://mycluster.com>
  config: |
    {
      "bearerToken": "<authentication token>",
      "tlsClientConfig": {
        "insecure": false,
        "caData": "<base64 encoded certificate>"
      }
    }
I'm wondering if it is the tls-rancher secret in the cattle-system ns?
from the page I referenced, and answering my own question but dropping the info here in case anyone else searches. "The caData is the certificate-authority-data from the endpoint cluster ~/.kube/config which you can get from the Rancher console. Copy and paste the quoted key value. It is under the cluster section of the ~/.kube/config. Don't use the user: token: value."