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

[K8s] Onboarding Server Helm chart rework to use single deployment for all verticles #787

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions K8s-deployment/Charts/onboarding-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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.0.1
version: 1.0.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.0.0-alpha"
appVersion: "1.0.1-alpha"
253 changes: 60 additions & 193 deletions K8s-deployment/Charts/onboarding-server/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ingress:
cert-manager.io/cluster-issuer: "letsencrypt-staging" # use letsencrypt-prod if proper letsencrypt certs are required
}

## apiServer resource requests and limits
## onboardingServer resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param apiServer.resources.limits The resources limits for the apiServer containers
## @param apiServer.resources.requests The requested resources for the apiServer containers
## @param onboardingServer.resources.limits The resources limits for the onboardingServer containers
## @param onboardingServer.resources.requests The requested resources for the onboardingServer containers
##
apiServer:
onboardingServer:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: t3a.medium
Expand All @@ -20,71 +20,3 @@ apiServer:
requests:
cpu: 400m
memory: 600Mi

## catalogue resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param catalogue.resources.limits The resources limits for the catalogue containers
## @param catalogue.resources.requests The requested resources for the catalogue containers
##
catalogue:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: t3a.medium
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi

## token resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param token.resources.limits The resources limits for the token containers
## @param token.resources.requests The requested resources for the token containers
##
token:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: t3a.medium
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi

## resourceServer resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param resourceServer.resources.limits The resources limits for the resourceServer containers
## @param resourceServer.resources.requests The requested resources for the resourceServer containers
##
resourceServer:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: t3a.medium
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi

## ingestion resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param ingestion.resources.limits The resources limits for the ingestion containers
## @param ingestion.resources.requests The requested resources for the ingestion containers
##
ingestion:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: t3a.medium
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ ingress:
annotations: {
cert-manager.io/cluster-issuer: "letsencrypt-staging" # use letsencrypt-prod if proper letsencrypt certs are required
}
## apiServer resource requests and limits
## onboardingServer resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param apiServer.resources.limits The resources limits for the apiServer containers
## @param apiServer.resources.requests The requested resources for the apiServer containers
## @param onboardingServer.resources.limits The resources limits for the onboardingServer containers
## @param onboardingServer.resources.requests The requested resources for the onboardingServer containers
##
apiServer:
onboardingServer:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: Standard_B2s
Expand All @@ -19,71 +19,3 @@ apiServer:
requests:
cpu: 400m
memory: 600Mi

## catalogue resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param catalogue.resources.limits The resources limits for the catalogue containers
## @param catalogue.resources.requests The requested resources for the catalogue containers
##
catalogue:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: Standard_B2s
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi

## token resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param token.resources.limits The resources limits for the token containers
## @param token.resources.requests The requested resources for the token containers
##
token:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: Standard_B2s
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi

## resourceServer resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param resourceServer.resources.limits The resources limits for the resourceServer containers
## @param resourceServer.resources.requests The requested resources for the resourceServer containers
##
resourceServer:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: Standard_B2s
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi

## ingestion resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## @param ingestion.resources.limits The resources limits for the ingestion containers
## @param ingestion.resources.requests The requested resources for the ingestion containers
##
ingestion:
enabled: true
nodeSelector:
node.kubernetes.io/instance-type: Standard_B2s
resources:
limits:
cpu: 600m
memory: 750Mi
requests:
cpu: 400m
memory: 600Mi
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Compile all warnings into a single message.
*/}}
{{- define "catalogue.validateValues" -}}
{{- $messages := list -}}
{{- $messages := append $messages (include "catalogue.apiServer.validateValues.foo" .) -}}
{{- $messages := append $messages (include "catalogue.apiServer.validateValues.bar" .) -}}
{{- $messages := append $messages (include "catalogue.onboardingServer.validateValues.foo" .) -}}
{{- $messages := append $messages (include "catalogue.onboardingServer.validateValues.bar" .) -}}
{{- $messages := without $messages "" -}}
{{- $message := join "\n" $messages -}}

Expand Down Expand Up @@ -90,4 +90,4 @@ but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}

This file was deleted.

Loading