aptly: Add in some persistent data store
This gives aptly a persistent location backed by Filestore, which is
essentialy a glorified NFS mount.
Change-Id: I1f4e5f4199def1003cdc324c4c1a95307039b05e
diff --git a/operator-configs/aptly-api.yaml b/operator-configs/aptly-api.yaml
index 34e68a2..385ac0d 100644
--- a/operator-configs/aptly-api.yaml
+++ b/operator-configs/aptly-api.yaml
@@ -20,6 +20,41 @@
- name: aptly-api
image: gcr.io/mendel-linux-cloud-infra/aptly-api:latest
imagePullPolicy: Always
+ volumeMounts:
+ - mountPath: /var/lib/aptly-api
+ name: aptly-state
+ volumes:
+ - name: aptly-state
+ persistentVolumeClaim:
+ claimName: aptly-state
+
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: apt-repository-fileserver
+spec:
+ capacity:
+ storage: 1T
+ accessModes:
+ - ReadWriteMany
+ nfs:
+ path: /aptly_storage
+ server: 10.63.110.90
+
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: aptly-state
+spec:
+ accessModes:
+ - ReadWriteMany
+ storageClassName: ""
+ volumeName: apt-repository-fileserver
+ resources:
+ requests:
+ storage: 1T
---
apiVersion: v1