Difference between revisions of "Kubectl config set-credentials"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_config_set-credentials/
 
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_config_set-credentials/
 
* <code>[[kubectl config]] set-credentials</code>
 
* <code>[[kubectl config]] set-credentials</code>
 +
 +
 +
kubectl config set-credentials USER_NAME \
 +
  [[--auth-provider]]=[[oidc]] \
 +
  --auth-provider-arg=idp-issuer-url=( issuer url ) \
 +
  --auth-provider-arg=client-id=( your client id ) \
 +
  --auth-provider-arg=client-secret=( your client secret ) \
 +
  --auth-provider-arg=refresh-token=( your refresh token ) \
 +
  --auth-provider-arg=idp-certificate-authority=( path to your ca certificate ) \
 +
  --auth-provider-arg=id-token=( your id_token )
  
 
== Related ==
 
== Related ==

Revision as of 09:18, 2 November 2023

https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_config_set-credentials/


kubectl config set-credentials USER_NAME \
  --auth-provider=oidc \
  --auth-provider-arg=idp-issuer-url=( issuer url ) \
  --auth-provider-arg=client-id=( your client id ) \
  --auth-provider-arg=client-secret=( your client secret ) \
  --auth-provider-arg=refresh-token=( your refresh token ) \
  --auth-provider-arg=idp-certificate-authority=( path to your ca certificate ) \
  --auth-provider-arg=id-token=( your id_token )

Related

See also

Advertising: