Skip to content

Commit

Permalink
Merge pull request #3 from paxconG14/main
Browse files Browse the repository at this point in the history
Small corrections...
  • Loading branch information
MarcFriedhoff authored Nov 21, 2023
2 parents 218bae6 + 82dc8be commit 0c4acf1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion microservicesruntime/helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ Create the name of the service account to use
Create the name of the license config map
*/}}
{{- define "microservicesruntime.licenseConfigMapName" -}}
{{- default ( printf "%s-%s" (include "common.names.fullname" .) "-license") .Values.licenseConfigMap }}
{{- default ( printf "%s-%s" (include "common.names.fullname" .) "-license") .Values.microservicesruntime.licenseConfigMap }}
{{- end }}
2 changes: 1 addition & 1 deletion microservicesruntime/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ spec:
{{- toYaml .Values.resources.msrContainer | nindent 12 }}
volumeMounts:
- name: microservicesruntime-license
mountPath: {{ .Values.microservicesruntime.installDir }}/config/licenseKey.xml
mountPath: {{ .Values.microservicesruntime.installDir }}/licenseKey.xml
subPath: licenseKey.xml
readOnly: true
- name: application-properties
Expand Down
10 changes: 7 additions & 3 deletions microservicesruntime/helm/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# */

{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "common.names.fullname" . }}
Expand All @@ -39,12 +39,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
10 changes: 7 additions & 3 deletions mywebmethodsserver/helm/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# *
# */
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "common.names.fullname" . }}
Expand All @@ -38,12 +38,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit 0c4acf1

Please sign in to comment.