Commit 706a13ff authored by Igor Zimovets (EPAM)'s avatar Igor Zimovets (EPAM)
Browse files

partition bootstrap job to deployment

parent 83cf1ac9
Pipeline #104245 passed with stages
in 41 minutes and 15 seconds
......@@ -6,7 +6,7 @@ metadata:
name: "{{ .Values.conf.bootstrap_configmap }}"
namespace: "{{ .Values.conf.bootstrap_namespace }}"
data:
PARTITION_NAME: "{{ .Values.conf.app_name }}.default.svc.cluster.local"
PARTITION_NAME: "{{ .Values.conf.app_name }}"
PROJECT_ID: "{{ .Values.data.project_id }}"
DATA_PARTITION_ID: "{{ .Values.data.data_partition_id }}"
{{- if .Values.conf.on_prem_enabled }}
......
......@@ -7,10 +7,10 @@ data:
partition_property_kind: ""
partition_namespace: ""
spring_profiles_active: "gcp"
# bootstrap variables
# bootstrap common
data_partition_id: ""
datafier_sa: "datafier"
# bootstrap variables on_prem
# bootstrap variables onprem
domain: ""
environment: ""
client_id: ""
......@@ -18,6 +18,7 @@ data:
conf:
configmap: "partition-config"
app_name: "partition"
# bootstrap common
bootstrap_name: "partition-bootstrap"
bootstrap_configmap: "partition-bootstrap-configmap"
bootstrap_namespace: "default"
......
......@@ -23,5 +23,12 @@ spec:
envFrom:
- configMapRef:
name: "{{ .Values.conf.bootstrap_configmap }}"
resources:
requests:
cpu: "{{ .Values.data.bootstrap_requests_cpu }}"
memory: "{{ .Values.data.bootstrap_requests_memory }}"
limits:
cpu: "{{ .Values.data.bootstrap_limits_cpu }}"
memory: "{{ .Values.data.bootstrap_limits_memory }}"
restartPolicy: Always
serviceAccountName: "{{ .Values.data.bootstrapServiceAccountName }}"
......@@ -10,6 +10,11 @@ data:
serviceAccountName: ""
imagePullPolicy: "IfNotPresent"
image: ""
# bootstrap common
bootstrap_requests_cpu: "0.03"
bootstrap_requests_memory: "120M"
bootstrap_limits_cpu: "0.1"
bootstrap_limits_memory: "200M"
bootstrap_image: ""
bootstrapServiceAccountName: "partition-bootstrap"
......@@ -17,6 +22,7 @@ conf:
configmap: "partition-config"
secret: "partition-postgres-secret"
app_name: "partition"
# bootstrap common
bootstrap_name: "partition-bootstrap"
bootstrap_configmap: "partition-bootstrap-configmap"
bootstrap_namespace: "default"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment