I am writing some backup scripts on bastion node but need to know how we can generate the auto login token for kubeadmin in bash so that after login scripts get executed. General error before login to cluster “error: you must be logged in to the server (unauthorised)”
Or do we need to change the token on every 24h in this command “oc login - -token=sometext - -server=https://example.com/6443”