-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathkubernetes-config.yaml.j2
More file actions
37 lines (32 loc) · 1.02 KB
/
kubernetes-config.yaml.j2
File metadata and controls
37 lines (32 loc) · 1.02 KB
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
#
# Apache v2 license
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# You can specify the Kubernetes deployment in the format of a kubernetes-config.yaml.j2
# or helm charts. See WordPress5MT as an example of using helm charts.
# The IMAGENAME macro extract the docker image name from the Dockerfile and apply
# REGISTRY and RELEASE tags.
# The IMAGEPOLICY macro specifies the image pulling policy. If REGISTRY is defined,
# the image pull policy is default to IfNotExist, or else Always.
apiVersion: batch/v1
kind: Job
metadata:
name: dummy-benchmark
spec:
template:
spec:
containers:
- name: dummy-benchmark
image: "{{ REGISTRY }}dummy{{ IMAGESUFFIX }}{{ RELEASE }}"
imagePullPolicy: Always
env:
- name: SCALE
value: "{{ SCALE }}"
- name: RETURN_VALUE
value: "{{ RETURN_VALUE }}"
- name: SLEEP_TIME
value: "{{ SLEEP_TIME }}"
- name: ROI
value: "{{ ROI }}"
restartPolicy: Never