blob: cc8d06c3ad90cbc90cba66caabb702bdb529b3a9 [file] [log] [blame]
PUSHP RAJ3bdfd962022-01-18 12:20:32 +00001# SPDX-FileCopyrightText: 2022-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
PUSHP RAJ3bdfd962022-01-18 12:20:32 +00004
5apiVersion: apps/v1
6kind: Deployment
7metadata:
8 name: {{ template "rasa-model-server.fullname" . }}
9 namespace: {{ .Release.Namespace }}
10 labels:
11 name: {{ template "rasa-model-server.fullname" . }}
12spec:
13 replicas: {{ .Values.replicaCount }}
14 selector:
15 matchLabels:
16 {{- include "rasa-model-server.selectorLabels" . | nindent 6 }}
17 template:
18 metadata:
19 labels:
20 name: {{ template "rasa-model-server.fullname" . }}
21 {{- include "rasa-model-server.selectorLabels" . | nindent 8 }}
22 spec:
23 {{- with .Values.imagePullSecrets }}
24 imagePullSecrets:
25 {{- toYaml . | nindent 6 }}
26 {{- end }}
27 securityContext:
28 {{- toYaml .Values.podSecurityContext | nindent 8 }}
29 containers:
30 - name: {{ .Chart.Name }}
31 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
32 imagePullPolicy: {{ .Values.image.pullPolicy }}
33 env:
34 - name: POD_NAMESPACE
35 valueFrom:
36 fieldRef:
37 fieldPath: metadata.namespace
38 - name: POD_NAME
39 valueFrom:
40 fieldRef:
41 fieldPath: metadata.name
42 - name: NODE_NAME
43 valueFrom:
44 fieldRef:
45 fieldPath: spec.nodeName
46 args:
47 - "/usr/local/bin/rasa-model-server"
48 - "--modelPath"
49 - {{ .Values.modelfiles }}
50 ports:
51 - name: models
52 containerPort: 8080
53 readinessProbe:
54 httpGet:
PUSHP RAJ15a73262022-01-19 13:16:43 +000055 path: /models/
PUSHP RAJ3bdfd962022-01-18 12:20:32 +000056 port: 8080
57 initialDelaySeconds: 5
58 periodSeconds: 10
59 livenessProbe:
60 httpGet:
PUSHP RAJ15a73262022-01-19 13:16:43 +000061 path: /models/
PUSHP RAJ3bdfd962022-01-18 12:20:32 +000062 port: 8080
63 initialDelaySeconds: 15
64 periodSeconds: 20