Skip to content

Commit 136fb83

Browse files
authored
Merge pull request #1309 from aFlyBird0/docs-gitops-cn
docs: translate gitops
2 parents 0e1b98f + 3e61c6b commit 136fb83

File tree

4 files changed

+295
-107
lines changed

4 files changed

+295
-107
lines changed

docs/best-practices/gitops.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ Then modify the `vars` section in the `config.yaml` file accordingly. Please upd
183183
184184
In the example above, I set these vars like the following:
185185
186-
| Variable | Example | Note |
187-
| ------------------------------ | ----------------- | ------------------------------------------------------------ |
188-
| githubUser | IronCore864 | case-sensitive, use your GitHub username strictly here |
189-
| dockerUser | ironcore864 | case-sensitive, use your DockerHub username strictly here|
186+
| Variable | Example | Note |
187+
|------------|-------------|-----------------------------------------------------------|
188+
| githubUser | IronCore864 | case-sensitive, use your GitHub username strictly here |
189+
| dockerUser | ironcore864 | case-sensitive, use your DockerHub username strictly here |
190190
191191
## 5 Environment Variables
192192
@@ -199,7 +199,7 @@ export DOCKERHUB_TOKEN="YOUR_DOCKERHUB_TOKEN_HERE"
199199
200200
> Note:
201201
>
202-
> if you don't know how to create these three tokens, check out:
202+
> if you don't know how to create these two tokens, check out:
203203
>
204204
> - GITHUB_TOKEN: [Manage API tokens for your Atlassian account](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
205205
> - DOCKERHUB_TOKEN: [Manage access tokens](https://docs.docker.com/docker-hub/access-tokens/)
@@ -276,7 +276,7 @@ GitHub Actions pipelines are created and executed:
276276
277277
![](gitops/b.png)
278278
279-
### 8.3 ArgoCD Installation
279+
### 8.3 Argo CD Installation
280280
281281
Argo CD is installed in your Kubernetes cluster:
282282
@@ -300,7 +300,7 @@ argocd-repo-server-d4f5cc7cb-8gj24 1/1 Running 0
300300
argocd-server-5bb75c4bd9-g948r 1/1 Running 0 5m43s
301301
```
302302
303-
### 8.4 Continuous Deployment with ArgoCD
303+
### 8.4 Continuous Deployment with Argo CD
304304
305305
The CI pipelines build a Docker image and push it into Dockerhub, and an Argo CD application created by DevStream deploys the app already:
306306
@@ -320,10 +320,10 @@ kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 8m2s
320320
If you do a port-forwarding:
321321
322322
```bash
323-
kubectl port-forward -n default svc/helloworld 8080:8
323+
kubectl port-forward -n default svc/helloworld 8080:80
324324
```
325325
326-
And accesses `localhost:8080` in your browser, you can see the deployed app return a "helloworld" to you. Hooray!
326+
And accesses `localhost:8080` in your browser, you can see the deployed app return a "Hello, World!" to you. Hooray!
327327
328328
---
329329

0 commit comments

Comments
 (0)