zammad-docker-compose/kubernetes/56_statefulset_nfs.yaml
2017-11-21 19:19:50 +01:00

31 lines
650 B
YAML

apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: zammad-nfs
namespace: zammad
labels:
component: netfs
app: zammad
spec:
serviceName: zammad-nfs
replicas: 1
template:
metadata:
labels:
component: netfs
app: nfs
spec:
terminationGracePeriodSeconds: 10
containers:
- name: zammad-nfs
image: zammad/zammad-docker-compose:zammad-nfs
args: [ "zammad-nfs" ]
imagePullPolicy: Always
ports:
- containerPort: 2049
name: nfsserver
- containerPort: 111
name: rpc
securityContext:
privileged: true