Etherpad: Installer configuration

Change-Id: I808e3c1835e2f0bf5fe2e0da138710c979a38e38
diff --git a/charts/etherpad/.helmignore b/charts/etherpad/.helmignore
new file mode 100644
index 0000000..0e8a0eb
--- /dev/null
+++ b/charts/etherpad/.helmignore
@@ -0,0 +1,23 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
diff --git a/charts/etherpad/Chart.yaml b/charts/etherpad/Chart.yaml
new file mode 100644
index 0000000..3f4d17b
--- /dev/null
+++ b/charts/etherpad/Chart.yaml
@@ -0,0 +1,6 @@
+apiVersion: v2
+name: etherpad
+description: A Helm chart for etherpad
+type: application
+version: 0.0.1
+appVersion: "0.0.1"
diff --git a/charts/etherpad/templates/install.yaml b/charts/etherpad/templates/install.yaml
new file mode 100644
index 0000000..a7d924b
--- /dev/null
+++ b/charts/etherpad/templates/install.yaml
@@ -0,0 +1,73 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: etherpad
+  namespace: {{ .Release.Namespace }}
+spec:
+  type: ClusterIP
+  selector:
+    app: etherpad
+  ports:
+  - name: {{ .Values.portName }}
+    port: 80
+    targetPort: {{ .Values.portName }}
+    protocol: TCP
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: etherpad
+  namespace: {{ .Release.Namespace }}
+spec:
+  selector:
+    matchLabels:
+      app: etherpad
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: etherpad
+    spec:
+      volumes:
+      - name: data
+        persistentVolumeClaim:
+          claimName: {{ .Values.persistentVolumeClaimName }}
+      containers:
+      - name: etherpad
+        image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
+        imagePullPolicy: {{ .Values.image.pullPolicy }}
+        ports:
+        - name: {{ .Values.portName }}
+          containerPort: 8080
+          protocol: TCP
+        env:
+        - name: "PORT"
+          value: "8080"
+        - name: "NODE_ENV"
+          value: "production"
+        - name: "ADMIN_PASSWORD"
+          value: "admin"
+        - name: "USER_PASSWORD"
+          value: "user"
+        - name: "DEFAULT_PAD_TEXT"
+          value: "dodo"
+        - name: "TRUST_PROXY"
+          value: "true"
+        - name: "DB_TYPE"
+          value: "{{ .Values.db.type }}"
+        - name: "DB_HOST"
+          value: "{{ .Values.db.host }}"
+        - name: "DB_PORT"
+          value: "{{ .Values.db.port }}"
+        - name: "DB_NAME"
+          value: "{{ .Values.db.name }}"
+        - name: "DB_USER"
+          value: "{{ .Values.db.user }}"
+        - name: "DB_PASS"
+          value: "{{ .Values.db.pass }}"
+        - name: "DB_CHARSET"
+          value: "{{ .Values.db.charset }}"
+        volumeMounts:
+        - name: data
+          mountPath: /var/lib/etherpad
+          readOnly: false
diff --git a/charts/etherpad/values.yaml b/charts/etherpad/values.yaml
new file mode 100644
index 0000000..ab5d5eb
--- /dev/null
+++ b/charts/etherpad/values.yaml
@@ -0,0 +1,14 @@
+image:
+  repository: etherpad/etherpad
+  tag: latest
+  pullPolicy: Always
+portName: http
+persistentVolumeClaimName: "data"
+db:
+  type: ""
+  host: ""
+  port: 80
+  name: ""
+  user: ""
+  pass: ""
+  charset: ""