To use Helm to install DocMag:

1. Create a password for the user interface using:

    kubectl create secret generic docmagui-secret \
    --from-literal=username='docmag' \
    --from-literal=password='supersecretpassword'

2. Ensure you have a persistent volume already created that points to your document repository. If not:
  2a. Modify document-volumes.sample to fit the storage location of your documents
  2b. Deploy this Persistent Volume using `kubectl apply -f document-volumes.yaml`

3. This installation uses the Ingress feature of Kubernetes, and presupposes that
you have an Ingress controller already installed.

For bare metal (non-cloud) installations, the nginx Ingress controller
can be installed with Helm, as in:

    helm install stable/nginx-ingress --name edge \
        --set rbac.create=true \
        --set controller.service.externalIPs={172.16.54.128} \
        --set controller.service.externalTrafficPolicy=Local

This release has also been tested with modsecurity for web application firewalling -
see https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/modsecurity.md
for details on how this can be configured with nginx.

To serve the web interface over TLS, first create a Secret within Kubernetes
that contains the TLS certificate and key. An example of how to do this with
the nginx Ingress controller might be:

    kubectl create secret tls docmag-tls \
    --key etc/live/yourdomain.egg/privkey.pem \
    --cert etc/live/yourdomain.egg/fullchain.pem

Once the secret is installed, an install command like the following can be used:

    helm install docmag/docmag --name=docmag \
    --set ingress.hosts={node.yourdomain.egg} \
    --set ingress.tls.secretName=docmag-tls
