nginx: Add in a new endpoint for serving images

This will allow us to store images on the webserver in the same NFS repository
as the rest of the apt packages.

Change-Id: Ia7f7be3c6ba8b538c00839346145dab3d85953c3
diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml
index 950e81a..2e1c4dc 100644
--- a/k8s/ingress.yaml
+++ b/k8s/ingress.yaml
@@ -66,6 +66,10 @@
             backend:
               serviceName: nginx-apt
               servicePort: 80
+          - path: /images/*
+            backend:
+              serviceName: nginx-apt
+              servicePort: 80
           - path: /*
             backend:
               serviceName: jenkins-mendel-linux
diff --git a/k8s/nginx-apt.yaml b/k8s/nginx-apt.yaml
index 58b7f27..8d0c028 100644
--- a/k8s/nginx-apt.yaml
+++ b/k8s/nginx-apt.yaml
@@ -11,7 +11,12 @@
 
       location /apt {
         autoindex on;
-        alias /usr/share/nginx/html;
+        alias /usr/share/nginx/html/publishes;
+      }
+
+      location /images {
+        autoindex on;
+        alias /usr/share/nginx/html/images;
       }
 
       location / {
@@ -56,7 +61,6 @@
               memory: 0.5Gi
           volumeMounts:
             - mountPath: /usr/share/nginx/html
-              subPath: publishes
               name: aptly-publishes
             - mountPath: /etc/nginx/conf.d
               name: nginx-config