Merge branch 'client2-sync-new-apps-from-yandex' into 'client2'
sync-yandex-apps See merge request devops/cw-infra-apps!6
This commit is contained in:
commit
f7c9f395fa
@ -122,4 +122,10 @@ dependencies:
|
|||||||
repository: file://charts/workspace-app-k8s
|
repository: file://charts/workspace-app-k8s
|
||||||
- name: workspace-event-handler-app
|
- name: workspace-event-handler-app
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
repository: file://charts/workspace-event-handler-app-k8s
|
repository: file://charts/workspace-event-handler-app-k8s
|
||||||
|
- name: devices-app
|
||||||
|
version: "0.1.0"
|
||||||
|
repository: file://charts/devices-app-k8s
|
||||||
|
- name: license-app
|
||||||
|
version: "0.1.0"
|
||||||
|
repository: file://charts/license-app-k8s
|
||||||
|
|||||||
@ -50,6 +50,7 @@ spec:
|
|||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: WORKSPACE_HOST
|
- name: WORKSPACE_HOST
|
||||||
value: "{{ .Values.env.workspace_host }}"
|
value: "{{ .Values.env.workspace_host }}"
|
||||||
- name: WORKSPACE_PORT
|
- name: WORKSPACE_PORT
|
||||||
|
|||||||
23
charts/backend/charts/admin-ui-app-k8s/.helmignore
Executable file
23
charts/backend/charts/admin-ui-app-k8s/.helmignore
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
6
charts/backend/charts/admin-ui-app-k8s/Chart.yaml
Executable file
6
charts/backend/charts/admin-ui-app-k8s/Chart.yaml
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: admin-ui-app
|
||||||
|
description: Helm chart for Admin ui app
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.0.0-SNAPSHOT"
|
||||||
24
charts/backend/charts/admin-ui-app-k8s/templates/_helpers.tpl
Executable file
24
charts/backend/charts/admin-ui-app-k8s/templates/_helpers.tpl
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
{{/* Common labels */}}
|
||||||
|
{{- define "admin-ui-app.labels" -}}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||||
|
app.kubernetes.io/name: {{ include "admin-ui-app.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Chart.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* Name */}}
|
||||||
|
{{- define "admin-ui-app.name" -}}
|
||||||
|
{{- .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* Fullname */}}
|
||||||
|
{{- define "admin-ui-app.fullname" -}}
|
||||||
|
{{- .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* Selector labels */}}
|
||||||
|
{{- define "admin-ui-app.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "admin-ui-app.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Chart.Name }}
|
||||||
|
{{- end }}
|
||||||
22
charts/backend/charts/admin-ui-app-k8s/templates/deployment.yaml
Executable file
22
charts/backend/charts/admin-ui-app-k8s/templates/deployment.yaml
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ include "admin-ui-app.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "admin-ui-app.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "admin-ui-app.selectorLabels" . | nindent 6 }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
{{- include "admin-ui-app.selectorLabels" . | nindent 8 }}
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: admin-ui-app
|
||||||
|
ports:
|
||||||
|
- containerPort: 9090
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
38
charts/backend/charts/admin-ui-app-k8s/templates/ingress.yaml
Executable file
38
charts/backend/charts/admin-ui-app-k8s/templates/ingress.yaml
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
{{- if .Values.ingress.enabled }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.ingress.name }}
|
||||||
|
namespace: {{ .Release.Namespace | default "default" }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{ toYaml . | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
|
||||||
|
tls:
|
||||||
|
{{- range .Values.ingress.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName | quote }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
rules:
|
||||||
|
{{- range .Values.ingress.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
{{- range .paths }}
|
||||||
|
- path: {{ .path | quote }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ $.Values.service.name }}
|
||||||
|
port:
|
||||||
|
number: {{ $.Values.service.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
15
charts/backend/charts/admin-ui-app-k8s/templates/service.yaml
Executable file
15
charts/backend/charts/admin-ui-app-k8s/templates/service.yaml
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "admin-ui-app.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "admin-ui-app.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
selector:
|
||||||
|
{{- include "admin-ui-app.selectorLabels" . | nindent 4 }}
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: {{ .Values.service.port }}
|
||||||
|
targetPort: {{ .Values.service.targetPort }}
|
||||||
|
protocol: TCP
|
||||||
30
charts/backend/charts/admin-ui-app-k8s/values.yaml
Executable file
30
charts/backend/charts/admin-ui-app-k8s/values.yaml
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: registry.co-work.ru/admin-panel-cowork
|
||||||
|
tag: preprod
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
|
service:
|
||||||
|
name: admin-ui-app
|
||||||
|
type: ClusterIP
|
||||||
|
port: 9090
|
||||||
|
targetPort: 80
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
name: admin-ui-ingress
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
||||||
|
hosts:
|
||||||
|
- host: admin-ui.co-work.ru
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- admin-ui.co-work.ru
|
||||||
|
secretName: co-work-secret
|
||||||
@ -19,6 +19,7 @@ spec:
|
|||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: SWAGGER_HOST
|
- name: SWAGGER_HOST
|
||||||
value: "{{ .Values.env.swagger_host }}"
|
value: "{{ .Values.env.swagger_host }}"
|
||||||
- name: SWAGGER_PORT
|
- name: SWAGGER_PORT
|
||||||
|
|||||||
@ -85,6 +85,8 @@ spec:
|
|||||||
value: {{ .Values.env.services.user | quote }}
|
value: {{ .Values.env.services.user | quote }}
|
||||||
- name: GRPC_CLIENT_WORKSPACE_URL
|
- name: GRPC_CLIENT_WORKSPACE_URL
|
||||||
value: {{ .Values.env.services.workspace | quote }}
|
value: {{ .Values.env.services.workspace | quote }}
|
||||||
|
- name: GRPC_CLIENT_DEVICE_URL
|
||||||
|
value: {{ .Values.env.services.device | quote }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@ -39,7 +39,7 @@ env:
|
|||||||
sticker: http://sticker-app:9090
|
sticker: http://sticker-app:9090
|
||||||
upload: http://upload-app:9090
|
upload: http://upload-app:9090
|
||||||
workspace: http://workspace-app:9090
|
workspace: http://workspace-app:9090
|
||||||
|
device: http://devices-app:9090
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|||||||
@ -61,6 +61,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: KEYCLOAK_URL
|
- name: KEYCLOAK_URL
|
||||||
value: {{ .Values.env.keycloak.url | quote }}
|
value: {{ .Values.env.keycloak.url | quote }}
|
||||||
- name: LIVEKIT_API_KEY
|
- name: LIVEKIT_API_KEY
|
||||||
|
|||||||
@ -63,6 +63,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: LIVEKIT_API_KEY
|
- name: LIVEKIT_API_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@ -24,6 +24,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: BRANCHIO_ACCESS
|
- name: BRANCHIO_ACCESS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@ -54,11 +55,6 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Values.secrets.branchio }}
|
name: {{ .Values.secrets.branchio }}
|
||||||
key: branchio-url
|
key: branchio-url
|
||||||
- name: DEEPLINK_DOMAIN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ .Values.secrets.branchio }}
|
|
||||||
key: deeplink-domain
|
|
||||||
- name: DEEPLINK_WEBDOMAIN
|
- name: DEEPLINK_WEBDOMAIN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@ -66,7 +62,4 @@ spec:
|
|||||||
key: deeplink-webdomain
|
key: deeplink-webdomain
|
||||||
- name: DEEPLINK_TENANT
|
- name: DEEPLINK_TENANT
|
||||||
value: {{ .Values.deeplink.tenant | quote }}
|
value: {{ .Values.deeplink.tenant | quote }}
|
||||||
|
|
||||||
- name: KEYCLOAK_URL
|
|
||||||
value: {{ .Values.keycloak.url | quote }}
|
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
|||||||
@ -20,4 +20,4 @@ secrets:
|
|||||||
env:
|
env:
|
||||||
CASSANDRA_PORT: "9042"
|
CASSANDRA_PORT: "9042"
|
||||||
deeplink:
|
deeplink:
|
||||||
tenant: stage.co-work.local
|
tenant: preprod-co-work.ru
|
||||||
|
|||||||
23
charts/backend/charts/devices-app-k8s/.helmignore
Executable file
23
charts/backend/charts/devices-app-k8s/.helmignore
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
24
charts/backend/charts/devices-app-k8s/Chart.yaml
Executable file
24
charts/backend/charts/devices-app-k8s/Chart.yaml
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: devices-app
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
|
||||||
|
# A chart can be either an 'application' or a 'library' chart.
|
||||||
|
#
|
||||||
|
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||||
|
# to be deployed.
|
||||||
|
#
|
||||||
|
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||||
|
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||||
|
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||||
|
type: application
|
||||||
|
|
||||||
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
|
# to the chart and its templates, including the app version.
|
||||||
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
|
version: 0.1.0
|
||||||
|
|
||||||
|
# This is the version number of the application being deployed. This version number should be
|
||||||
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
|
# It is recommended to use it with quotes.
|
||||||
|
appVersion: "1.16.0"
|
||||||
27
charts/backend/charts/devices-app-k8s/templates/_helpers.tpl
Executable file
27
charts/backend/charts/devices-app-k8s/templates/_helpers.tpl
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
{{/*
|
||||||
|
Return the name of the chart
|
||||||
|
*/}}
|
||||||
|
{{- define "devices-app.name" -}}
|
||||||
|
{{- .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
*/}}
|
||||||
|
{{- define "devices-app.fullname" -}}
|
||||||
|
{{- .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "devices-app.labels" -}}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||||
|
app.kubernetes.io/name: {{ include "devices-app.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Chart.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
{{- define "devices-app.quote" -}}
|
||||||
|
{{- . | quote }}
|
||||||
|
{{- end }}
|
||||||
76
charts/backend/charts/devices-app-k8s/templates/deployment.yaml
Executable file
76
charts/backend/charts/devices-app-k8s/templates/deployment.yaml
Executable file
@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ include "devices-app.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "devices-app.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ include "devices-app.name" . }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ include "devices-app.name" . }}
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: ca-cert
|
||||||
|
configMap:
|
||||||
|
name: auth-app-ca-cert
|
||||||
|
items:
|
||||||
|
- key: RootCA_{{ .Values.global.cert_alias }}.crt
|
||||||
|
path: RootCA_{{ .Values.global.cert_alias }}.crt
|
||||||
|
- name: cacerts-volume
|
||||||
|
emptyDir: {}
|
||||||
|
initContainers:
|
||||||
|
- name: import-ca
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
env:
|
||||||
|
- name: CERT_ALIAS
|
||||||
|
value: {{ .Values.global.cert_alias | quote }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: ca-cert
|
||||||
|
mountPath: /app/resources
|
||||||
|
- name: cacerts-volume
|
||||||
|
mountPath: /tmp/cacerts
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
cp /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts /tmp/cacerts/cacerts &&
|
||||||
|
keytool -import -trustcacerts -storepass changeit -noprompt \
|
||||||
|
-alias gemcert \
|
||||||
|
-file /app/resources/RootCA_${CERT_ALIAS}.crt \
|
||||||
|
-keystore /tmp/cacerts/cacerts
|
||||||
|
containers:
|
||||||
|
- name: {{ .Chart.Name }}
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
ports:
|
||||||
|
- containerPort: 9090
|
||||||
|
name: grpc
|
||||||
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
|
{{- include "global.env.postgres" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
|
- name: KAFKA
|
||||||
|
value: {{ .Values.env.KAFKA }}
|
||||||
|
- name: USER_HOST
|
||||||
|
value: {{ .Values.env.USER_HOST }}
|
||||||
|
- name: USER_PORT
|
||||||
|
value: {{ include "devices-app.quote" .Values.env.USER_PORT }}
|
||||||
|
- name: AUTH_HOST
|
||||||
|
value: {{ .Values.env.AUTH_HOST }}
|
||||||
|
- name: AUTH_PORT
|
||||||
|
value: {{ include "devices-app.quote" .Values.env.AUTH_PORT }}
|
||||||
|
- name: POSTGRES_URL
|
||||||
|
value: {{ .Values.env.postgres.url | quote }}
|
||||||
|
- name: KEYCLOAK_URL
|
||||||
|
value: {{ .Values.env.keycloak.url | quote }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: cacerts-volume
|
||||||
|
mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts
|
||||||
|
subPath: cacerts
|
||||||
|
restartPolicy: Always
|
||||||
13
charts/backend/charts/devices-app-k8s/templates/service.yaml
Executable file
13
charts/backend/charts/devices-app-k8s/templates/service.yaml
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "devices-app.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "devices-app.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: {{ include "devices-app.name" . }}
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 9090
|
||||||
|
targetPort: 9090
|
||||||
17
charts/backend/charts/devices-app-k8s/values.yaml
Executable file
17
charts/backend/charts/devices-app-k8s/values.yaml
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: docker.ii-p001.local/device-app
|
||||||
|
tag: 1.0.0-SNAPSHOT
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
|
env:
|
||||||
|
KAFKA: "kafka.kafka.svc.cluster.local:9092,kafka.kafka.svc.cluster.local:9092,kafka.kafka.svc.cluster.local:9092"
|
||||||
|
USER_HOST: user-app
|
||||||
|
USER_PORT: 9090
|
||||||
|
AUTH_HOST: auth-app
|
||||||
|
AUTH_PORT: 9090
|
||||||
|
keycloak:
|
||||||
|
url: https://iam.stage.co-work.local/realms/co-work
|
||||||
|
postgres:
|
||||||
|
url: jdbc:postgresql://postgresql-ha-pgpool:5432/device
|
||||||
23
charts/backend/charts/license-app-k8s/.helmignore
Executable file
23
charts/backend/charts/license-app-k8s/.helmignore
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
6
charts/backend/charts/license-app-k8s/Chart.yaml
Executable file
6
charts/backend/charts/license-app-k8s/Chart.yaml
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: license-app
|
||||||
|
description: Helm chart for License App
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.0.0-SNAPSHOT"
|
||||||
7
charts/backend/charts/license-app-k8s/templates/_helpers.tpl
Executable file
7
charts/backend/charts/license-app-k8s/templates/_helpers.tpl
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
{{- define "license-app.name" -}}
|
||||||
|
{{ .Chart.Name }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "license-app.fullname" -}}
|
||||||
|
{{ .Chart.Name }}
|
||||||
|
{{- end -}}
|
||||||
32
charts/backend/charts/license-app-k8s/templates/deployment.yaml
Executable file
32
charts/backend/charts/license-app-k8s/templates/deployment.yaml
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ include "license-app.fullname" . }}
|
||||||
|
labels:
|
||||||
|
app: {{ include "license-app.name" . }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ include "license-app.name" . }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ include "license-app.name" . }}
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: license-app
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 9090
|
||||||
|
name: grpc
|
||||||
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
{{- include "global.env.postgres" . | nindent 12 }}
|
||||||
|
- name: POSTGRES_URL
|
||||||
|
value: {{ .Values.env.postgres.url | quote }}
|
||||||
|
restartPolicy: Always
|
||||||
18
charts/backend/charts/license-app-k8s/templates/service.yaml
Executable file
18
charts/backend/charts/license-app-k8s/templates/service.yaml
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "license-app.fullname" . }}
|
||||||
|
labels:
|
||||||
|
app: {{ include "license-app.name" . }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: {{ include "license-app.name" . }}
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
- name: grpc
|
||||||
|
protocol: TCP
|
||||||
|
port: 9090
|
||||||
|
targetPort: 9090
|
||||||
11
charts/backend/charts/license-app-k8s/values.yaml
Executable file
11
charts/backend/charts/license-app-k8s/values.yaml
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: docker.ii-p001.local/license-app
|
||||||
|
tag: 1.0.0-SNAPSHOT
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
|
env:
|
||||||
|
postgres:
|
||||||
|
url: jdbc:postgresql://postgresql-ha-pgpool:5432/license
|
||||||
|
username: postgres
|
||||||
@ -54,10 +54,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
- name: TENANT_ID
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
value: {{ .Values.env.tenant_id | quote }}
|
|
||||||
- name: STICKER_BASE_URL
|
|
||||||
value: {{ .Values.env.sticker_base_url | quote }}
|
|
||||||
- name: CHAT_HOST
|
- name: CHAT_HOST
|
||||||
value: {{ .Values.env.chat.host | quote }}
|
value: {{ .Values.env.chat.host | quote }}
|
||||||
- name: CHAT_PORT
|
- name: CHAT_PORT
|
||||||
@ -70,8 +67,6 @@ spec:
|
|||||||
value: {{ .Values.env.livekit.api_key | quote }}
|
value: {{ .Values.env.livekit.api_key | quote }}
|
||||||
- name: LIVEKIT_SECRET
|
- name: LIVEKIT_SECRET
|
||||||
value: {{ .Values.env.livekit.secret | quote }}
|
value: {{ .Values.env.livekit.secret | quote }}
|
||||||
- name: KEYCLOAK_URL
|
|
||||||
value: {{ .Values.env.keycloak.url | quote }}
|
|
||||||
- name: KEYSPACE
|
- name: KEYSPACE
|
||||||
value: {{ .Values.env.keyspace | quote }}
|
value: {{ .Values.env.keyspace | quote }}
|
||||||
- name: SEARCH_HOST
|
- name: SEARCH_HOST
|
||||||
@ -86,10 +81,6 @@ spec:
|
|||||||
value: {{ .Values.env.upload.host | quote }}
|
value: {{ .Values.env.upload.host | quote }}
|
||||||
- name: UPLOAD_PORT
|
- name: UPLOAD_PORT
|
||||||
value: {{ .Values.env.upload.port | quote }}
|
value: {{ .Values.env.upload.port | quote }}
|
||||||
- name: USER_HOST
|
|
||||||
value: {{ .Values.env.user.host | quote }}
|
|
||||||
- name: USER_PORT
|
|
||||||
value: {{ .Values.env.user.port | quote }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: cacerts-volume
|
- name: cacerts-volume
|
||||||
mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts
|
mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts
|
||||||
|
|||||||
@ -60,6 +60,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: LIVEKIT_API_KEY
|
- name: LIVEKIT_API_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@ -54,6 +54,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: USER_HOST
|
- name: USER_HOST
|
||||||
value: {{ .Values.env.user.host | quote }}
|
value: {{ .Values.env.user.host | quote }}
|
||||||
- name: USER_PORT
|
- name: USER_PORT
|
||||||
|
|||||||
@ -56,6 +56,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: KEYSPACE
|
- name: KEYSPACE
|
||||||
value: {{ .Values.env.cassandra.keyspace | quote }}
|
value: {{ .Values.env.cassandra.keyspace | quote }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@ -56,6 +56,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: KEYSPACE
|
- name: KEYSPACE
|
||||||
value: {{ .Values.env.cassandra.keyspace | quote }}
|
value: {{ .Values.env.cassandra.keyspace | quote }}
|
||||||
- name: UPLOAD_HOST
|
- name: UPLOAD_HOST
|
||||||
|
|||||||
@ -51,6 +51,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: KEYSPACE
|
- name: KEYSPACE
|
||||||
value: {{ .Values.env.cassandra.keyspace | quote }}
|
value: {{ .Values.env.cassandra.keyspace | quote }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@ -55,12 +55,7 @@ spec:
|
|||||||
{{- include "global.env.cassandra" . | nindent 12 }}
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
||||||
{{- include "global.env.kafka" . | nindent 12 }}
|
{{- include "global.env.kafka" . | nindent 12 }}
|
||||||
{{- include "global.env.redis" . | nindent 12 }}
|
{{- include "global.env.redis" . | nindent 12 }}
|
||||||
- name: TENANT_ID
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
value: {{ .Values.env.TENANT_ID | quote }}
|
|
||||||
- name: STICKER_BASE_URL
|
|
||||||
value: {{ .Values.env.STICKER_BASE_URL | quote }}
|
|
||||||
- name: KEYCLOAK_URL
|
|
||||||
value: {{ .Values.env.keycloak.url | quote }}
|
|
||||||
- name: KEYSPACE
|
- name: KEYSPACE
|
||||||
value: {{ .Values.env.keyspace | quote }}
|
value: {{ .Values.env.keyspace | quote }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@ -51,6 +51,7 @@ spec:
|
|||||||
- containerPort: 9090
|
- containerPort: 9090
|
||||||
env:
|
env:
|
||||||
{{- include "global.env.s3_upload" . | nindent 12 }}
|
{{- include "global.env.s3_upload" . | nindent 12 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: TENANT_ID
|
- name: TENANT_ID
|
||||||
value: {{ .Values.env.TENANT_ID | quote }}
|
value: {{ .Values.env.TENANT_ID | quote }}
|
||||||
- name: KEYCLOAK_URL
|
- name: KEYCLOAK_URL
|
||||||
|
|||||||
@ -33,4 +33,10 @@
|
|||||||
{{- if .Values.global.infrastructure.s3_upload.enabled -}}
|
{{- if .Values.global.infrastructure.s3_upload.enabled -}}
|
||||||
{{- tpl (.Values.global.envTemplates.s3_upload | toYaml) . | nindent 0 -}}
|
{{- tpl (.Values.global.envTemplates.s3_upload | toYaml) . | nindent 0 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "global.env.general" -}}
|
||||||
|
{{- if .Values.global.infrastructure.general.enabled -}}
|
||||||
|
{{- tpl (.Values.global.envTemplates.general | toYaml) . | nindent 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|||||||
@ -1,7 +1,27 @@
|
|||||||
global:
|
global:
|
||||||
infrastructure:
|
infrastructure:
|
||||||
tenant_id: 412eb2e1-9669-4b74-a56a-6198f3b5338a
|
general:
|
||||||
sticker_base_url: store-s001.co-work.ru:9000
|
enabled: true
|
||||||
|
tenant_id: "412eb2e1-9669-4b74-a56a-6198f3b5338a"
|
||||||
|
sticker_base_url: "store-s001.co-work.ru:9000"
|
||||||
|
recording_folder: "livekit"
|
||||||
|
deeplink_domain: "https://links.co-work.ru"
|
||||||
|
swagger_host: "localhost"
|
||||||
|
swagger_port: 8080
|
||||||
|
workspace_host: "workspace-app"
|
||||||
|
workspace_port: 9090
|
||||||
|
user_host: "user-app"
|
||||||
|
user_port: 9090
|
||||||
|
admin_host: "admin-app"
|
||||||
|
admin_port: 9090
|
||||||
|
device_host: "devices-app"
|
||||||
|
device_port: 9090
|
||||||
|
auth_host: "auth-app"
|
||||||
|
auth_port: 9090
|
||||||
|
license_host: "license-app"
|
||||||
|
license_port: 9090
|
||||||
|
keycloak_url: "https://iam.stage.co-work.local/realms/co-work"
|
||||||
|
|
||||||
kafka:
|
kafka:
|
||||||
enabled: true
|
enabled: true
|
||||||
server: "kafka:9092,kafka:9092,kafka:9092"
|
server: "kafka:9092,kafka:9092,kafka:9092"
|
||||||
@ -96,6 +116,46 @@ global:
|
|||||||
|
|
||||||
|
|
||||||
envTemplates:
|
envTemplates:
|
||||||
|
general: &general-env
|
||||||
|
- name: TENANT_ID
|
||||||
|
value: "{{ .Values.global.infrastructure.general.tenant_id }}"
|
||||||
|
- name: STICKER_BASE_URL
|
||||||
|
value: "{{ .Values.global.infrastructure.general.sticker_base_url }}"
|
||||||
|
- name: RECORDING_FOLDER
|
||||||
|
value: "{{ .Values.global.infrastructure.general.recording_folder }}"
|
||||||
|
- name: DEEPLINK_DOMAIN
|
||||||
|
value: "{{ .Values.global.infrastructure.general.deeplink_domain }}"
|
||||||
|
- name: SWAGGER_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.swagger_host }}"
|
||||||
|
- name: SWAGGER_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.swagger_port }}"
|
||||||
|
- name: WORKSPACE_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.workspace_host }}"
|
||||||
|
- name: WORKSPACE_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.workspace_port }}"
|
||||||
|
- name: USER_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.user_host }}"
|
||||||
|
- name: USER_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.user_port }}"
|
||||||
|
- name: ADMIN_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.admin_host }}"
|
||||||
|
- name: ADMIN_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.admin_port }}"
|
||||||
|
- name: DEVICE_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.device_host }}"
|
||||||
|
- name: DEVICE_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.device_port }}"
|
||||||
|
- name: AUTH_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.auth_host }}"
|
||||||
|
- name: AUTH_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.auth_port }}"
|
||||||
|
- name: LICENSE_HOST
|
||||||
|
value: "{{ .Values.global.infrastructure.general.license_host }}"
|
||||||
|
- name: LICENSE_PORT
|
||||||
|
value: "{{ .Values.global.infrastructure.general.license_port }}"
|
||||||
|
- name: KEYCLOAK_URL
|
||||||
|
value: "{{ .Values.global.infrastructure.general.keycloak_url }}"
|
||||||
|
|
||||||
kafka: &kafka-env
|
kafka: &kafka-env
|
||||||
- name: KAFKA
|
- name: KAFKA
|
||||||
value: "{{ .Values.global.infrastructure.kafka.server }}"
|
value: "{{ .Values.global.infrastructure.kafka.server }}"
|
||||||
@ -136,7 +196,7 @@ global:
|
|||||||
key: "{{ .Values.global.infrastructure.cassandra.passwordKey }}"
|
key: "{{ .Values.global.infrastructure.cassandra.passwordKey }}"
|
||||||
- name: CASSANDRA_PORT
|
- name: CASSANDRA_PORT
|
||||||
value: "{{ .Values.global.infrastructure.cassandra.port }}"
|
value: "{{ .Values.global.infrastructure.cassandra.port }}"
|
||||||
|
|
||||||
postgres: &postgres-env
|
postgres: &postgres-env
|
||||||
- name: POSTGRES_USERNAME
|
- name: POSTGRES_USERNAME
|
||||||
value: "{{ .Values.global.infrastructure.postgres.username }}"
|
value: "{{ .Values.global.infrastructure.postgres.username }}"
|
||||||
@ -171,4 +231,4 @@ global:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{{ .Values.global.infrastructure.s3_upload.secret }}"
|
name: "{{ .Values.global.infrastructure.s3_upload.secret }}"
|
||||||
key: "{{ .Values.global.infrastructure.s3_upload.secretKey }}"
|
key: "{{ .Values.global.infrastructure.s3_upload.secretKey }}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user