Files
Giacomo Guiulfo 8c1fa7b623 [stable/cosbench]: add Cosbench chart (#8235)
* [stable/cosbench]: add Cosbench chart

Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>

* [stable/cosbench]: update apiVersions

Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>

* [stable/cosbench]: use default weight from values

Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>

* [stable/cosbench]: add service accounts

Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>
2018-10-16 01:17:08 -07:00

40 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "cosbench.controller.fullname" . }}
labels:
app: {{ template "cosbench.name" . }}
chart: {{ template "cosbench.chart" . }}
component: controller
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ template "cosbench.name" . }}
release: {{ .Release.Name }}
component: controller
template:
metadata:
labels:
app: {{ template "cosbench.name" . }}
release: {{ .Release.Name }}
component: controller
spec:
serviceAccountName: {{ template "cosbench.serviceAccountName.controller" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
ports:
- name: controller
containerPort: 19088
protocol: TCP
env:
- name: LOG_LEVEL
value: "{{ .Values.controller.logLevel }}"
- name: DRIVERS
value: "{{ template "cosbench.driversList" . }}"
args: ['java','-Dcosbench.tomcat.config=conf/controller-tomcat-server.xml','-server','-cp','main/*','org.eclipse.equinox.launcher.Main','-configuration','conf/.controller','-console','19089']