forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downloadable examples for “Run applications” section (kubernetes#14147)
* Move examples ahead of commands that use them In support of kubernetes#12740 The aim is to adopt a consistent style around providing downloadable examples for use with kubectl, etc. * Tweak wording for stateful app pod example * Adopt formatting conventions for code blocks * Move ReplicationController sample YAML to examples In aid of kubernetes#12740 * Move PodDisruptionBudget sample YAML to examples In aid of kubernetes#12740 * Update test schema for new examples * Use Unicode ellipsis in example Aim here is to make the elision more obvious
- Loading branch information
1 parent
b3e3332
commit 7b44b7a
Showing
8 changed files
with
111 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
content/en/examples/controllers/replication-nginx-1.7.9.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: my-nginx | ||
spec: | ||
replicas: 5 | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.7.9 | ||
ports: | ||
- containerPort: 80 |
21 changes: 21 additions & 0 deletions
21
content/en/examples/controllers/replication-nginx-1.9.2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: my-nginx-v4 | ||
spec: | ||
replicas: 5 | ||
selector: | ||
app: nginx | ||
deployment: v4 | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
deployment: v4 | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.9.2 | ||
args: ["nginx", "-T"] | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
content/en/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: zk-pdb | ||
spec: | ||
maxUnavailable: 1 | ||
selector: | ||
matchLabels: | ||
app: zookeeper |
9 changes: 9 additions & 0 deletions
9
content/en/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: zk-pdb | ||
spec: | ||
minAvailable: 2 | ||
selector: | ||
matchLabels: | ||
app: zookeeper |