modified: README.md

This commit is contained in:
2026-02-22 14:59:49 +00:00
parent 1e60b6db08
commit 4b87beb9b5

View File

@@ -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:**