Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 4 | name: ${deploy_name} |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 5 | namespace: ${namespace} |
| 6 | spec: |
| 7 | replicas: ${replicas} |
| 8 | selector: |
| 9 | matchLabels: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 10 | app: ${deploy_name} |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 11 | template: |
| 12 | metadata: |
| 13 | labels: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 14 | app: ${deploy_name} |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 15 | spec: |
| 16 | volumes: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 17 | - name: workspace |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 18 | persistentVolumeClaim: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 19 | claimName: ${w_claim} |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 20 | nodeSelector: |
Alanny Lopez | eba5ad4 | 2017-08-18 14:48:37 -0500 | [diff] [blame] | 21 | beta.kubernetes.io/arch: ${ARCH} |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 22 | securityContext: |
| 23 | runAsUser: 0 |
| 24 | containers: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 25 | - image: ${img_name} |
| 26 | name: ${pod_name} |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 27 | command: [\"${OBMC_BUILD_DIR}/boot-qemu.sh\"] |
| 28 | tty: true |
| 29 | workingDir: ${OBMC_BUILD_DIR} |
| 30 | env: |
| 31 | - name: QEMU_RUN_TIME |
| 32 | value: \"${QEMU_RUN_TIMER}\" |
| 33 | - name: QEMU_ARCH |
| 34 | value: \"${QEMU_ARCH}\" |
| 35 | - name: HOME |
| 36 | value: \"${OBMC_BUILD_DIR}\" |
| 37 | ports: |
| 38 | - containerPort: 443 |
| 39 | name: https |
| 40 | protocol: TCP |
| 41 | - containerPort: 80 |
| 42 | name: http |
| 43 | protocol: TCP |
| 44 | - containerPort: 4000 |
| 45 | name: rest-api |
| 46 | protocol: TCP |
| 47 | - containerPort: 22 |
| 48 | name: ssh |
| 49 | protocol: TCP |
| 50 | resources: |
| 51 | requests: |
| 52 | memory: "600Mi" |
| 53 | cpu: "400m" |
| 54 | limits: |
| 55 | memory: "1Gi" |
| 56 | cpu: "1000m" |
| 57 | volumeMounts: |
Alanny Lopez | a6b7d4b | 2017-10-19 09:58:25 -0500 | [diff] [blame] | 58 | - name: workspace |
Alanny Lopez | 07b4d5b | 2017-08-01 16:24:07 -0500 | [diff] [blame] | 59 | subPath: ${jenkins_subpath} |
| 60 | mountPath: ${OBMC_BUILD_DIR} |
| 61 | imagePullSecrets: |
Alanny Lopez | 1246b03 | 2018-02-24 23:34:55 -0600 | [diff] [blame] | 62 | - name: ${img_pl_sec} |