remove duplicate yaml (#17431)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
694883fbce
commit
ec7c72f4fb
@@ -126,31 +126,6 @@ spec:
|
|||||||
command: ['sh', '-c', 'until nslookup mydb; do echo waiting for mydb; sleep 2; done;']
|
command: ['sh', '-c', 'until nslookup mydb; do echo waiting for mydb; sleep 2; done;']
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
The following YAML file outlines the `mydb` and `myservice` services:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: myservice
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 9376
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: mydb
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 9377
|
|
||||||
```
|
|
||||||
|
|
||||||
You can start this Pod by running:
|
You can start this Pod by running:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Reference in New Issue
Block a user