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