| --- |
| 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 |
| args: |
| - bash |
| - -c |
| - "/start-aptly-api.sh" |
| volumeMounts: |
| - name: aptly-state |
| mountPath: /var/lib/aptly-api |
| - name: mendel-release-credentials |
| mountPath: /var/lib/aptly-api/.keys |
| readOnly: true |
| volumes: |
| - name: aptly-state |
| persistentVolumeClaim: |
| claimName: aptly-state |
| - name: mendel-release-credentials |
| secret: |
| secretName: mendel-release-credentials |
| |
| --- |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: aptly-api |
| spec: |
| ports: |
| - port: 80 |
| targetPort: 8080 |
| protocol: TCP |
| selector: |
| app: aptly-api |