-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-on-k8s.yml
40 lines (40 loc) · 895 Bytes
/
test-on-k8s.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: v1
kind: Pod
metadata:
name: robotframework-demo-pod
labels:
app: robotframework-demo
spec:
containers:
- name: run-robot-tests
image: ppodgorsek/robot-framework:latest
env:
- name: PYTHONWARNINGS
value: "ignore:Unverified HTTPS request"
# command: ['sh', '-c', 'echo The app is running! && sleep 3600']
volumeMounts:
- mountPath: /opt/robotframework/tests
name: git
resources:
limits:
cpu: "1"
memory: "1Gi"
requests:
cpu: "0.5"
memory: "500Mi"
restartPolicy: Never
initContainers:
- name: init-clone-repo
image: alpine/git
args:
- clone
- --single-branch
- --
- https://github.com/Nilsty/robotframework-demo
- /var/lib/data
volumeMounts:
- name: git
mountPath: /var/lib/data
volumes:
- emptyDir: {}
name: git