modified: README.md
This commit is contained in:
@@ -92,7 +92,7 @@ spec:
|
||||
tty: true # allocate a terminal
|
||||
```
|
||||
|
||||
**Create an ubuntu pod for tty access example:**
|
||||
**Create an ubuntu pod with and execute command:**
|
||||
|
||||
``` bash
|
||||
apiVersion: v1
|
||||
@@ -112,6 +112,13 @@ spec:
|
||||
command: ["bash", "-c"]
|
||||
args:
|
||||
- "ls -lah /data"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data-pvc
|
||||
```
|
||||
|
||||
### Get Pod
|
||||
|
||||
Reference in New Issue
Block a user