longhorn/deploy/example-backupstore.yaml
Sheng Yang 1dd3618256 Update deploy example.yaml
Major updates:
1. Longhorn will now run in the `longhorn-system` namespace by default.
2. Improvement on Longhorn Driver includes dependency check when started and
automatic static-linked jq installation
3. Use ganesha as the NFS server for testing to remove the dependency of
`nfs-kernel-server` on the host.
2018-01-15 18:01:27 -08:00

36 lines
749 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: longhorn-test-nfs
labels:
app: longhorn-test-nfs
spec:
containers:
- name: longhorn-test-nfs-container
image: janeczku/nfs-ganesha:latest
imagePullPolicy: Always
env:
- name: EXPORT_ID
value: "14"
- name: EXPORT_PATH
value: /opt/backupstore
- name: PSEUDO_PATH
value: /opt/backupstore
command: ["bash", "-c", "mkdir -p /opt/backupstore && /opt/start_nfs.sh"]
securityContext:
capabilities:
add: ["SYS_ADMIN", "DAC_READ_SEARCH"]
---
kind: Service
apiVersion: v1
metadata:
name: longhorn-test-nfs-svc
spec:
selector:
app: longhorn-test-nfs
clusterIP: None
ports:
- name: notnecessary
port: 1234
targetPort: 1234