pegasystems / pega-helm-charts

Orchestrate a Pega Platform™ deployment by using Docker, Kubernetes, and Helm to take advantage of Pega Platform Cloud Choice flexibility.
https://community.pega.com/knowledgebase/articles/cloud-choice
Apache License 2.0
124 stars 198 forks source link

Pega service can't be configured as "LoadBalancer" #279

Closed anujgarg06 closed 4 months ago

anujgarg06 commented 3 years ago

Describe the bug

  1. Pega ServiceType can't be configured as LoadBalancer. It always create "NodePort" as service type.
  2. There is no way to configure "spec.loadBalancerSourceRanges" to limit access to few CIDR

To Reproduce Configure pega values.yaml file for AWS and use ServiceType "LoadBalancer"

Expected behavior Service Type in Kubernetes should use "LoadBalancer" but it is "NodePort"

Chart version pega/pega 1.5.0

Server (if applicable, please complete the following information):

Additional context As per this template file: https://github.com/pegasystems/pega-helm-charts/blob/master/charts/pega/templates/_pega-service.tpl spec: type: {{- if or (eq .root.Values.global.provider "gke") (eq .root.Values.global.provider "eks") -}} {{ indent 1 "NodePort" }} {{- else -}} {{ indent 1 (.node.service.serviceType | default "LoadBalancer") }} {{- end }} Specification of on which port the service is enabled ports:

sudeshjethoe commented 1 year ago

Similar issue here, we use kustomize to modify the helm chart after rendering to change the service type before deployment

misterdorito commented 1 year ago

@anujgarg06 @sudeshjethoe is this still an issue?

APegaDavis commented 1 year ago

@anujgarg06 @sudeshjethoe were you able to work around the issue?

kishorv10 commented 4 months ago

The issue is addressed in #610.