modified: README.md
This commit is contained in:
1 parent
4da06c6bd3
commit
00cb243ee3
1 file changed
+16
-3
@@ -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