blob: 490beb01e24b1ee061f4dbbd09091cac6ddd8d15 [file] [log] [blame]
Alanny Lopez07b4d5b2017-08-01 16:24:07 -05001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: ${deployname}
5 namespace: ${namespace}
6spec:
7 replicas: ${replicas}
8 selector:
9 matchLabels:
10 app: ${deployname}
11 template:
12 metadata:
13 labels:
14 app: ${deployname}
15 spec:
16 volumes:
17 - name: home
18 persistentVolumeClaim:
19 claimName: ${hclaim}
20 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:
25 - image: ${imgname}
26 name: ${podname}
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:
58 - name: home
59 subPath: ${jenkins_subpath}
60 mountPath: ${OBMC_BUILD_DIR}
61 imagePullSecrets:
62 - name: ${imgplsec}