Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cspp_geo/geosphere/geosphere-mapserver
1 result
Show changes
Commits on Source (2)
...@@ -4,10 +4,10 @@ stages: ...@@ -4,10 +4,10 @@ stages:
- build chart - build chart
- deploy - deploy
variables: variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: "/certs"
DOCKER_HOST: "tcp://docker:2375" DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
# DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_VERIFY: 1
# DOCKER_HOST: "tcp://localhost:2376" DOCKER_HOST: "tcp://docker:2376"
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
include: include:
......
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "geosphere-mapserver.fullname" . }}
labels:
{{- include "geosphere-mapserver.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "geosphere-mapserver.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
...@@ -81,6 +81,13 @@ resources: {} ...@@ -81,6 +81,13 @@ resources: {}
# cpu: 100m # cpu: 100m
# memory: 128Mi # memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
# handler should be added by the enabled module # handler should be added by the enabled module
#AddHandler fcgid-script fcgi #AddHandler fcgid-script fcgi
<IfModule mod_fcgid.c> <IfModule mod_fcgid.c>
FcgidMaxProcessesPerClass 30 FcgidMaxProcessesPerClass 10
FcgidInitialEnv PROJ_LIB /usr/local/share/proj FcgidInitialEnv PROJ_LIB /usr/local/share/proj
FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib:/usr/local/pgsql/lib:/usr3/pkg3/oracle9/lib" FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib:/usr/local/pgsql/lib:/usr3/pkg3/oracle9/lib"
</IfModule> </IfModule>
......