Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New changes #47

Merged
merged 51 commits into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0267da0
Added kubeContext
keyvaann Jul 6, 2020
0401d0e
commit first changes
nivemaham Jul 9, 2020
c1d4879
working configurations
nivemaham Jul 9, 2020
ca33e59
working ssl config (verify-ca)
nivemaham Jul 10, 2020
82821b8
integrate sendgrid with management portal mail service
nivemaham Jul 13, 2020
ee5f31c
adapt kafka-init to optionally init radar-base for confluent cloud ba…
nivemaham Jul 13, 2020
038b5ec
correct mount path and remove unnecessary config
nivemaham Jul 14, 2020
f5a935a
single point for confluent cloud config on base.yml
nivemaham Jul 15, 2020
414845f
override schema registry url if confluent cloud is enabled.
nivemaham Jul 15, 2020
4c71c00
migrate to camelcase syntax and to config format of radar-gateway:0.5.0
nivemaham Jul 15, 2020
0255f2d
finalize configmap adaptation for gateway and optionally deploy servi…
nivemaham Jul 15, 2020
879889c
add back rest-proxy to helmfile
nivemaham Jul 15, 2020
c7aaae9
commit initial set-up for schema-registry-proxy
nivemaham Jul 15, 2020
c25d295
add basic auth
nivemaham Jul 15, 2020
8d5d6ac
working redirect to external-host
nivemaham Jul 15, 2020
ffb47e4
move all annotations to single point
nivemaham Jul 16, 2020
4cbb20b
working auth configuration
nivemaham Jul 16, 2020
0fab95b
fixes configuration issues on gateway
nivemaham Jul 16, 2020
9f9bb9f
Merge pull request #2 from MorePlatform/fix-gateway
nivemaham Jul 16, 2020
c05b39e
Merge pull request #1 from MorePlatform/add-cc-schema-registry-proxy
nivemaham Jul 16, 2020
b1d8687
Add radar-s3-connector combined with s3proxy to stack
blootsvoets Jul 16, 2020
3cb2b67
Fix connection test
blootsvoets Jul 16, 2020
d272486
Misc changes for ManagementPortal database checks
blootsvoets Jul 22, 2020
851da7f
Use hierarchical s3-proxy settings
blootsvoets Jul 22, 2020
e823624
Renamed s3proxy to s3-proxy for clarity
blootsvoets Jul 22, 2020
636accc
Merge pull request #4 from MorePlatform/update-mp
blootsvoets Jul 22, 2020
6eb853c
Use updated S3 values
blootsvoets Jul 22, 2020
8abe5eb
Enable radar-output
blootsvoets Jul 23, 2020
c181d97
Disable master-slave replication in redis by default
blootsvoets Jul 23, 2020
8ccade4
Merge branch 'master' into add-s3-proxy
blootsvoets Jul 23, 2020
7dc5456
Fixed catalog-server
blootsvoets Jul 23, 2020
16dfded
Change confluent_cloud variable case
blootsvoets Jul 27, 2020
b218365
Merge pull request #3 from MorePlatform/add-s3-proxy
blootsvoets Aug 6, 2020
769928c
Working setup
blootsvoets Aug 6, 2020
e3a7f29
Enable ssl-redirect
keyvaann Aug 6, 2020
04bd2f3
add more-promasys-sync oauth config to management-portal
nivemaham Aug 7, 2020
b774460
Merge pull request #5 from MorePlatform/more-promasys-sync
nivemaham Aug 7, 2020
f9779bd
Update using relative paths
blootsvoets Aug 25, 2020
0fb0b6c
Merge remote-tracking branch 'radar/appconfig' into appconfig
blootsvoets Aug 25, 2020
66436fe
Fix app-config deployment
blootsvoets Aug 25, 2020
3a88e11
Fix app-config setup
blootsvoets Aug 27, 2020
565c271
Fixed appconfig resource limits
blootsvoets Aug 27, 2020
984e9c2
Merge pull request #6 from MorePlatform/appconfig
blootsvoets Aug 27, 2020
c4575e1
Set default secret for radarAppConfig
blootsvoets Aug 27, 2020
6151585
Minor fixes and improvments
keyvaann Aug 27, 2020
884e392
Merged new changes
keyvaann Aug 27, 2020
a13145d
Removed reference to chdr
keyvaann Sep 1, 2020
fbda1ed
More general configuration for management-portal
keyvaann Sep 1, 2020
71673c7
Replaced sendGrid references with smtp
keyvaann Sep 1, 2020
855e582
Added ability to add extra oauth_clients to management-portal
keyvaann Sep 1, 2020
a3568f3
Merge branch 'dev' into new-changes
keyvaann Sep 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ radar-is.yml
production.yaml
.idea/
RADAR-Kubernetes.iml
postgreskeystore.jks
environments.yaml
64 changes: 55 additions & 9 deletions base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ velero:
aws_secret_access_key=secretKey

# --------------------------------------------------------- 10-base.yaml ---------------------------------------------------------
confluent_cloud:
enabled: false
cc:
bootstrapServerurl: confluentBootstrapServers
apiKey: ccApikey
apiSecret: ccApiSecret
schemaRegistryApiKey: srApiKey
schemaRegistryApiSecret: srApiSecret
schemaRegistryUrl: confluentSchemaRegistryUrl

cp_zookeeper:
_install: true
Expand All @@ -105,6 +114,8 @@ cp_schema_registry:
catalog_server:
_install: true
replicaCount: 1
schema_registry: http://cp-schema-registry:8081


postgresql:
_install: true
Expand All @@ -114,6 +125,10 @@ postgresql:
management_portal:
_install: true
replicaCount: 1 # should be 1
postgres:
ssl:
enabled: false
keystorepassword: keystorepassword
managementportal:
catalogue_server_enable_auto_import: true
common_admin_password: password
Expand All @@ -132,12 +147,20 @@ management_portal:
radar_rest_sources_backend: secret
radarFitbitConnector: secret
radarAppconfig: secret
extra_oauth_clients: []
smtp:
enabled: false
host: smtp
port: 25
username: username
password: secret
from: noreply@example.com

app_config:
_install: true
replicaCount: 1 # should be 1
clientSecret: secret

smtp:
_install: true
replicaCount: 1
Expand Down Expand Up @@ -231,14 +254,20 @@ ceph:
radar_output:
_install: true
replicaCount: 1
num_threads: 2
target_type: s3
source_type: s3
hdfs_namenodes: "[hdfs-namenode-0, hdfs-namenode-1]"
sourceBucketName: radar-intermediate-storage
targetBucketName: radar-output-storage
redisUrl: redis://redis-master:6379
minimumFileAge: 900
source:
s3:
endpoint: http://minio:9000/
accessToken: AKIAIOSFODNN7EXAMPLE
secretKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
bucket: radar-intermediate-storage
target:
s3:
endpoint: http://minio:9000/
accessToken: AKIAIOSFODNN7EXAMPLE
secretKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
bucket: radar-output-storage
redis:
url: redis://redis-master:6379

# --------------------------------------------------------- 20-ingestion.yaml ---------------------------------------------------------

Expand Down Expand Up @@ -323,7 +352,24 @@ radar_s3_connector:
replicaCount: 1
# The bucket name where intermediate data for cold storage should be written to.
bucketName: radar_intermediate_storage
bucketAccessKey: AKIAIOSFODNN7EXAMPLE
bucketSecretKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
s3Endpoint: http://minio:9000/

s3_proxy:
_install: false
replicaCount: 1
s3:
identity: AKIAIOSFODNN7EXAMPLE
credential: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
target:
provider: azureblob

# --------------------------------------------------------- 30-confluent-cloud.yaml ---------------------------------------------------------

ccSchemaRegistryProxy:
_install: false
externalName: schema-registry-domain

# --------------------------------------------------------- 20-grafana.yaml ---------------------------------------------------------

Expand Down
10 changes: 6 additions & 4 deletions charts/app-config/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ data:
enhancerFactory: org.radarbase.appconfig.inject.ManagementPortalEnhancerFactory

authentication:
url: http://managementportal:8080/managementportal/
url: http://management-portal:8080/managementportal
clientId: {{ .Values.clientId }}
clientSecret: {{ .Values.clientSecret }}
resourceName: res_appconfig

jdbc:
driver: "org.postgresql.Driver"
url: "jdbc:postgresql://{{ .Values.postgres.host }}:5432/appconfig"
user: {{ .Values.postgres.user }}
password: {{ .Values.postgres.password }}
url: "{{ .Values.jdbc.url }}"
user: {{ .Values.jdbc.user }}
password: {{ .Values.jdbc.password }}
properties:
hibernate.dialect: {{ .Values.jdbc.dialect }}
15 changes: 12 additions & 3 deletions charts/app-config/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,38 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: JAVA_OPTS
value: "{{ .Values.javaOpts }}"
volumeMounts:
- name: config
mountPath: /etc/radar-app-config/
ports:
- name: http
containerPort: 8090
protocol: TCP
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 5
initialDelaySeconds: 20
periodSeconds: 60
successThreshold: 1
tcpSocket:
port: http
timeoutSeconds: 5
name: radar-integration
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
initialDelaySeconds: 20
periodSeconds: 60
successThreshold: 1
tcpSocket:
port: http
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: config
configMap:
name: {{ include "app-config.fullname" . }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 0 additions & 1 deletion charts/app-config/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ spec:
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
12 changes: 7 additions & 5 deletions charts/app-config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,24 @@ resources:
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 100m
memory: 512Mi
cpu: 2
requests:
cpu: 100m
memory: 128Mi
memory: 768Mi

nodeSelector: {}

tolerations: []

affinity: {}

javaOpts: "-Xmx550m"
clientId: radar_appconfig
clientSecret: secret

postgres:
host: postgresql-postgresql
jdbc:
driver: org.postgresql.Driver
url: jdbc:postgresql://postgresql-postgresql/appconfig
user: postgres
password: password
dialect: org.hibernate.dialect.PostgreSQLDialect
19 changes: 19 additions & 0 deletions charts/catalog-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.cc.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "catalog-server.fullname" . }}-java-config
labels:
app: {{ template "catalog-server.name" . }}
chart: {{ template "catalog-server.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
java-config.properties: |
# Kafka
bootstrap.servers={{ .Values.cc.bootstrapServerurl }}
security.protocol=SASL_SSL
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="{{ .Values.cc.apiKey }}" password="{{ .Values.cc.apiSecret }}";
ssl.endpoint.identification.algorithm=https
sasl.mechanism=PLAIN
{{- end -}}
26 changes: 25 additions & 1 deletion charts/catalog-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,29 @@ spec:
value: "3"
- name: RADAR_NUM_REPLICATION_FACTOR
value: "3"
{{- if .Values.cc.enabled }}
- name: CC_CONFIG_FILE_PATH
value: "/etc/config/java-config.properties"
- name: CC_API_KEY
valueFrom:
secretKeyRef:
name: {{ template "catalog-server.fullname" . }}
key: srApiKey
- name: CC_API_SECRET
valueFrom:
secretKeyRef:
name: {{ template "catalog-server.fullname" . }}
key: srApiSecret
command:
- "cc_topic_init.sh"
volumeMounts:
- name: cc-java-config
mountPath: /etc/config/
{{ end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
args:
command:
- radar-schemas-tools
- serve
- /schema/merged
Expand Down Expand Up @@ -112,6 +131,11 @@ spec:
{{- else }}
emptyDir: {}
{{ end }}
{{- if .Values.cc.enabled }}
- name: cc-java-config
configMap:
name: {{ include "catalog-server.fullname" . }}-java-config
{{- end -}}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/catalog-server/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}
{{- end }}
17 changes: 17 additions & 0 deletions charts/catalog-server/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.cc.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "catalog-server.fullname" . }}
labels:
app: {{ template "catalog-server.name" . }}
chart: {{ template "catalog-server.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
type: Opaque
data:
ccApiKey: {{ .Values.cc.apiKey | b64enc | quote }}
ccApiSecret: {{ .Values.cc.apiSecret | b64enc | quote }}
srApiKey: {{ .Values.cc.schemaRegistryApiKey| b64enc | quote }}
srApiSecret: {{ .Values.cc.schemaRegistryApiSecret | b64enc | quote }}
{{- end -}}
12 changes: 10 additions & 2 deletions charts/catalog-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 2

image:
repository: radarbase/kafka-init
tag: 0.5.10.1
tag: 0.5.11-rc0
pullPolicy: IfNotPresent

nameOverride: ""
Expand Down Expand Up @@ -43,7 +43,7 @@ resources:
memory: 128Mi

persistence:
enabled: true
enabled: false
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
Expand All @@ -67,3 +67,11 @@ affinity: {}
kafka_num_brokers: 3
zookeeper: cp-zookeeper-headless:2181
schema_registry: http://cp-schema-registry:8081

cc:
enabled: false
bootstrapServerurl: confluent-url
apiKey: ccApikey
apiSecret: ccApiSecret
schemaRegistryApiKey: srApiKey
schemaRegistryApiSecret: srApiSecret
22 changes: 22 additions & 0 deletions charts/cc-schema-registry-proxy/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
5 changes: 5 additions & 0 deletions charts/cc-schema-registry-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: cc-schema-registry-proxy
version: 0.1.0
Empty file.
32 changes: 32 additions & 0 deletions charts/cc-schema-registry-proxy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "cc-schema-registry-proxy.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "cc-schema-registry-proxy.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "cc-schema-registry-proxy.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
Loading