diff --git a/README.md b/README.md index 5c36e70..727c248 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ metadata: ### Create an pod -Create an ubuntu pod for tty access example: +**Create an ubuntu pod for tty access example:** ``` bash apiVersion: v1 @@ -92,6 +92,28 @@ spec: 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 name by label ap:**