Skip to content
Snippets Groups Projects
Commit adf49017 authored by Armen  Gasparyan (EPAM)'s avatar Armen Gasparyan (EPAM) Committed by Oleksandr Kosse (EPAM)
Browse files

Develop helm config-map and helm deployments for seismic-store service [GONRG-3145]

parent 4a1f6cf3
No related branches found
No related tags found
2 merge requests!379Removing File Metadata Service,!195ci: develop helm config-map and helm deployments for seismic-store service [GONRG-3145]
apiVersion: v2
name: gcp-seismic-store-configmap
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"
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: "{{ .Values.conf.app_name }}"
name: "{{ .Values.conf.configmap }}"
namespace: "{{ .Release.Namespace }}"
data:
LOG_LEVEL: "{{ .Values.data.log_level }}"
CLOUDPROVIDER: "{{ .Values.data.cloudprovider }}"
DES_SERVICE_HOST_PARTITION: "{{ .Values.data.des_service_host_partition }}"
ENTITLEMENT_BASE_URL_PATH: "{{ .Values.data.entitlement_base_url_path }}"
DATA_PARTITION_REST_HEADER_KEY: "{{ .Values.data.data_partition_rest_header_key }}"
DES_SERVICE_HOST_STORAGE: "{{ .Values.data.des_service_host_storage }}"
DES_SERVICE_HOST_COMPLIANCE: "{{ .Values.data.des_service_host_compliance }}"
SEISTORE_DES_TARGET_AUDIENCE: "{{ .Values.data.seistore_des_target_audience }}"
SERVICE_CLOUD_PROJECT: "{{ .Values.data.service_cloud_project }}"
APP_ENVIRONMENT_IDENTIFIER: "{{ .Values.data.app_environment_identifier }}"
IMP_SERVICE_ACCOUNT_SIGNER: "{{ .Values.data.imp_service_account_signer }}"
DES_SERVICE_HOST_ENTITLEMENT: "{{ .Values.data.des_service_host_entitlement }}"
SEISTORE_DES_APPKEY: "{{ .Values.data.seistore_des_appkey }}"
DES_REDIS_INSTANCE_ADDRESS: "{{ .Values.data.des_redis_instance_address }}"
DES_REDIS_INSTANCE_PORT: "{{ .Values.data.des_redis_instance_port }}"
LOCKSMAP_REDIS_INSTANCE_ADDRESS: "{{ .Values.data.locksmap_redis_instance_address }}"
LOCKSMAP_REDIS_INSTANCE_PORT: "{{ .Values.data.locksmap_redis_instance_port }}"
data:
log_level: "INFO"
cloudprovider: "google"
des_service_host_partition: "http://partition/api/partition/v1/"
entitlement_base_url_path: "/entitlements/v2"
data_partition_rest_header_key: ""
des_service_host_storage: ""
des_service_host_compliance: "https://community.osdu-gcp.go3-nrg.projects.epam.com/api"
seistore_des_target_audience: ""
service_cloud_project: ""
app_environment_identifier: "osdu"
imp_service_account_signer: ""
des_service_host_entitlement: "http://entitlements/api"
seistore_des_appkey: ""
des_redis_instance_address: ""
des_redis_instance_port: "6379"
locksmap_redis_instance_address: ""
locksmap_redis_instance_port: "6379"
conf:
configmap: "seismic-store-config"
app_name: "seismic-store"
apiVersion: v2
name: gcp-seismic-store-deploy
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"
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: "{{ .Values.conf.app_name }}"
name: "{{ .Values.conf.app_name }}"
namespace: "{{ .Release.Namespace }}"
spec:
selector:
matchLabels:
app: "{{ .Values.conf.app_name }}"
replicas: 1
template:
metadata:
labels:
app: "{{ .Values.conf.app_name }}"
annotations:
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- name: "{{ .Values.conf.app_name }}"
image: "{{ .Values.data.image }}"
envFrom:
- configMapRef:
name: "{{ .Values.conf.configmap }}"
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
ports:
- containerPort: 8080
resources:
requests:
cpu: "{{ .Values.data.requests_cpu }}"
memory: "{{ .Values.data.requests_memory }}"
limits:
cpu: "{{ .Values.data.limits_cpu }}"
memory: "{{ .Values.data.limits_memory }}"
serviceAccountName: "{{ .Values.data.serviceAccountName }}"
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.conf.app_name }}"
annotations:
cloud.google.com/neg: '{"ingress": true}'
namespace: "{{ .Release.Namespace }}"
labels:
app: "{{ .Values.conf.app_name }}"
service: "{{ .Values.conf.app_name }}"
spec:
ports:
- protocol: TCP
port: 80
targetPort: 8080
name: http
selector:
app: "{{ .Values.conf.app_name }}"
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: "{{ .Values.conf.app_name }}"
namespace: "{{ .Release.Namespace }}"
spec:
hosts:
- "*"
gateways:
- service-gateway
http:
- match:
- uri:
prefix: "/api/seismic-store"
route:
- destination:
port:
number: 80
host: "{{ .Values.conf.app_name }}.{{ .Release.Namespace }}.svc.cluster.local"
data:
requests_cpu: "0.25"
requests_memory: "256M"
limits_cpu: "1"
limits_memory: "1G"
serviceAccountName: ""
image: ""
conf:
configmap: "seismic-store-config"
app_name: "seismic-store"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment