Merge pull request #1704 from Felixnoo/update-credential-mgmt

Update Doc: Credential Management
This commit is contained in:
KubeSphere CI Bot 2021-06-11 14:33:11 +08:00 committed by GitHub
commit 7bbc123e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
---
title: "Credential Management"
keywords: 'Kubernetes, docker, credential, KubeSphere, devops'
keywords: 'Kubernetes, Docker, Credential, KubeSphere, DevOps'
description: 'Create credentials so that your pipelines can communicate with third-party applications or websites.'
linkTitle: "Credential Management"
weight: 11230
@ -12,7 +12,7 @@ A DevOps project user with necessary permissions can configure credentials for J
Currently, you can store the following 4 types of credentials in a DevOps project:
![create-credential-page](/images/docs/devops-user-guide/using-devops/credential-management/create-credential-page.jpg)
![create-credential-page](/images/docs/devops-user-guide/using-devops/credential-management/create-credential-page.png)
- **Account Credentials**: Username and password which can be handled as separate components or as a colon-separated string in the format `username:password`, such as accounts of GitHub, GitLab, and Docker Hub.
- **SSH**: Username with a private key, an SSH public/private key pair.
@ -30,13 +30,13 @@ This tutorial demonstrates how to create and manage credentials in a DevOps proj
Log in to the console of KubeSphere as `project-regular`. Navigate to your DevOps project, choose **Credentials** and click **Create**.
![create-credential-step1](/images/docs/devops-user-guide/using-devops/credential-management/create-credential-step1.jpg)
![create-credential-step1](/images/docs/devops-user-guide/using-devops/credential-management/create-credential-step1.png)
### Create Docker Hub credentials
1. In the dialog that appears, provide the following information.
![dockerhub-credentials](/images/docs/devops-user-guide/using-devops/credential-management/dockerhub-credentials.jpg)
![dockerhub-credentials](/images/docs/devops-user-guide/using-devops/credential-management/dockerhub-credentials.png)
- **Credential ID**: Set an ID, such as `dockerhub-id`, which can be used in pipelines.
- **Type**: Select **Account Credentials**.
@ -68,17 +68,17 @@ A file that is used to configure access to clusters is called a kubeconfig file.
## View and Manage Credentials
1. Credentials created display in the list as below.
1. Credentials created appear in the list as below.
![credentials-list](/images/docs/devops-user-guide/using-devops/credential-management/credentials-list.jpg)
![credentials-list](/images/docs/devops-user-guide/using-devops/credential-management/credentials-list.png)
2. Click any of them to go to its detail page, where you can see account details and all the events related to the credentials.
![credential-detail-page](/images/docs/devops-user-guide/using-devops/credential-management/credential-detail-page.jpg)
![credential-detail-page](/images/docs/devops-user-guide/using-devops/credential-management/credential-detail-page.png)
3. You can also edit or delete credentials on this page. Note that when you edit credentials, KubeSphere does not display the existing username or password information. The previous one will be overwritten if you enter a new username and password.
![edit-credentials](/images/docs/devops-user-guide/using-devops/credential-management/edit-credentials.jpg)
![edit-credentials](/images/docs/devops-user-guide/using-devops/credential-management/edit-credentials.png)
## See Also

View File

@ -12,7 +12,7 @@ weight: 11230
目前,您可以在 DevOps 工程中存储以下 4 种类型的凭证:
![创建凭证](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/create-credential-page.png)
![创建凭证](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/create-credential_page.png)
- **帐户凭证**:用户名和密码,可以作为单独的组件处理,或者作为用冒号分隔的字符串(格式为 `username:password`)处理,例如 GitHub、GitLab 和 Docker Hub 的帐户。
- **SSH**带有私钥的用户名SSH 公钥/私钥对。
@ -36,7 +36,7 @@ weight: 11230
1. 在弹出对话框中输入以下信息。
![DockerHub 凭证](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/dockerhub-credentials.PNG)
![DockerHub 凭证](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/dockerhub_credentials.png)
- **凭证 ID**:设置可以在流水线中使用的 ID例如 `dockerhub-id`
- **类型**:选择**帐户凭证**。
@ -70,15 +70,15 @@ weight: 11230
1. 凭证创建后,会在列表中显示,如下所示。
![凭证列表](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/credential-list.PNG)
![凭证列表](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/credential_list.png)
2. 点击任意一个凭证,进入其详情页面,您可以查看帐户详情和与此凭证相关的所有事件。
![凭证详情页面](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/credential-detail-page.PNG)
![凭证详情页面](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/credential-detail_page.png)
3. 您也可以在此页面上编辑或删除凭证。请注意编辑凭证时KubeSphere 不会显示现有用户名或密码信息。如果输入新的用户名和密码,则前一个将被覆盖。
![编辑凭证](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/edit-credentials.PNG)
![编辑凭证](/images/docs/zh-cn/devops-user-guide/use-devops/credential-management/edit_credentials.png)
## 另请参见

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB