Migrate to Helm
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
#
|
||||
# Данный конфигурационный файл не является конечным исполнением
|
||||
# Параметры подставлены исключительно для тестов и могут быть измененены в соответствии с Pipeline
|
||||
#
|
||||
|
||||
stand: test
|
||||
|
||||
mainContainer:
|
||||
###### Репозиторий
|
||||
image:
|
||||
repository: {{ registryUrl }}/{{ registryContainerName }}
|
||||
tag: {{ version }}
|
||||
containerPort: {{ appPort }}
|
||||
###### Ресурсы
|
||||
resources:
|
||||
requests:
|
||||
cpu: "500m"
|
||||
memory: "1024Mi"
|
||||
limits:
|
||||
cpu: "1000m"
|
||||
memory: "1024Mi"
|
||||
###### Пробы контейнера
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ appPort }}
|
||||
scheme: HTTP
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: {{ appPort }}
|
||||
###### Подключение Volumes
|
||||
volumeMounts:
|
||||
- name: app-logs
|
||||
mountPath: /usr/lib/serverHome/logs/
|
||||
# Общий блок volumes для всех контейнеров
|
||||
volumes:
|
||||
- name: app-logs
|
||||
|
||||
sidecars:
|
||||
###### Репозиторий
|
||||
logger:
|
||||
enabled: true
|
||||
image:
|
||||
repository: drn.tst.nubes.ru/fluent-bit
|
||||
tag: 2.2.1
|
||||
###### Ресурсы
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
###### Подключение Volumes
|
||||
volumeMounts:
|
||||
- name: app-logs
|
||||
mountPath: /usr/lib/serverHome/logs/
|
||||
|
||||
|
||||
# Для Vault есть условие
|
||||
# Предварительно в Namespace должен быть создан SecretStore
|
||||
#
|
||||
# Читать: https://confluence.ad.nubes.ru/pages/viewpage.action?pageId=58626585
|
||||
# (Вариант 2. Используя external-operator)
|
||||
|
||||
vault:
|
||||
secretStore: "{{ namespace }}"
|
||||
enabled: true
|
||||
serviceAccountName: "{{ namespace }}-sa"
|
||||
target:
|
||||
name: "svc-api-envs"
|
||||
data:
|
||||
- secretKey: LUCEE_EXTENSIONS
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: LUCEE_EXTENSIONS
|
||||
|
||||
- secretKey: ORCHESTRATOR_AUTH
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: ORCHESTRATOR_AUTH
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_database
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_database
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_dbdriver
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_dbdriver
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_host
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_host
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_name
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_name
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_password
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_password
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_port
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_port
|
||||
|
||||
- secretKey: cfconfig_datasources_cmdb_username
|
||||
remoteRef:
|
||||
key: "deck/kubernetes/{{ stand}}/{{ appName }}"
|
||||
property: cfconfig_datasources_cmdb_username
|
||||
Reference in New Issue
Block a user