k8s.io/kubernetes@v1.29.3/test/e2e_node/plugins/gcp-credential-provider/README.md (about) 1 # GCP credential provider for e2e testing 2 3 This package contains a barebones implementation of the [kubelet GCP credential 4 provider](https://github.com/kubernetes/cloud-provider-gcp/tree/master/cmd/auth-provider-gcp) 5 for testing purposes only. This plugin SHOULD NOT be used in production. 6 7 This credential provider is installed and configured in the node e2e tests by: 8 9 1. Building the gcp-credential-provider binary and including it in the test archive 10 uploaded to the GCE remote node. 11 12 2. Writing the credential provider config into the temporary workspace consumed 13 by the kubelet. The contents of the config should be something like this: 14 15 ```yaml 16 kind: CredentialProviderConfig 17 apiVersion: kubelet.config.k8s.io/v1alpha1 18 providers: 19 - name: gcp-credential-provider 20 apiVersion: credentialprovider.kubelet.k8s.io/v1alpha1 21 matchImages: 22 - "gcr.io" 23 - "*.gcr.io" 24 - "container.cloud.google.com" 25 - "*.pkg.dev" 26 defaultCacheDuration: 1m` 27 ``` 28 29 3. Configuring the following additional flags on the kubelet: 30 31 ``` 32 --feature-gates=DisableKubeletCloudCredentialProviders=true 33 --image-credential-provider-config=/tmp/node-e2e-123456/credential-provider.yaml 34 --image-credential-provider-bin-dir=/tmp/node-e2e-12345 35 ```