diff --git a/code-analysis/Chart.yaml b/code-analysis/Chart.yaml index 966ccb9..a085895 100644 --- a/code-analysis/Chart.yaml +++ b/code-analysis/Chart.yaml @@ -16,7 +16,7 @@ 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.2.1 +version: 0.2.2 # 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 diff --git a/code-analysis/templates/andromeda.yaml b/code-analysis/templates/andromeda.yaml index 125b623..64b8c44 100644 --- a/code-analysis/templates/andromeda.yaml +++ b/code-analysis/templates/andromeda.yaml @@ -205,6 +205,15 @@ spec: name: {{ .Values.config.name }} - secretRef: name: {{ .Values.mongo.secrets.name }} + readinessProbe: + httpGet: + path: / + port: {{ .Values.andromeda.containerPort }} + failureThreshold: 5 + initialDelaySeconds: 150 + periodSeconds: 15 + successThreshold: 1 + timeoutSeconds: 3 {{- if or .Values.andromeda.resources.requests.cpu .Values.andromeda.resources.requests.memory .Values.andromeda.resources.limits.cpu .Values.andromeda.resources.limits.memory }} resources: {{- if or .Values.andromeda.resources.requests.cpu .Values.andromeda.resources.requests.memory }} diff --git a/code-analysis/templates/config.andromeda-nginx-conf.yaml b/code-analysis/templates/config.andromeda-nginx-conf.yaml index 1508cb9..f808c98 100644 --- a/code-analysis/templates/config.andromeda-nginx-conf.yaml +++ b/code-analysis/templates/config.andromeda-nginx-conf.yaml @@ -20,13 +20,7 @@ data: server_names_hash_bucket_size 128; server { - listen 80; - server_name _SERVER_NAME_; - return 301 https://$host$request_uri; - } - - server { - listen 80; + listen 80 default_server; server_name {{ .Values.base.host }} {{ .Values.andromeda.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.base.clusterDomain }} localhost 127.0.0.1; location /ce/ml/ {