mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
Use example syncer tags instead of hard-coded examples in doc
This commit is contained in:
@@ -47,6 +47,8 @@ $ kubectl create -f ./pod.yaml
|
||||
|
||||
Where pod.yaml contains something like:
|
||||
|
||||
<!-- BEGIN MUNGE: EXAMPLE pod.yaml -->
|
||||
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
@@ -62,6 +64,9 @@ spec:
|
||||
- containerPort: 80
|
||||
```
|
||||
|
||||
[Download example](pod.yaml)
|
||||
<!-- END MUNGE: EXAMPLE -->
|
||||
|
||||
You can see your cluster's pods:
|
||||
|
||||
```console
|
||||
@@ -87,6 +92,8 @@ $ kubectl create -f ./replication.yaml
|
||||
|
||||
Where `replication.yaml` contains:
|
||||
|
||||
<!-- BEGIN MUNGE: EXAMPLE replication.yaml -->
|
||||
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
@@ -109,6 +116,9 @@ spec:
|
||||
- containerPort: 80
|
||||
```
|
||||
|
||||
[Download example](replication.yaml)
|
||||
<!-- END MUNGE: EXAMPLE -->
|
||||
|
||||
To delete the replication controller (and the pods it created):
|
||||
|
||||
```console
|
||||
|
Reference in New Issue
Block a user