Skip to content

Commit

Permalink
Add admin service to klat deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 27, 2023
1 parent a5cfaa8 commit f0cded7
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neon_diana_utils/helm_charts/klat/klat-chat/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: klat-chat
description: Deploy Klat Services

type: application
version: 0.0.3
version: 0.0.4
appVersion: "1.0.1a9"
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.serviceName }}-admin
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
neon.diana.service: {{ .Values.serviceName }}-admin
strategy:
type: Recreate
template:
metadata:
annotations:
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
labels:
neon.diana.service: {{ .Values.serviceName }}-admin
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.admin.image }}:{{ .Values.images.tag }}
imagePullPolicy: {{ $.Values.images.pullPolicy }}
name: {{ .Values.images.admin.name }}
env:
- name: OVOS_CONFIG_FILENAME
value: klat.yaml
- name: OVOS_CONFIG_BASE_FOLDER
value: neon
- name: XDG_CONFIG_HOME
value: /config
- name: REACT_APP_SERVER_URL
value: "http://127.0.0.1:8000"
volumeMounts:
- name: config
mountPath: /config/neon/{{ $.Values.configFilename }}
subPath: {{ $.Values.configFilename }}
{{- if $.Values.resources }}
resources:
{{- toYaml $.Values.resources | nindent 12 -}}
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
neon.project.name: klat
neon.diana.service: {{ .Values.serviceName }}
neon.service.class: klat-admin
name: {{ .Values.serviceName }}-admin
spec:
type: ClusterIP
selector:
neon.diana.service: {{ .Values.serviceName }}-admin
ports:
- name: klat-admin
port: 3000
targetPort: 3000
protocol: TCP
9 changes: 8 additions & 1 deletion neon_diana_utils/helm_charts/klat/klat-chat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ domain: diana.k8s
configMap: klat-config
clientSubdomain: klat
serverSubdomain: klatapi
adminSubdomain: admin
images:
tag: dev
pullPolicy: Always
Expand All @@ -17,6 +18,9 @@ images:
observer:
image: ghcr.io/neongeckocom/klatchat_observer
name: klat-chat-observer
admin:
image: ghcr.io/neondaniel/pyklatchat_admin
name: klat-chat-admin

ingress:
enabled: True
Expand All @@ -29,4 +33,7 @@ ingress:
servicePort: 8001
- host: klatapi
serviceName: klat-chat-server
servicePort: 8010
servicePort: 8010
- host: admin
serviceName: klat-chat-admin
servicePort: 3000

0 comments on commit f0cded7

Please sign in to comment.