-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update service and deployment into separate specs
Add CLI entrypoint for Klat deployment Add method to build Klat deployment configuration
- Loading branch information
1 parent
cff4bf6
commit cdcb248
Showing
12 changed files
with
375 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
neon_diana_utils/helm_charts/klat-chat/templates/config-map.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Values.configMap }} | ||
data: | ||
"{{ .Values.configFilename }}": | | ||
{{ .Files.Get "klat.yaml" | nindent 4}} |
58 changes: 58 additions & 0 deletions
58
neon_diana_utils/helm_charts/klat-chat/templates/deployment-client.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Chart.Name }}-client | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
neon.diana.service: {{ .Chart.Name }}-client | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
annotations: | ||
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }} | ||
labels: | ||
neon.diana.service: {{ .Chart.Name }}-client | ||
neon.project.name: klat | ||
neon.service.class: klat-chat | ||
spec: | ||
restartPolicy: Always | ||
imagePullSecrets: | ||
- name: {{ .Values.imagePullSecret }} | ||
volumes: | ||
- name: config | ||
projected: | ||
sources: | ||
- configMap: | ||
name: {{ .Values.configMap }} | ||
containers: | ||
- image: {{ .Values.images.client.image }}:{{ .Values.images.tag }} | ||
imagePullPolicy: {{ $.Values.images.pullPolicy }} | ||
name: {{ .Values.images.client.name }} | ||
env: | ||
- name: OVOS_CONFIG_FILENAME | ||
value: klat.yaml | ||
- name: OVOS_CONFIG_BASE_FOLDER | ||
value: neon | ||
- name: XDG_CONFIG_HOME | ||
value: /config | ||
- name: CORS_ALLOWED_ORIGINS | ||
value: https://klat.{{ .Values.domain }} | ||
- name: LOG_LEVEL | ||
value: DEBUG | ||
- name: HOST | ||
value: 0.0.0.0 | ||
- name: PORT | ||
value: "8001" | ||
- name: INCLUDED_LANGUAGES | ||
value: en,es,de,uk,fr,pl,pt | ||
volumeMounts: | ||
- name: config | ||
mountPath: /config/neon/{{ $.Values.configFilename }} | ||
subPath: {{ $.Values.configFilename }} | ||
{{- if $.Values.resources }} | ||
resources: | ||
{{- toYaml $.Values.resources | nindent 12 -}} | ||
{{ end }} |
Oops, something went wrong.