Skip to content

Commit

Permalink
Updated ingress and deployment set
Browse files Browse the repository at this point in the history
  • Loading branch information
dt-dilip committed Apr 30, 2024
1 parent faba062 commit 172d8c7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions charts/cdefense/templates/graphql/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ if .Values.graphql.enabled }}
---
apiVersion: v1
kind: Service
metadata:
Expand All @@ -10,3 +12,5 @@ spec:
app: graphql
ports:
{{- .Values.graphql.service.ports | toYaml | nindent 2 -}}
---
{{ end }}
2 changes: 2 additions & 0 deletions charts/cdefense/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ spec:
name: uptime
port:
number: 80
{{ if .Values.recommendation.enabled }}
- host: {{ if .Values.recommendation.hostname }}"{{ .Values.recommendation.hostname }}"{{- else }}"recommendation.{{ .Values.domain }}"{{- end }}
http:
paths:
Expand All @@ -155,6 +156,7 @@ spec:
name: recommendation
port:
number: 80
{{ end }}
---
{{ if .Values.graphql.enabled }}
---
Expand Down
3 changes: 3 additions & 0 deletions charts/cdefense/templates/recommendation/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.recommendation.enabled }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -85,3 +86,5 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
---
{{ end }}
6 changes: 5 additions & 1 deletion charts/cdefense/templates/recommendation/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ if .Values.recommendation.enabled }}
---
apiVersion: v1
kind: Service
metadata:
Expand All @@ -9,4 +11,6 @@ spec:
selector:
app: recommendation
ports:
{{ .Values.recommendation.service.ports | toYaml | nindent 2 }}
{{ .Values.recommendation.service.ports | toYaml | nindent 2 }}
---
{{ end }}
5 changes: 3 additions & 2 deletions charts/cdefense/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ ingress:
alb:
scheme: internet-facing
nginx:
class: nginx-external
certificate: letsencrypt-dev
class: ""
certificate: ""

aws:
certificatearn: ""
Expand Down Expand Up @@ -175,6 +175,7 @@ alertservice:
targetMemoryUtilizationPercentage: 80

recommendation:
enabled: true
nodeSelector: cdefense
tolerations: []
replicas: 1
Expand Down

0 comments on commit 172d8c7

Please sign in to comment.