Skip to content

Commit ba276b6

Browse files
authored
Merge pull request #14210 from JoeyC-Dev/aks-kubeconfig
Add note about AKS user authentication expiration scenario in service-endpoints.md
2 parents 8827cb4 + 77d529d commit ba276b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/pipelines/library/service-endpoints.md

+4
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ Use the following parameters when you define a connection to a Kubernetes cluste
505505
| Description | Optional. The description of the service connection. |
506506
| Security | Optional. Select **Grant access permission to all pipelines** to allow all pipelines to use this connection. If you don't select this option, you must explicitly authorize the service connection for each pipeline that uses it. |
507507

508+
> [!NOTE]
509+
> User certificates issued by Azure Kubernetes Service are valid for two years. If you choose to use kubeconfig, you will need to reconfigure service connections after two years.
510+
> To get user certificate issued by Azure Kubernetes Service from current context, use the command: `kubectl config view --raw -o jsonpath="{.users[?(@.name contains clusterUser_.*_$(kubectl config current-context))].user.client-certificate-data}" | base64 -d`
511+
> To check when user certificate will expire, use the command: `cat <cert_file> | openssl x509 -enddate -noout -in -`
508512
509513
#### Service account option
510514

0 commit comments

Comments
 (0)