modified: README.md
This commit is contained in:
24
README.md
24
README.md
@@ -70,7 +70,7 @@ metadata:
|
|||||||
|
|
||||||
### Create an pod
|
### Create an pod
|
||||||
|
|
||||||
Create an ubuntu pod for tty access example:
|
**Create an ubuntu pod for tty access example:**
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -92,6 +92,28 @@ spec:
|
|||||||
tty: true # allocate a terminal
|
tty: true # allocate a terminal
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Create an ubuntu pod for tty access example:**
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: ubuntu-ls-test
|
||||||
|
namespace: tests
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never # executes only one time, no retry on error
|
||||||
|
|
||||||
|
#
|
||||||
|
# nodeName: "serverExample01" # restrict to an specific node
|
||||||
|
#
|
||||||
|
containers:
|
||||||
|
- name: ubuntu-seaweedfs-test
|
||||||
|
image: ubuntu
|
||||||
|
command: ["bash", "-c"]
|
||||||
|
args:
|
||||||
|
- "ls -lah /data"
|
||||||
|
```
|
||||||
|
|
||||||
### Get Pod
|
### Get Pod
|
||||||
|
|
||||||
**Get pod name by label ap:**
|
**Get pod name by label ap:**
|
||||||
|
|||||||
Reference in New Issue
Block a user