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
Many applications require multiple resources to be created, such as a Deployment and a Service. Management of multiple resources can be simplified by grouping them together in the same file (separated by in YAML). For example:
30
+
Many applications require multiple resources to be created, such as a Deployment and a Service. Management of multiple resources can be simplified by grouping them together in the same file (separated by `---` in YAML). For example:
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 deploy all of the components of your stack together.
71
+
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.
72
72
73
-
A URL can also be specified as a configuration source, which is handy for deploying directly from configuration files checked into Github:
73
+
A URL can also be specified as a configuration source, which is handy for deploying directly from configuration files checked into GitHub:
For instance, assume there is a directory `project/k8s/development` that holds all of the manifests needed for the development environment, organized by resource type:
165
+
For instance, assume there is a directory `project/k8s/development` that holds all of the {{< glossary_tooltip text="manifests" term_id="manifest" >}} needed for the development environment, organized by resource type:
@@ -477,7 +480,7 @@ For more information, please see [annotations](/docs/concepts/overview/working-w
477
480
<!--
478
481
## Scaling your application
479
482
480
-
When load on your application grows or shrinks, use `kubectl` to scale you application. For instance, to decrease the number of nginx replicas from 3 to 1, do:
483
+
When load on your application grows or shrinks, use `kubectl` to scale your application. For instance, to decrease the number of nginx replicas from 3 to 1, do:
481
484
-->
482
485
## 扩缩你的应用 {#scaling-your-app}
483
486
@@ -543,7 +546,8 @@ Sometimes it's necessary to make narrow, non-disruptive updates to resources you
543
546
### kubectl apply
544
547
545
548
<!--
546
-
It is suggested to maintain a set of configuration files in source control (see [configuration as code](http://martinfowler.com/bliki/InfrastructureAsCode.html)),
549
+
It is suggested to maintain a set of configuration files in source control
550
+
(see [configuration as code](https://martinfowler.com/bliki/InfrastructureAsCode.html)),
547
551
so that they can be maintained and versioned along with the code for the resources they configure.
548
552
Then, you can use [`kubectl apply`](/docs/reference/generated/kubectl/kubectl-commands/#apply) to push your configuration changes to the cluster.
549
553
-->
@@ -697,7 +701,21 @@ deployment.apps/my-nginx created
697
701
```
698
702
699
703
<!--
700
-
To update to version 1.16.1, change `.spec.template.spec.containers[0].image` from `nginx:1.14.2` to `nginx:1.16.1`, with the previous kubectl commands.
704
+
with 3 replicas (so the old and new revisions can coexist):
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.
0 commit comments