Skip to content

Commit ed3db34

Browse files
Merge branch 'master' of github.com:kubernetes/website
2 parents 0aae93d + fdcda62 commit ed3db34

File tree

87 files changed

+2764
-1788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2764
-1788
lines changed

OWNERS_ALIASES

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,21 @@ aliases:
9292
- daminisatya
9393
- mittalyashu
9494
sig-docs-id-owners: # Admins for Indonesian content
95+
- ariscahyadi
96+
- danninov
9597
- girikuncoro
98+
- habibrosyad
9699
- irvifa
100+
- phanama
101+
- wahyuoi
97102
sig-docs-id-reviews: # PR reviews for Indonesian content
103+
- ariscahyadi
104+
- danninov
98105
- girikuncoro
99106
- habibrosyad
100107
- irvifa
101-
- wahyuoi
102108
- phanama
103-
- danninov
109+
- wahyuoi
104110
sig-docs-it-owners: # Admins for Italian content
105111
- fabriziopandini
106112
- Fale

README-pt.md

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[![Netlify Status](https://api.netlify.com/api/v1/badges/be93b718-a6df-402a-b4a4-855ba186c97d/deploy-status)](https://app.netlify.com/sites/kubernetes-io-master-staging/deploys) [![GitHub release](https://img.shields.io/github/release/kubernetes/website.svg)](https://github.com/kubernetes/website/releases/latest)
44

5-
Bem vindos! Este repositório abriga todos os recursos necessários para criar o [website e documentação do Kubernetes](https://kubernetes.io/). Estamos muito satisfeitos por você querer contribuir!
5+
Bem-vindos! Este repositório contém todos os recursos necessários para criar o [website e documentação do Kubernetes](https://kubernetes.io/). Estamos muito satisfeitos por você querer contribuir!
66

77
# Utilizando este repositório
88

9-
Você pode executar o website localmente utilizando o Hugo (versão Extended), ou você pode executa-ló em um container runtime. É altamente recomendável usar um container runtime, pois garante a consistência na implantação do website real.
9+
Você pode executar o website localmente utilizando o Hugo (versão Extended), ou você pode executa-ló em um container runtime. É altamente recomendável utilizar um container runtime, pois garante a consistência na implantação do website real.
1010

1111
## Pré-requisitos
1212

@@ -40,7 +40,7 @@ make container-image
4040
make container-serve
4141
```
4242

43-
Abra seu navegador em http://localhost:1313 para visualizar o website. Conforme você faz alterações nos arquivos fontes, Hugo atualiza o website e força a atualização do navegador.
43+
Abra seu navegador em http://localhost:1313 para visualizar o website. Conforme você faz alterações nos arquivos fontes, o Hugo atualiza o website e força a atualização do navegador.
4444

4545
## Executando o website localmente utilizando o Hugo
4646

@@ -56,10 +56,57 @@ make serve
5656

5757
Isso iniciará localmente o Hugo na porta 1313. Abra o seu navegador em http://localhost:1313 para visualizar o website. Conforme você faz alterações nos arquivos fontes, o Hugo atualiza o website e força uma atualização no navegador.
5858

59+
## Construindo a página de referência da API
60+
61+
A página de referência da API localizada em `content/en/docs/reference/kubernetes-api` é construída a partir da especificação do Swagger utilizando https://github.com/kubernetes-sigs/reference-docs/tree/master/gen-resourcesdocs.
62+
63+
Siga os passos abaixo para atualizar a página de referência para uma nova versão do Kubernetes:
64+
65+
OBS: modifique o "v1.20" no exemplo a seguir pela versão a ser atualizada
66+
67+
1. Obter o submódulo `kubernetes-resources-reference`:
68+
69+
```
70+
git submodule update --init --recursive --depth 1
71+
```
72+
73+
2. Criar a nova versão da API no submódulo e adicionar à especificação do Swagger:
74+
75+
```
76+
mkdir api-ref-generator/gen-resourcesdocs/api/v1.20
77+
curl 'https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json' > api-ref-generator/gen-resourcesdocs/api/v1.20/swagger.json
78+
```
79+
80+
3. Copiar o sumário e os campos de configuração para a nova versão a partir da versão anterior:
81+
82+
```
83+
mkdir api-ref-generator/gen-resourcesdocs/api/v1.20
84+
cp api-ref-generator/gen-resourcesdocs/api/v1.19/* api-ref-generator/gen-resourcesdocs/api/v1.20/
85+
```
86+
87+
4. Ajustar os arquivos `toc.yaml` e `fields.yaml` para refletir as mudanças entre as duas versões.
88+
89+
5. Em seguida, gerar as páginas:
90+
91+
```
92+
make api-reference
93+
```
94+
95+
Você pode validar o resultado localmente gerando e disponibilizando o site a partir da imagem do container:
96+
97+
```
98+
make container-image
99+
make container-serve
100+
```
101+
102+
Abra o seu navegador em http://localhost:1313/docs/reference/kubernetes-api/ para visualizar a página de referência da API.
103+
104+
6. Quando todas as mudanças forem refletidas nos arquivos de configuração `toc.yaml` e `fields.yaml`, crie um pull request com a nova página de referência de API.
105+
59106
## Troubleshooting
60107
### error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
61108

62-
Por motivos técnicos, o Hugo é disponibilizado em dois conjuntos de binários. O website atual funciona apenas na versão **Hugo Extended**. Na [página de releases](https://github.com/gohugoio/hugo/releases) procure por arquivos com `extended` no nome. Para confirmar, execute `hugo version` e procure pela palavra `extended`.
109+
Por motivos técnicos, o Hugo é disponibilizado em dois conjuntos de binários. O website atual funciona apenas na versão **Hugo Extended**. Na [página de releases](https://github.com/gohugoio/hugo/releases) procure por arquivos com `extended` no nome. Para confirmar, execute `hugo version` e procure pela palavra `extended`.
63110

64111
### Troubleshooting macOS for too many open files
65112

@@ -110,9 +157,9 @@ Você também pode entrar em contato com os mantenedores deste projeto em:
110157

111158
Você pode clicar no botão **Fork** na área superior direita da tela para criar uma cópia desse repositório na sua conta do GitHub. Esta cópia é chamada de *fork*. Faça as alterações desejadas no seu fork e, quando estiver pronto para enviar as alterações para nós, vá até o fork e crie um novo **pull request** para nos informar sobre isso.
112159

113-
Depois que seu **pull request** for criado, um revisor do Kubernetes assumirá a responsabilidade de fornecer um feedback claro e objetivo. Como proprietário do pull request, **é sua responsabilidade modificar seu pull request para atender ao feedback que foi fornecido a você pelo revisor do Kubernetes.**
160+
Depois que seu **pull request** for criado, um revisor do Kubernetes assumirá a responsabilidade de fornecer um feedback claro e objetivo. Como proprietário do pull request, **é sua responsabilidade modificar seu pull request para atender ao feedback que foi fornecido a você pelo revisor do Kubernetes.**
114161

115-
Observe também que você pode acabar tendo mais de um revisor do Kubernetes para fornecer seu feedback ou você pode acabar obtendo feedback de um outro revisor do Kubernetes diferente daquele originalmente designado para lhe fornecer o feedback.
162+
Observe também que você pode acabar tendo mais de um revisor do Kubernetes para fornecer seu feedback ou você pode acabar obtendo feedback de um outro revisor do Kubernetes diferente daquele originalmente designado para lhe fornecer o feedback.
116163

117164
Além disso, em alguns casos, um de seus revisores pode solicitar uma revisão técnica de um [revisor técnico do Kubernetes](https://github.com/kubernetes/website/wiki/Tech-reviewers) quando necessário. Os revisores farão o melhor para fornecer feedbacks em tempo hábil, mas o tempo de resposta pode variar de acordo com as circunstâncias.
118165

@@ -134,4 +181,4 @@ A participação na comunidade Kubernetes é regida pelo [Código de Conduta da
134181

135182
# Obrigado!
136183

137-
O Kubernetes conta com a participação da comunidade e nós realmente agradecemos suas contribuições para o nosso website e nossa documentação!
184+
O Kubernetes prospera com a participação da comunidade e nós realmente agradecemos suas contribuições para o nosso website e nossa documentação!

content/en/blog/_posts/2019-03-15-Kubernetes-setup-using-Ansible-and-Vagrant.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Vagrant.configure("2") do |config|
6666
end
6767
end
6868
end
69+
end
6970
```
7071

7172
### Step 2: Create an Ansible playbook for Kubernetes master.

content/en/docs/concepts/cluster-administration/manage-deployment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ kubectl apply -f https://k8s.io/examples/application/nginx/
4545

4646
`kubectl` will read any files with suffixes `.yaml`, `.yml`, or `.json`.
4747

48-
It is a recommended practice to put resources related to the same microservice or application tier into the same file, and to group all of the files associated with your application in the same directory. If the tiers of your application bind to each other using DNS, then you can then simply deploy all of the components of your stack en masse.
48+
It is a recommended practice to put resources related to the same microservice or application tier into the same file, and to group all of the files associated with your application in the same directory. If the tiers of your application bind to each other using DNS, you can deploy all of the components of your stack together.
4949

5050
A URL can also be specified as a configuration source, which is handy for deploying directly from configuration files checked into github:
5151

@@ -265,7 +265,7 @@ For a more concrete example, check the [tutorial of deploying Ghost](https://git
265265
## Updating labels
266266

267267
Sometimes existing pods and other resources need to be relabeled before creating new resources. This can be done with `kubectl label`.
268-
For example, if you want to label all your nginx pods as frontend tier, simply run:
268+
For example, if you want to label all your nginx pods as frontend tier, run:
269269

270270
```shell
271271
kubectl label pods -l app=nginx tier=fe
@@ -411,7 +411,7 @@ and
411411

412412
## Disruptive updates
413413

414-
In some cases, you may need to update resource fields that cannot be updated once initialized, or you may just want to make a recursive change immediately, such as to fix broken pods created by a Deployment. To change such fields, use `replace --force`, which deletes and re-creates the resource. In this case, you can simply modify your original configuration file:
414+
In some cases, you may need to update resource fields that cannot be updated once initialized, or you may just want to make a recursive change immediately, such as to fix broken pods created by a Deployment. To change such fields, use `replace --force`, which deletes and re-creates the resource. In this case, you can modify your original configuration file:
415415

416416
```shell
417417
kubectl replace -f https://k8s.io/examples/application/nginx/nginx-deployment.yaml --force
@@ -448,7 +448,7 @@ kubectl scale deployment my-nginx --current-replicas=1 --replicas=3
448448
deployment.apps/my-nginx scaled
449449
```
450450
451-
To update to version 1.16.1, simply change `.spec.template.spec.containers[0].image` from `nginx:1.14.2` to `nginx:1.16.1`, with the kubectl commands we learned above.
451+
To update to version 1.16.1, change `.spec.template.spec.containers[0].image` from `nginx:1.14.2` to `nginx:1.16.1` using the previous kubectl commands.
452452
453453
```shell
454454
kubectl edit deployment/my-nginx

content/en/docs/concepts/configuration/configmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The kubelet checks whether the mounted ConfigMap is fresh on every periodic sync
225225
However, the kubelet uses its local cache for getting the current value of the ConfigMap.
226226
The type of the cache is configurable using the `ConfigMapAndSecretChangeDetectionStrategy` field in
227227
the [KubeletConfiguration struct](https://github.com/kubernetes/kubernetes/blob/{{< param "docsbranch" >}}/staging/src/k8s.io/kubelet/config/v1beta1/types.go).
228-
A ConfigMap can be either propagated by watch (default), ttl-based, or simply redirecting
228+
A ConfigMap can be either propagated by watch (default), ttl-based, or by redirecting
229229
all requests directly to the API server.
230230
As a result, the total delay from the moment when the ConfigMap is updated to the moment
231231
when new keys are projected to the Pod can be as long as the kubelet sync period + cache

content/en/docs/concepts/configuration/secret.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ The kubelet checks whether the mounted secret is fresh on every periodic sync.
669669
However, the kubelet uses its local cache for getting the current value of the Secret.
670670
The type of the cache is configurable using the `ConfigMapAndSecretChangeDetectionStrategy` field in
671671
the [KubeletConfiguration struct](https://github.com/kubernetes/kubernetes/blob/{{< param "docsbranch" >}}/staging/src/k8s.io/kubelet/config/v1beta1/types.go).
672-
A Secret can be either propagated by watch (default), ttl-based, or simply redirecting
672+
A Secret can be either propagated by watch (default), ttl-based, or by redirecting
673673
all requests directly to the API server.
674674
As a result, the total delay from the moment when the Secret is updated to the moment
675675
when new keys are projected to the Pod can be as long as the kubelet sync period + cache

content/en/docs/concepts/containers/container-lifecycle-hooks.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ No parameters are passed to the handler.
3636

3737
`PreStop`
3838

39-
This hook is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention and others. A call to the preStop hook fails if the container is already in terminated or completed state.
40-
It is blocking, meaning it is synchronous,
41-
so it must complete before the signal to stop the container can be sent.
42-
No parameters are passed to the handler.
39+
This hook is called immediately before a container is terminated due to an API request or management
40+
event such as a liveness/startup probe failure, preemption, resource contention and others. A call
41+
to the `PreStop` hook fails if the container is already in a terminated or completed state and the
42+
hook must complete before the TERM signal to stop the container can be sent. The Pod's termination
43+
grace period countdown begins before the `PreStop` hook is executed, so regardless of the outcome of
44+
the handler, the container will eventually terminate within the Pod's termination grace period. No
45+
parameters are passed to the handler.
4346

4447
A more detailed description of the termination behavior can be found in
4548
[Termination of Pods](/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination).
@@ -65,19 +68,15 @@ the Container ENTRYPOINT and hook fire asynchronously.
6568
However, if the hook takes too long to run or hangs,
6669
the Container cannot reach a `running` state.
6770

68-
`PreStop` hooks are not executed asynchronously from the signal
69-
to stop the Container; the hook must complete its execution before
70-
the signal can be sent.
71-
If a `PreStop` hook hangs during execution,
72-
the Pod's phase will be `Terminating` and remain there until the Pod is
73-
killed after its `terminationGracePeriodSeconds` expires.
74-
This grace period applies to the total time it takes for both
75-
the `PreStop` hook to execute and for the Container to stop normally.
76-
If, for example, `terminationGracePeriodSeconds` is 60, and the hook
77-
takes 55 seconds to complete, and the Container takes 10 seconds to stop
78-
normally after receiving the signal, then the Container will be killed
79-
before it can stop normally, since `terminationGracePeriodSeconds` is
80-
less than the total time (55+10) it takes for these two things to happen.
71+
`PreStop` hooks are not executed asynchronously from the signal to stop the Container; the hook must
72+
complete its execution before the TERM signal can be sent. If a `PreStop` hook hangs during
73+
execution, the Pod's phase will be `Terminating` and remain there until the Pod is killed after its
74+
`terminationGracePeriodSeconds` expires. This grace period applies to the total time it takes for
75+
both the `PreStop` hook to execute and for the Container to stop normally. If, for example,
76+
`terminationGracePeriodSeconds` is 60, and the hook takes 55 seconds to complete, and the Container
77+
takes 10 seconds to stop normally after receiving the signal, then the Container will be killed
78+
before it can stop normally, since `terminationGracePeriodSeconds` is less than the total time
79+
(55+10) it takes for these two things to happen.
8180

8281
If either a `PostStart` or `PreStop` hook fails,
8382
it kills the Container.

content/en/docs/concepts/extend-kubernetes/api-extension/custom-resources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Once a custom resource is installed, users can create and access its objects usi
3131

3232
## Custom controllers
3333

34-
On their own, custom resources simply let you store and retrieve structured data.
34+
On their own, custom resources let you store and retrieve structured data.
3535
When you combine a custom resource with a *custom controller*, custom resources
3636
provide a true _declarative API_.
3737

@@ -120,7 +120,7 @@ Kubernetes provides two ways to add custom resources to your cluster:
120120

121121
Kubernetes provides these two options to meet the needs of different users, so that neither ease of use nor flexibility is compromised.
122122

123-
Aggregated APIs are subordinate API servers that sit behind the primary API server, which acts as a proxy. This arrangement is called [API Aggregation](/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation/) (AA). To users, it simply appears that the Kubernetes API is extended.
123+
Aggregated APIs are subordinate API servers that sit behind the primary API server, which acts as a proxy. This arrangement is called [API Aggregation](/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation/) (AA). To users, the Kubernetes API appears extended.
124124

125125
CRDs allow users to create new types of resources without adding another API server. You do not need to understand API Aggregation to use CRDs.
126126

content/en/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Network plugins in Kubernetes come in a few flavors:
2424
The kubelet has a single default network plugin, and a default network common to the entire cluster. It probes for plugins when it starts up, remembers what it finds, and executes the selected plugin at appropriate times in the pod lifecycle (this is only true for Docker, as CRI manages its own CNI plugins). There are two Kubelet command line parameters to keep in mind when using plugins:
2525

2626
* `cni-bin-dir`: Kubelet probes this directory for plugins on startup
27-
* `network-plugin`: The network plugin to use from `cni-bin-dir`. It must match the name reported by a plugin probed from the plugin directory. For CNI plugins, this is simply "cni".
27+
* `network-plugin`: The network plugin to use from `cni-bin-dir`. It must match the name reported by a plugin probed from the plugin directory. For CNI plugins, this is `cni`.
2828

2929
## Network Plugin Requirements
3030

content/en/docs/concepts/extend-kubernetes/service-catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Fortunately, there is a cloud provider that offers message queuing as a managed
2626

2727
A cluster operator can setup Service Catalog and use it to communicate with the cloud provider's service broker to provision an instance of the message queuing service and make it available to the application within the Kubernetes cluster.
2828
The application developer therefore does not need to be concerned with the implementation details or management of the message queue.
29-
The application can simply use it as a service.
29+
The application can access the message queue as a service.
3030

3131
## Architecture
3232

0 commit comments

Comments
 (0)