k8s: Setup aptly deployment and service
This prepares us for running aptly in the K8S domain with a proper service
definition so that Jenkins can ultimately find it.
Change-Id: I54154b531d865b663d171436975592954ed6264c
diff --git a/operator-configs/aptly-api.yaml b/operator-configs/aptly-api.yaml
new file mode 100644
index 0000000..34e68a2
--- /dev/null
+++ b/operator-configs/aptly-api.yaml
@@ -0,0 +1,35 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: aptly-api
+ labels:
+ app: aptly-api
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: aptly-api
+ template:
+ metadata:
+ labels:
+ app: aptly-api
+ spec:
+ restartPolicy: Always
+ containers:
+ - name: aptly-api
+ image: gcr.io/mendel-linux-cloud-infra/aptly-api:latest
+ imagePullPolicy: Always
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: aptly-api
+spec:
+ ports:
+ - port: 80
+ targetPort: 8080
+ protocol: TCP
+ selector:
+ app: aptly-api