commit 2ed3c8c76053c8df3fd418f6076c80c1ca49bf5b Author: Sheng Yang <sheng.yang@rancher.com> Date: Mon Sep 16 18:47:54 2019 -0700 Longhorn v0.6.0-rc1 release Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: longhorn-test-nfs
|
|
namespace: default
|
|
labels:
|
|
app: longhorn-test-nfs
|
|
spec:
|
|
volumes:
|
|
- name: nfs-volume
|
|
emptyDir: {}
|
|
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", "chmod 700 /opt/backupstore && /opt/start_nfs.sh | tee /var/log/ganesha.log"]
|
|
securityContext:
|
|
privileged: true
|
|
capabilities:
|
|
add: ["SYS_ADMIN", "DAC_READ_SEARCH"]
|
|
volumeMounts:
|
|
- name: nfs-volume
|
|
mountPath: "/opt/backupstore"
|
|
livenessProbe:
|
|
exec:
|
|
command: ["bash", "-c", "grep \"No export entries found\" /var/log/ganesha.log > /dev/null 2>&1 ; [ $? -ne 0 ]"]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: longhorn-test-nfs-svc
|
|
namespace: default
|
|
spec:
|
|
selector:
|
|
app: longhorn-test-nfs
|
|
clusterIP: None
|
|
ports:
|
|
- name: notnecessary
|
|
port: 1234
|
|
targetPort: 1234
|