Skip to content
Snippets Groups Projects
Commit b9834d09 authored by Vladislav Shishko (EPAM)'s avatar Vladislav Shishko (EPAM) Committed by Oleksandr Kosse (EPAM)
Browse files

(GONRG-2476) publish gcp helms

parent b853f166
No related branches found
No related tags found
1 merge request!119(GONRG-2476) publish gcp helms
...@@ -16,6 +16,7 @@ variables: ...@@ -16,6 +16,7 @@ variables:
OSDU_GCP_APPLICATION_NAME: os-legal OSDU_GCP_APPLICATION_NAME: os-legal
OSDU_GCP_ENV_VARS: ENABLE_FULL_BUCKET_NAME=$ENABLE_FULL_BUCKET_NAME,PROJECT_ID=$OSDU_GCP_PROJECT,AUTHORIZE_API=$OSDU_GCP_AUTHORIZE_API,AUDIENCES=$GOOGLE_AUDIENCE,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE,PARTITION_API=$OSDU_GCP_PARTITION_API,REDIS_GROUP_HOST=$REDIS_GROUP_HOST,REDIS_STORAGE_HOST=$REDIS_STORAGE_HOST,LEGAL_HOSTNAME=$OSDU_GCP_LEGAL_HOSTNAME --vpc-connector=$OSDU_GCP_VPC_CONNECTOR OSDU_GCP_ENV_VARS: ENABLE_FULL_BUCKET_NAME=$ENABLE_FULL_BUCKET_NAME,PROJECT_ID=$OSDU_GCP_PROJECT,AUTHORIZE_API=$OSDU_GCP_AUTHORIZE_API,AUDIENCES=$GOOGLE_AUDIENCE,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE,PARTITION_API=$OSDU_GCP_PARTITION_API,REDIS_GROUP_HOST=$REDIS_GROUP_HOST,REDIS_STORAGE_HOST=$REDIS_STORAGE_HOST,LEGAL_HOSTNAME=$OSDU_GCP_LEGAL_HOSTNAME --vpc-connector=$OSDU_GCP_VPC_CONNECTOR
OSDU_GCP_TEST_SUBDIR: testing/$OSDU_GCP_SERVICE-test-$OSDU_GCP_VENDOR OSDU_GCP_TEST_SUBDIR: testing/$OSDU_GCP_SERVICE-test-$OSDU_GCP_VENDOR
OSDU_GCP_HELM_PACKAGE_CHARTS: "devops/gcp/deploy devops/gcp/configmap"
IBM_BUILD_SUBDIR: provider/legal-ibm IBM_BUILD_SUBDIR: provider/legal-ibm
IBM_INT_TEST_SUBDIR: testing/legal-test-ibm IBM_INT_TEST_SUBDIR: testing/legal-test-ibm
...@@ -54,6 +55,11 @@ include: ...@@ -54,6 +55,11 @@ include:
ref: "master" ref: "master"
file: 'cloud-providers/gcp.yml' file: 'cloud-providers/gcp.yml'
- project: 'osdu/platform/ci-cd-pipelines'
ref: "master"
file: 'publishing/pages.yml'
compile-and-unit-test: compile-and-unit-test:
variables: variables:
GOOGLE_CLOUD_PROJECT: opendes-evt GOOGLE_CLOUD_PROJECT: opendes-evt
apiVersion: v2
name: gcp-legal-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:
AUTHORIZE_API: "http://{{ .Values.conf.ent_name }}{{ .Values.data.authorize_api }}"
LOG_LEVEL: "{{ .Values.data.log_level }}"
ENABLE_FULL_BUCKET_NAME: "{{ .Values.data.enable_full_bucket_name }}"
PROJECT_ID: "{{ .Values.data.project_id }}"
AUDIENCES: "{{ .Values.data.audiences }}"
REDIS_GROUP_HOST: "{{ .Values.data.redis_group_host }}"
REDIS_STORAGE_HOST: "{{ .Values.data.redis_storage_host }}"
ACCEPT_HTTP: "{{ .Values.data.accept_http }}"
---
# Default values for legal-configmap.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
data:
authorize_api: ".default.svc.cluster.local/entitlements/v1/"
log_level: "INFO"
enable_full_bucket_name: "true"
project_id: ""
audiences: "519000754840-r12fqsd3e12aqep8c5f3j3t3emv8jeg1.apps.googleusercontent.com"
redis_group_host: ""
redis_storage_host: ""
accept_http: "true"
conf:
ent_name: ""
configmap: "legal-config"
app_name: "legal"
apiVersion: v2
name: gcp-legal-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 }}"
spec:
containers:
- name: "{{ .Values.conf.app_name }}"
image: "{{ .Values.legal.image }}"
env:
- name: "AUTHORIZE_API"
valueFrom:
configMapKeyRef:
key: AUTHORIZE_API
name: "{{ .Values.conf.configmap }}"
- name: "LOG_LEVEL"
valueFrom:
configMapKeyRef:
key: LOG_LEVEL
name: "{{ .Values.conf.configmap }}"
- name: "ENABLE_FULL_BUCKET_NAME"
valueFrom:
configMapKeyRef:
key: ENABLE_FULL_BUCKET_NAME
name: "{{ .Values.conf.configmap }}"
- name: "PROJECT_ID"
valueFrom:
configMapKeyRef:
key: PROJECT_ID
name: "{{ .Values.conf.configmap }}"
- name: "AUDIENCES"
valueFrom:
configMapKeyRef:
key: AUDIENCES
name: "{{ .Values.conf.configmap }}"
- name: "REDIS_GROUP_HOST"
valueFrom:
configMapKeyRef:
key: REDIS_GROUP_HOST
name: "{{ .Values.conf.configmap }}"
- name: "REDIS_STORAGE_HOST"
valueFrom:
configMapKeyRef:
key: REDIS_STORAGE_HOST
name: "{{ .Values.conf.configmap }}"
- name: "ACCEPT_HTTP"
valueFrom:
configMapKeyRef:
key: ACCEPT_HTTP
name: "{{ .Values.conf.configmap }}"
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
ports:
- containerPort: 8080
resources:
requests:
cpu: "{{ .Values.legal.requests_cpu }}"
memory: "{{ .Values.legal.requests_memory }}"
limits:
cpu: "{{ .Values.legal.limits_cpu }}"
memory: "{{ .Values.legal.limits_memory }}"
serviceAccountName: "{{ .Values.legal.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/legal"
route:
- destination:
port:
number: 80
host: {{ .Values.conf.app_name }}.{{ .Release.Namespace }}.svc.cluster.local
# Default values for legal-deploy.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
legal:
requests_cpu: "0.25"
requests_memory: "128M"
limits_cpu: "0.5"
limits_memory: "256M"
serviceAccountName: ""
image: ""
conf:
configmap: "legal-config"
app_name: "legal"
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