-
Notifications
You must be signed in to change notification settings - Fork 25
/
api-rest-deployment.yaml
48 lines (48 loc) · 1.65 KB
/
api-rest-deployment.yaml
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
41
42
43
44
45
46
47
48
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-api-rest
labels:
app: api-rest
spec:
replicas: 1
selector:
matchLabels:
app: api-rest
template:
metadata:
labels:
app: api-rest
openebs.io/logging: "true"
spec:
imagePullSecrets:
{{- include "base_pull_secrets" . }}
initContainers:
{{- include "base_init_containers" . }}
{{- if .Values.nodeSelector }}
nodeSelector: {{- toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
containers:
- name: api-rest
resources:
limits:
cpu: {{ .Values.rest.resources.limits.cpu | quote }}
memory: {{ .Values.rest.resources.limits.memory | quote }}
requests:
cpu: {{ .Values.rest.resources.requests.cpu | quote }}
memory: {{ .Values.rest.resources.requests.memory | quote }}
image: "{{ .Values.image.registry }}/{{ .Values.image.repo }}/mayastor-api-rest:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- "--dummy-certificates"
- "--no-auth"
- "--http=0.0.0.0:8081"
- "--request-timeout={{ .Values.base.default_req_timeout }}"{{ if .Values.base.jaeger.enabled }}
- "--jaeger={{ .Values.base.jaeger.agent.name }}:{{ .Values.base.jaeger.agent.port }}"{{ end }}
- "--core-grpc=https://{{ .Release.Name }}-agent-core:50051"
ports:
- containerPort: 8080
- containerPort: 8081
env:
- name: RUST_LOG
value: {{ .Values.rest.logLevel }}