apiVersion: apps/v1
kind: Deployment
metadata:
  name: etherpad
spec:
  replicas: 1
  selector:
    matchLabels:
      app: etherpad
  template:
    metadata:
      labels:
        app: etherpad
    spec:
      containers:
      - name: etherpad
        image: etherpad/etherpad:1.7.5
        ports:
        - containerPort: 9001
          name: web
        volumeMounts:
        - name: "config"
          mountPath: "/opt/etherpad/settings.json"
          subPath: "settings.json"
      volumes:
      - name: config
        configMap:
          name: etherpad
