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