Skip to content

Commit

Permalink
Merge pull request #5 from Privado-Inc/feat/gke-readiness
Browse files Browse the repository at this point in the history
feat: define readiness probes for gke ingress
  • Loading branch information
ojaswa1942 authored Nov 18, 2024
2 parents 89be168 + 4504d1c commit 4599bc5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code-analysis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions code-analysis/templates/andromeda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 1 addition & 7 deletions code-analysis/templates/config.andromeda-nginx-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ {
Expand Down

0 comments on commit 4599bc5

Please sign in to comment.