This commit is contained in:
2025-12-16 18:33:47 +03:00
6 changed files with 1 additions and 141 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
env.DEBUGGING_MODE = true
env.DEBUGGING_MODE = false
env.FORCE_BUILD = false
timeoutTime = 15
-8
View File
@@ -1,8 +0,0 @@
---
apiVersion: v2
type: application
name: svc-api
description: Microservice "svc-api" for deck
version: 0.0.1
appVersion: 0.0.1
-50
View File
@@ -1,50 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: '{{ .Chart.Name }}'
stand: '{{ .Values.stand }}'
name: '{{ .Chart.Name }}'
spec:
replicas: 1
selector:
matchLabels:
app: '{{ .Chart.Name }}'
stand: '{{ .Values.stand }}'
template:
metadata:
labels:
app: '{{ .Chart.Name }}'
stand: '{{ .Values.stand }}'
version: '{{ .Values.version }}'
contragentCode: 'WZ01112'
billingObject: 'None'
spec:
{{- if .Values.vault.enable }}
serviceAccountName: '{{ .Values.serviceAccountRole }}'
{{- end }}
containers:
- image: '{{ .Values.deployment.image.repository }}:{{.Values.deployment.image.tag }}'
imagePullPolicy: IfNotPresent
name: app
ports:
- containerPort: {{ .Values.deployment.containerPort }}
protocol: TCP
readinessProbe:
{{- toYaml (omit .Values.deployment.readinessProbe "httpGet") | nindent 12 }}
httpGet:
{{- toYaml .Values.deployment.readinessProbe.httpGet | nindent 14 }}
port: {{ .Values.deployment.containerPort }}
livenessProbe:
{{- toYaml (omit .Values.deployment.livenessProbe "tcpSocket") | nindent 12 }}
tcpSocket:
port: {{ .Values.deployment.containerPort }}
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
{{- if .Values.vault.enable }}
envFrom:
- secretRef:
name: '{{ .Chart.Name }}-secrets'
{{- end }}
-16
View File
@@ -1,16 +0,0 @@
---
apiVersion: v1
kind: Service
metadata:
name: '{{ .Chart.Name }}'
labels:
app: '{{ .Chart.Name }}'
stand: '{{ .Values.stand }}'
spec:
ports:
- port: {{ .Values.deployment.containerPort }}
targetPort: {{ .Values.deployment.containerPort }}
protocol: TCP
selector:
app: '{{ .Chart.Name }}'
stand: '{{ .Values.stand }}'
-23
View File
@@ -1,23 +0,0 @@
{{- if .Values.vault.enable }}
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: '{{ .Chart.Name }}'
labels:
app: '{{ .Chart.Name }}'
spec:
refreshInterval: '60s'
secretStoreRef:
name: '{{ .Values.vault.secretStore }}' # имя SecretStore
kind: SecretStore
target:
name: '{{ .Chart.Name }}-secrets' # имя будущего секрета kubernetes
data:
{{- range .Values.vault.secrets }}
- secretKey: {{ . }}
remoteRef:
key: "deck/kubernetes/{{ $.Values.stand }}/{{ $.Chart.Name }}"
property: {{ . }}
{{- end }}
{{- end }}
-43
View File
@@ -1,43 +0,0 @@
# Пример для DEV сборки
stand: dev
version: "NONE"
deployment:
image:
repository: drn.tst.nubes.ru/deck-auth-api-test
tag: $VERSION
containerPort: 8080
resources:
requests: # Начальные запросы
cpu: "500m"
memory: "256Mi"
limits:
cpu: "2" # Максимальные лимиты
memory: "1024Mi"
readinessProbe:
failureThreshold: 5
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 5
httpGet:
path: /api/v1/health
scheme: HTTP
livenessProbe:
failureThreshold: 5
initialDelaySeconds: 30
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 1
vault:
enable: true
secretStore: deck-test
secrets:
- VITE_BACKEND_HOST
- VITE_AUTH_HOST
- VITE_KEYCLOAK_CLIENT_ID
- VITE_KEYCLOAK_REALM
- VITE_KEYCLOAK_REDIRECT_URI
- VITE_KEYCLOAK_URL
- VITE_KEYCLOAK_CLIENT_SECRET