-
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.
Add admin service to klat deployment
- Loading branch information
1 parent
a5cfaa8
commit f0cded7
Showing
4 changed files
with
76 additions
and
2 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
50 changes: 50 additions & 0 deletions
50
neon_diana_utils/helm_charts/klat/klat-chat/templates/deployment-admin.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,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 }} |
17 changes: 17 additions & 0 deletions
17
neon_diana_utils/helm_charts/klat/klat-chat/templates/service-admin.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,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 |
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