modified: README.md
This commit is contained in:
13
README.md
13
README.md
@@ -79,6 +79,8 @@ metadata:
|
|||||||
name: ubuntu-test
|
name: ubuntu-test
|
||||||
namespace: tests
|
namespace: tests
|
||||||
spec:
|
spec:
|
||||||
|
#### deploy to an specific node
|
||||||
|
nodeName: chimera-gluten
|
||||||
containers:
|
containers:
|
||||||
- name: ubuntu-test
|
- name: ubuntu-test
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
@@ -90,6 +92,15 @@ spec:
|
|||||||
command: ["sh"] # PID 1 = interactive shell
|
command: ["sh"] # PID 1 = interactive shell
|
||||||
stdin: true # keep STDIN open
|
stdin: true # keep STDIN open
|
||||||
tty: true # allocate a terminal
|
tty: true # allocate a terminal
|
||||||
|
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: data-pvc
|
||||||
```
|
```
|
||||||
|
|
||||||
**Create an ubuntu pod with and execute command:**
|
**Create an ubuntu pod with and execute command:**
|
||||||
@@ -112,9 +123,11 @@ spec:
|
|||||||
command: ["bash", "-c"]
|
command: ["bash", "-c"]
|
||||||
args:
|
args:
|
||||||
- "ls -lah /data"
|
- "ls -lah /data"
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user