blob: c8bdc9f325c55e28895b4c5b816ce8d560589556 [file] [log] [blame]
Alanny Lopez07b4d5b2017-08-01 16:24:07 -05001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
Alanny Lopez1246b032018-02-24 23:34:55 -06004 name: ${deploy_name}
Alanny Lopez07b4d5b2017-08-01 16:24:07 -05005 namespace: ${namespace}
6spec:
7 replicas: ${replicas}
8 selector:
9 matchLabels:
Alanny Lopez1246b032018-02-24 23:34:55 -060010 app: ${deploy_name}
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050011 template:
12 metadata:
13 labels:
Alanny Lopez1246b032018-02-24 23:34:55 -060014 app: ${deploy_name}
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050015 spec:
16 volumes:
Alanny Lopeza6b7d4b2017-10-19 09:58:25 -050017 - name: workspace
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050018 persistentVolumeClaim:
Alanny Lopez1246b032018-02-24 23:34:55 -060019 claimName: ${w_claim}
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050020 nodeSelector:
Alanny Lopezeba5ad42017-08-18 14:48:37 -050021 beta.kubernetes.io/arch: ${ARCH}
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050022 securityContext:
23 runAsUser: 0
24 containers:
Alanny Lopez1246b032018-02-24 23:34:55 -060025 - image: ${img_name}
26 name: ${pod_name}
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050027 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 Lopeza6b7d4b2017-10-19 09:58:25 -050058 - name: workspace
Alanny Lopez07b4d5b2017-08-01 16:24:07 -050059 subPath: ${jenkins_subpath}
60 mountPath: ${OBMC_BUILD_DIR}
61 imagePullSecrets:
Alanny Lopez1246b032018-02-24 23:34:55 -060062 - name: ${img_pl_sec}