Skip to content
Snippets Groups Projects
Commit 72101aed authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM)
Browse files

Merge branch 'GONRG-6211-merging-helms-for-indexer' into 'master'

Modify files for merging all helms indexer service

See merge request !463
parents 04f4d0e7 bcbf0a29
No related branches found
No related tags found
1 merge request!463Modify files for merging all helms indexer service
Pipeline #160323 failed
...@@ -754,7 +754,7 @@ The following software have components provided under the terms of this license: ...@@ -754,7 +754,7 @@ The following software have components provided under the terms of this license:
- Hamcrest Core (from http://hamcrest.org/, http://hamcrest.org/JavaHamcrest/, https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core) - Hamcrest Core (from http://hamcrest.org/, http://hamcrest.org/JavaHamcrest/, https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core)
- JSch (from http://www.jcraft.com/jsch/) - JSch (from http://www.jcraft.com/jsch/)
- Jackson module: Afterburner (from http://wiki.fasterxml.com/JacksonHome, https://github.com/FasterXML/jackson-modules-base) - Jackson module: Afterburner (from http://wiki.fasterxml.com/JacksonHome, https://github.com/FasterXML/jackson-modules-base)
- Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca)
- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api) - Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api)
- Jakarta XML Binding API (from https://repo1.maven.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api, https://repo1.maven.org/maven2/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.3_spec) - Jakarta XML Binding API (from https://repo1.maven.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api, https://repo1.maven.org/maven2/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.3_spec)
...@@ -861,7 +861,7 @@ CDDL-1.0 ...@@ -861,7 +861,7 @@ CDDL-1.0
The following software have components provided under the terms of this license: The following software have components provided under the terms of this license:
- Apache Log4j Core (from https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core) - Apache Log4j Core (from https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core)
- Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- Java Architecture for XML Binding (from http://jaxb.java.net/, https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api) - Java Architecture for XML Binding (from http://jaxb.java.net/, https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api)
- JavaBeans Activation Framework (from https://repo1.maven.org/maven2/com/sun/activation/javax.activation) - JavaBeans Activation Framework (from https://repo1.maven.org/maven2/com/sun/activation/javax.activation)
- JavaBeans(TM) Activation Framework (from http://java.sun.com/javase/technologies/desktop/javabeans/jaf/index.jsp) - JavaBeans(TM) Activation Framework (from http://java.sun.com/javase/technologies/desktop/javabeans/jaf/index.jsp)
...@@ -903,7 +903,7 @@ The following software have components provided under the terms of this license: ...@@ -903,7 +903,7 @@ The following software have components provided under the terms of this license:
- JUnit Jupiter Params (from http://junit.org/junit5/, https://junit.org/junit5/) - JUnit Jupiter Params (from http://junit.org/junit5/, https://junit.org/junit5/)
- JUnit Platform Commons (from http://junit.org/junit5/, https://junit.org/junit5/) - JUnit Platform Commons (from http://junit.org/junit5/, https://junit.org/junit5/)
- JUnit Platform Engine API (from http://junit.org/junit5/, https://junit.org/junit5/) - JUnit Platform Engine API (from http://junit.org/junit5/, https://junit.org/junit5/)
- Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca)
- Jakarta Bean Validation API (from https://beanvalidation.org) - Jakarta Bean Validation API (from https://beanvalidation.org)
- Jakarta XML Binding API (from https://repo1.maven.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api, https://repo1.maven.org/maven2/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.3_spec) - Jakarta XML Binding API (from https://repo1.maven.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api, https://repo1.maven.org/maven2/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.3_spec)
...@@ -938,7 +938,7 @@ The following software have components provided under the terms of this license: ...@@ -938,7 +938,7 @@ The following software have components provided under the terms of this license:
- JUnit Jupiter Params (from http://junit.org/junit5/, https://junit.org/junit5/) - JUnit Jupiter Params (from http://junit.org/junit5/, https://junit.org/junit5/)
- JUnit Platform Commons (from http://junit.org/junit5/, https://junit.org/junit5/) - JUnit Platform Commons (from http://junit.org/junit5/, https://junit.org/junit5/)
- JUnit Platform Engine API (from http://junit.org/junit5/, https://junit.org/junit5/) - JUnit Platform Engine API (from http://junit.org/junit5/, https://junit.org/junit5/)
- Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca)
- Jakarta Bean Validation API (from https://beanvalidation.org) - Jakarta Bean Validation API (from https://beanvalidation.org)
- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api) - Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api)
...@@ -1010,7 +1010,7 @@ The following software have components provided under the terms of this license: ...@@ -1010,7 +1010,7 @@ The following software have components provided under the terms of this license:
- Class Model for Hk2 (from https://repo1.maven.org/maven2/org/glassfish/hk2/class-model) - Class Model for Hk2 (from https://repo1.maven.org/maven2/org/glassfish/hk2/class-model)
- HK2 Implementation Utilities (from https://repo1.maven.org/maven2/org/glassfish/hk2/hk2-utils) - HK2 Implementation Utilities (from https://repo1.maven.org/maven2/org/glassfish/hk2/hk2-utils)
- HK2 core module (from https://repo1.maven.org/maven2/org/glassfish/hk2/hk2-core) - HK2 core module (from https://repo1.maven.org/maven2/org/glassfish/hk2/hk2-core)
- Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca)
- Jakarta Bean Validation API (from https://beanvalidation.org) - Jakarta Bean Validation API (from https://beanvalidation.org)
- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api) - Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api)
...@@ -1324,7 +1324,7 @@ unknown ...@@ -1324,7 +1324,7 @@ unknown
======================================================================== ========================================================================
The following software have components provided under the terms of this license: The following software have components provided under the terms of this license:
- Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api)
- System Rules (from http://stefanbirkner.github.com/system-rules/, http://stefanbirkner.github.io/system-rules/) - System Rules (from http://stefanbirkner.github.com/system-rules/, http://stefanbirkner.github.io/system-rules/)
- xml-apis (from https://repo1.maven.org/maven2/xml-apis/xml-apis) - xml-apis (from https://repo1.maven.org/maven2/xml-apis/xml-apis)
......
apiVersion: v2
name: gc-indexer-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.19.0"
<!--- Configmap -->
# Configmap helm chart
## Introduction
This chart bootstraps a configmap deployment on a [Kubernetes](https://kubernetes.io) cluster using [Helm](https://helm.sh) package manager.
## Prerequisites
The code was tested on **Kubernetes cluster** (v1.21.11) with **Istio** (1.12.6)
> It is possible to use other versions, but it hasn't been tested
### Operation system
The code works in Debian-based Linux (Debian 10 and Ubuntu 20.04) and Windows WSL 2. Also, it works but is not guaranteed in Google Cloud Shell. All other operating systems, including macOS, are not verified and supported.
### Packages
Packages are only needed for installation from a local computer.
* **HELM** (version: v3.7.1 or higher) [helm](https://helm.sh/docs/intro/install/)
* **Kubectl** (version: v1.21.0 or higher) [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
## Installation
First you need to set variables in **values.yaml** file using any code editor. Some of the values are prefilled, but you need to specify some values as well. You can find more information about them below.
### Common variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**entitlementsHost** | entitlements host | string | "http://entitlements" | yes
**indexerQueueHost** | indexer-queue host | string | "http://indexer-queue" | yes
**logLevel** | logging level | string | INFO | yes
**partitionHost** | partition host | string | "http://partition" | yes
**redisGroupHost** | redis group host | string | redis-group-master | yes
**redisSearchHost** | redis search host | string | redis-search-master | yes
**schemaHost** | schema host | string | "http://schema" | yes
**securityHttpsCertificateTrust** | whether https is enabled | boolean | true | yes
**springProfilesActive** | active spring profile | string | gcp | yes
**storageHost** | storage host | string | "http://storage" | yes
### Config variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**configmap** | configmap to be used | string | indexer-config | yes
**appName** | name of the app | string | indexer | yes
**onPremEnabled** | whether on-prem is enabled | boolean | false | yes
### Install the helm chart
Run this command from within this directory:
```console
helm install gc-indexer-configmap .
```
## Uninstalling the Chart
To uninstall the helm deployment:
```console
helm uninstall gc-indexer-configmap
```
[Move-to-Top](#configmap-helm-chart)
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: "{{ .Values.conf.appName }}"
name: "{{ .Values.conf.configmap }}"
namespace: "{{ .Release.Namespace }}"
data:
ENTITLEMENTS_HOST: "{{ .Values.data.entitlementsHost }}"
INDEXER_QUEUE_BASE_HOST: "{{ .Values.data.indexerQueueHost }}"
LOG_LEVEL: "{{ .Values.data.logLevel }}"
PARTITION_HOST: "{{ .Values.data.partitionHost }}"
REDIS_GROUP_HOST: "{{ .Values.data.redisGroupHost }}"
REDIS_SEARCH_HOST: "{{ .Values.data.redisSearchHost }}"
SCHEMA_BASE_HOST: "{{ .Values.data.schemaHost }}"
SECURITY_HTTPS_CERTIFICATE_TRUST: "{{ .Values.data.securityHttpsCertificateTrust }}"
SPRING_PROFILES_ACTIVE: "{{ .Values.data.springProfilesActive }}"
STORAGE_HOST: "{{ .Values.data.storageHost }}"
# Default values for indexer-configmap.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
data:
# common
entitlementsHost: "http://entitlements"
indexerQueueHost: "http://indexer-queue"
logLevel: "ERROR"
partitionHost: "http://partition"
redisGroupHost: "redis-group-master"
redisSearchHost: "redis-search-master"
schemaHost: "http://schema"
securityHttpsCertificateTrust: "true"
springProfilesActive: "gcp"
storageHost: "http://storage"
conf:
appName: "indexer"
configmap: "indexer-config"
onPremEnabled: false
...@@ -27,29 +27,54 @@ Packages are only needed for installation from a local computer. ...@@ -27,29 +27,54 @@ Packages are only needed for installation from a local computer.
Before installing deploy Helm chart you need to install [configmap Helm chart](../configmap). Before installing deploy Helm chart you need to install [configmap Helm chart](../configmap).
First you need to set variables in **values.yaml** file using any code editor. Some of the values are prefilled, but you need to specify some values as well. You can find more information about them below. First you need to set variables in **values.yaml** file using any code editor. Some of the values are prefilled, but you need to specify some values as well. You can find more information about them below.
### Common variables ### Configmap variables
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**requestsCpu** | amount of requested CPU | string | 0.1 | yes **data.entitlementsHost** | entitlements host | string | "http://entitlements" | yes
**requestsMemory** | amount of requested memory| string | 640M | yes **data.indexerQueueHost** | indexer-queue host | string | "http://indexer-queue" | yes
**limitsCpu** | CPU limit | string | 1 | yes **data.logLevel** | logging level | string | INFO | yes
**limitsMemory** | memory limit | string | 1G | yes **data.partitionHost** | partition host | string | "http://partition" | yes
**image** | service image | string | - | yes **data.redisGroupHost** | redis group host | string | redis-group-master | yes
**imagePullPolicy** | when to pull image | string | IfNotPresent | yes **data.redisSearchHost** | redis search host | string | redis-search-master | yes
**serviceAccountName** | name of your service account | string | indexer | yes **data.schemaHost** | schema host | string | "http://schema" | yes
**data.securityHttpsCertificateTrust** | whether https is enabled | boolean | true | yes
**data.springProfilesActive** | active spring profile | string | gcp | yes
**data.storageHost** | storage host | string | "http://storage" | yes
### Deploy variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.requestsCpu** | amount of requested CPU | string | 0.1 | yes
**data.requestsMemory** | amount of requested memory| string | 640M | yes
**data.limitsCpu** | CPU limit | string | 1 | yes
**data.limitsMemory** | memory limit | string | 1G | yes
**data.image** | service image | string | - | yes
**data.imagePullPolicy** | when to pull image | string | IfNotPresent | yes
**data.serviceAccountName** | name of your service account | string | indexer | yes
### Config variables ### Config variables
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**appName** | name of the app | string | `indexer` | yes **conf.appName** | name of the app | string | `indexer` | yes
**configmap** | configmap to be used | string | `indexer-config` | yes **conf.configmap** | configmap to be used | string | `indexer-config` | yes
**elasticSecretName** | secret for elastic | string | `indexer-elastic-secret` | yes **conf.elasticSecretName** | secret for elastic | string | `indexer-elastic-secret` | yes
**keycloakSecretName** | secret for keycloak | string | `indexer-keycloak-secret` | yes **conf.keycloakSecretName** | secret for keycloak | string | `indexer-keycloak-secret` | yes
**rabbitmqSecretName** | secret for rabbitmq | string | `rabbitmq-secret` | yes **conf.rabbitmqSecretName** | secret for rabbitmq | string | `rabbitmq-secret` | yes
**onPremEnabled** | whether on-prem is enabled | boolean | false | yes **conf.onPremEnabled** | whether on-prem is enabled | boolean | false | yes
**domain** | your domain | string | - | yes **conf.domain** | your domain | string | - | yes
### ISTIO variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**istio.proxyCPU** | CPU request for Envoy sidecars | string | 50m | yes
**istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | 500m | yes
**istio.proxyMemory** | memory request for Envoy sidecars | string | 64Mi | yes
**istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | 512Mi | yes
### Install the helm chart ### Install the helm chart
......
...@@ -2,18 +2,18 @@ apiVersion: apps/v1 ...@@ -2,18 +2,18 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
labels: labels:
app: "{{ .Values.conf.appName }}" app: {{ .Values.conf.appName | quote }}
name: "{{ .Values.conf.appName }}" name: {{ .Values.conf.appName | quote }}
namespace: "{{ .Release.Namespace }}" namespace: {{ .Release.Namespace | quote }}
spec: spec:
selector: selector:
matchLabels: matchLabels:
app: "{{ .Values.conf.appName }}" app: {{ .Values.conf.appName | quote }}
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
app: "{{ .Values.conf.appName }}" app: {{ .Values.conf.appName | quote }}
annotations: annotations:
rollme: {{ randAlphaNum 5 | quote }} rollme: {{ randAlphaNum 5 | quote }}
sidecar.istio.io/proxyCPU: {{ .Values.istio.proxyCPU | quote }} sidecar.istio.io/proxyCPU: {{ .Values.istio.proxyCPU | quote }}
...@@ -22,19 +22,19 @@ spec: ...@@ -22,19 +22,19 @@ spec:
sidecar.istio.io/proxyMemoryLimit: {{ .Values.istio.proxyMemoryLimit | quote }} sidecar.istio.io/proxyMemoryLimit: {{ .Values.istio.proxyMemoryLimit | quote }}
spec: spec:
containers: containers:
- name: "{{ .Values.conf.appName }}" - name: {{ .Values.conf.appName | quote }}
image: "{{ .Values.data.image }}" image: {{ .Values.data.image | quote }}
imagePullPolicy: "{{ .Values.data.imagePullPolicy }}" imagePullPolicy: {{ .Values.data.imagePullPolicy | quote }}
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "{{ .Values.conf.configmap }}" name: {{ .Values.conf.configmap | quote }}
- secretRef: - secretRef:
name: "{{ .Values.conf.elasticSecretName }}" name: {{ .Values.conf.elasticSecretName | quote }}
{{- if .Values.conf.onPremEnabled }} {{- if .Values.conf.onPremEnabled }}
- secretRef: - secretRef:
name: "{{ .Values.conf.keycloakSecretName }}" name: {{ .Values.conf.keycloakSecretName | quote }}
- secretRef: - secretRef:
name: "{{ .Values.conf.rabbitmqSecretName }}" name: {{ .Values.conf.rabbitmqSecretName | quote }}
{{- end }} {{- end }}
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
...@@ -43,9 +43,9 @@ spec: ...@@ -43,9 +43,9 @@ spec:
- containerPort: 8080 - containerPort: 8080
resources: resources:
requests: requests:
cpu: "{{ .Values.data.requestsCpu }}" cpu: {{ .Values.data.requestsCpu | quote }}
memory: "{{ .Values.data.requestsMemory }}" memory: {{ .Values.data.requestsMemory | quote }}
limits: limits:
cpu: "{{ .Values.data.limitsCpu }}" cpu: {{ .Values.data.limitsCpu | quote }}
memory: "{{ .Values.data.limitsMemory }}" memory: {{ .Values.data.limitsMemory | quote }}
serviceAccountName: "{{ .Values.data.serviceAccountName }}" serviceAccountName: {{ .Values.data.serviceAccountName | quote }}
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: "{{ .Values.data.serviceAccountName }}" name: {{ .Values.data.serviceAccountName | quote }}
namespace: "{{ .Release.Namespace }}" namespace: {{ .Release.Namespace | quote }}
{{- end }} {{- end }}
...@@ -5,8 +5,8 @@ metadata: ...@@ -5,8 +5,8 @@ metadata:
annotations: annotations:
cloud.google.com/neg: '{"ingress": true}' cloud.google.com/neg: '{"ingress": true}'
{{- end }} {{- end }}
name: "{{ .Values.conf.appName }}" name: {{ .Values.conf.appName | quote }}
namespace: "{{ .Release.Namespace }}" namespace: {{ .Release.Namespace | quote }}
spec: spec:
ports: ports:
- protocol: TCP - protocol: TCP
...@@ -14,4 +14,4 @@ spec: ...@@ -14,4 +14,4 @@ spec:
targetPort: 8080 targetPort: 8080
name: http name: http
selector: selector:
app: "{{ .Values.conf.appName }}" app: {{ .Values.conf.appName | quote }}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: {{ .Values.conf.appName | quote }}
name: {{ .Values.conf.configmap | quote }}
namespace: {{ .Release.Namespace | quote }}
data:
ENTITLEMENTS_HOST: {{ .Values.data.entitlementsHost | quote }}
INDEXER_QUEUE_BASE_HOST: {{ .Values.data.indexerQueueHost | quote }}
LOG_LEVEL: {{ .Values.data.logLevel | quote }}
PARTITION_HOST: {{ .Values.data.partitionHost | quote }}
REDIS_GROUP_HOST: {{ .Values.data.redisGroupHost | quote }}
REDIS_SEARCH_HOST: {{ .Values.data.redisSearchHost | quote }}
SCHEMA_BASE_HOST: {{ .Values.data.schemaHost | quote }}
SECURITY_HTTPS_CERTIFICATE_TRUST: {{ .Values.data.securityHttpsCertificateTrust | quote }}
SPRING_PROFILES_ACTIVE: {{ .Values.data.springProfilesActive | quote }}
STORAGE_HOST: {{ .Values.data.storageHost | quote }}
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: VirtualService kind: VirtualService
metadata: metadata:
name: "{{ .Values.conf.appName }}" name: {{ .Values.conf.appName | quote }}
namespace: "{{ .Release.Namespace }}" namespace: {{ .Release.Namespace | quote }}
spec: spec:
hosts: hosts:
{{- if and .Values.conf.domain .Values.conf.onPremEnabled }} {{- if and .Values.conf.domain .Values.conf.onPremEnabled }}
...@@ -22,4 +22,4 @@ spec: ...@@ -22,4 +22,4 @@ spec:
- destination: - destination:
port: port:
number: 80 number: 80
host: "{{ .Values.conf.appName }}.{{ .Release.Namespace }}.svc.cluster.local" host: {{ printf "%s.%s.svc.cluster.local" .Values.conf.appName .Release.Namespace | quote }}
...@@ -3,6 +3,18 @@ ...@@ -3,6 +3,18 @@
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
data: data:
# Configmap
entitlementsHost: "http://entitlements"
indexerQueueHost: "http://indexer-queue"
logLevel: "ERROR"
partitionHost: "http://partition"
redisGroupHost: "redis-group-master"
redisSearchHost: "redis-search-master"
schemaHost: "http://schema"
securityHttpsCertificateTrust: "true"
springProfilesActive: "gcp"
storageHost: "http://storage"
# Deployment
requestsCpu: "0.1" requestsCpu: "0.1"
requestsMemory: "640M" requestsMemory: "640M"
limitsCpu: "1" limitsCpu: "1"
......
variables: variables:
GC_SERVICE: indexer GC_SERVICE: indexer
GC_VENDOR: gc GC_VENDOR: gc
# FIXME remove when all services are migrated to a single helm
GC_ENABLE_HELM_CONFIG: "false"
gc-anthos-test: gc-anthos-test:
variables: variables:
......
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