You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/gitops/1-quick-start.md
+36-52Lines changed: 36 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -9,38 +9,34 @@ sidebar_label: 快速开始
9
9
10
10
### 什么是 GitOps
11
11
12
-
GitOps is a modern way to do continuous delivery. Its core idea is to have a Git repository which contains environmental and application configurations. An automated process is also needed for sync the config to cluster.
+ Increased productivity. Continuous delivery can speed up the time of deployment.
17
-
+ Lower the barrier for developer to deploy. By pushing code instead of container configuration, developers can easily deploy Kubernetes without knowing its internal implementation.
18
-
+ Trace the change records. Managing the cluster with Git makes every change traceable, enhancing the audit trail.
19
-
+ Recover the cluster with Git's rollback and branch.
+ KCL can help us **simplify complex Kubernetes deployment configuration files**, reduce the error rate of manually writing YAML files, and improve code readability and maintainability.
26
-
+ ArgoCD can **automate** the deployment of Kubernetes applications, achieve continuous deployment, and provide comprehensive monitoring and control functions.
27
-
+ By combining KCL and ArgoCD, deployment efficiency can be improved, errors reduced, and management and monitoring of Kubernetes applications strengthened.
28
-
+ The combination of KCL and ArgoCD can also help us achieve **Infrastructure as Code (IaC)**, simplify application deployment and management, and better implement DevOps principles.
With GitOps, developer and operation teams can manage application deployment and configuration by modifying KCL code and generating YAML files. The GitOps toolchain will automatically synchronize the changes to the Kubernetes cluster, enabling continuous deployment and ensuring consistency. If there are issues, the GitOps toolchain can be used to quickly rollback.
We can run the following command to show the config.
39
+
我们可以运行以下命令来显示配置
44
40
45
41
```bash
46
42
cat config/main.k
@@ -62,70 +58,62 @@ config = app.App {
62
58
}
63
59
```
64
60
65
-
In the above code, we defined a configuration using the `App` schema, where we configured an `gcr.io/heptio-images/ks-guestbook-demo:0.2`container and configured it with an `80`service port.
After completing the first step, ArgoCD will recognize the KCL plugin, but the KCL plugin has not been loaded into the ArgoCD image. To implement configuration drift detection, we have to tune the Deployment of argocd-repo-server.
If you are using a private repository, you need to configure the private repository access with private key credentials before executing the create command.
140
-
141
-
Please refer [Private Repositories](https://argo-cd.readthedocs.io/en/stable/user-guide/private-repositories/#ssh-private-key-credential) for more details.
127
+
如果创建成功,您可以看到如下输出:
142
128
143
129
After successfully creating, you can see the following output:
144
130
145
131
```bash
146
132
application 'guestbook' created
147
133
```
148
134
149
-
Through the ArgoCD UI, you can see that the created applications have not been synchronized yet. Here, you can manually synchronize or set automatic synchronization.
With GitOps, you can easily manage your applications and configuration in your Kubernetes cluster with KCL, ensuring that your applications are always in the desired state.
Copy file name to clipboardExpand all lines: i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.0/user_docs/guides/gitops/1-quick-start.md
+36-52Lines changed: 36 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -9,38 +9,34 @@ sidebar_label: 快速开始
9
9
10
10
### 什么是 GitOps
11
11
12
-
GitOps is a modern way to do continuous delivery. Its core idea is to have a Git repository which contains environmental and application configurations. An automated process is also needed for sync the config to cluster.
+ Increased productivity. Continuous delivery can speed up the time of deployment.
17
-
+ Lower the barrier for developer to deploy. By pushing code instead of container configuration, developers can easily deploy Kubernetes without knowing its internal implementation.
18
-
+ Trace the change records. Managing the cluster with Git makes every change traceable, enhancing the audit trail.
19
-
+ Recover the cluster with Git's rollback and branch.
+ KCL can help us **simplify complex Kubernetes deployment configuration files**, reduce the error rate of manually writing YAML files, and improve code readability and maintainability.
26
-
+ ArgoCD can **automate** the deployment of Kubernetes applications, achieve continuous deployment, and provide comprehensive monitoring and control functions.
27
-
+ By combining KCL and ArgoCD, deployment efficiency can be improved, errors reduced, and management and monitoring of Kubernetes applications strengthened.
28
-
+ The combination of KCL and ArgoCD can also help us achieve **Infrastructure as Code (IaC)**, simplify application deployment and management, and better implement DevOps principles.
With GitOps, developer and operation teams can manage application deployment and configuration by modifying KCL code and generating YAML files. The GitOps toolchain will automatically synchronize the changes to the Kubernetes cluster, enabling continuous deployment and ensuring consistency. If there are issues, the GitOps toolchain can be used to quickly rollback.
We can run the following command to show the config.
39
+
我们可以运行以下命令来显示配置
44
40
45
41
```bash
46
42
cat config/main.k
@@ -62,70 +58,62 @@ config = app.App {
62
58
}
63
59
```
64
60
65
-
In the above code, we defined a configuration using the `App` schema, where we configured an `gcr.io/heptio-images/ks-guestbook-demo:0.2`container and configured it with an `80`service port.
After completing the first step, ArgoCD will recognize the KCL plugin, but the KCL plugin has not been loaded into the ArgoCD image. To implement configuration drift detection, we have to tune the Deployment of argocd-repo-server.
If you are using a private repository, you need to configure the private repository access with private key credentials before executing the create command.
140
-
141
-
Please refer [Private Repositories](https://argo-cd.readthedocs.io/en/stable/user-guide/private-repositories/#ssh-private-key-credential) for more details.
127
+
如果创建成功,您可以看到如下输出:
142
128
143
129
After successfully creating, you can see the following output:
144
130
145
131
```bash
146
132
application 'guestbook' created
147
133
```
148
134
149
-
Through the ArgoCD UI, you can see that the created applications have not been synchronized yet. Here, you can manually synchronize or set automatic synchronization.
With GitOps, you can easily manage your applications and configuration in your Kubernetes cluster with KCL, ensuring that your applications are always in the desired state.
0 commit comments