Give demo app a real Longhorn-backed PVC
This commit is contained in:
@@ -32,7 +32,15 @@ spec:
|
||||
# Mounts the ConfigMap's index.html over nginx's default page.
|
||||
- name: page
|
||||
mountPath: /usr/share/nginx/html
|
||||
# Real, replicated storage from apps/demo/pvc.yaml — a harmless
|
||||
# subdirectory nginx doesn't otherwise use, proving a Longhorn
|
||||
# volume can actually be attached and written to.
|
||||
- name: data
|
||||
mountPath: /usr/share/nginx/html/data
|
||||
volumes:
|
||||
- name: page
|
||||
configMap:
|
||||
name: demo-page
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: demo-data
|
||||
|
||||
Reference in New Issue
Block a user