Move topic to Tasks. (#3627)
This commit is contained in:
@@ -45,6 +45,7 @@ toc:
|
|||||||
|
|
||||||
- title: Running Applications
|
- title: Running Applications
|
||||||
section:
|
section:
|
||||||
|
- docs/tasks/run-application/run-stateless-application-deployment.md
|
||||||
- docs/tasks/run-application/rolling-update-replication-controller.md
|
- docs/tasks/run-application/rolling-update-replication-controller.md
|
||||||
- docs/tasks/run-application/horizontal-pod-autoscale.md
|
- docs/tasks/run-application/horizontal-pod-autoscale.md
|
||||||
- docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
|
- docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ toc:
|
|||||||
- docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md
|
- docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md
|
||||||
- title: Stateless Applications
|
- title: Stateless Applications
|
||||||
section:
|
section:
|
||||||
- docs/tutorials/stateless-application/run-stateless-application-deployment.md
|
|
||||||
- docs/tutorials/stateless-application/expose-external-ip-address-service.md
|
- docs/tutorials/stateless-application/expose-external-ip-address-service.md
|
||||||
- docs/tutorials/stateless-application/expose-external-ip-address.md
|
- docs/tutorials/stateless-application/expose-external-ip-address.md
|
||||||
- docs/tutorials/stateless-application/run-stateless-ap-replication-controller.md
|
- docs/tutorials/stateless-application/run-stateless-ap-replication-controller.md
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nginx-deployment
|
||||||
|
spec:
|
||||||
|
replicas: 4 # Update the replicas from 2 to 4
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.8
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nginx-deployment
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.8 # Update the version of nginx from 1.7.9 to 1.8
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nginx-deployment
|
||||||
|
spec:
|
||||||
|
replicas: 2 # tells deployment to run 2 pods matching the template
|
||||||
|
template: # create pods using pod definition in this template
|
||||||
|
metadata:
|
||||||
|
# unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
|
||||||
|
# generated from the deployment name
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.7.9
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
+2
@@ -7,6 +7,8 @@ redirect_from:
|
|||||||
- "/docs/user-guide/pods/single-container.html"
|
- "/docs/user-guide/pods/single-container.html"
|
||||||
- "/docs/user-guide/deploying-applications/"
|
- "/docs/user-guide/deploying-applications/"
|
||||||
- "/docs/user-guide/deploying-applications.html"
|
- "/docs/user-guide/deploying-applications.html"
|
||||||
|
- "/docs/tutorials/stateless-application/run-stateless-application-deployment/"
|
||||||
|
- "/docs/tutorials/stateless-application/run-stateless-application-deployment.html"
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture overview %}
|
{% capture overview %}
|
||||||
Reference in New Issue
Block a user