Skip to content

Commit

Permalink
Revise Helm Charts for Production Installations (#537)
Browse files Browse the repository at this point in the history
* Revise helm charts ingress yaml error on host enabled

* Revise ArgoCD install.yaml to fix misuse of ARGOCD_REDIS_SERVICE env
  • Loading branch information
krapie authored May 22, 2023
1 parent 1a85319 commit dbcec29
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
9 changes: 6 additions & 3 deletions build/charts/yorkie-argocd/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ metadata:
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
rules:
{{ if .Values.ingress.hosts.enabled }}
- host: {{ .Values.ingress.hosts.apiHost }}
http:
{{ end }}
{{ if not .Values.ingress.hosts.enabled }}
- http:
{{ if .Values.ingress.hosts.enabled }}
host: {{ .Values.ingress.hosts.apiHost }}
{{ end }}
{{ end }}
paths:
- path: {{ .Values.ingress.hosts.argoCDPath }}/
pathType: Prefix
Expand Down
5 changes: 1 addition & 4 deletions build/charts/yorkie-argocd/templates/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,6 @@ spec:
- ""
- --appendonly
- "no"
env:
- name: ARGOCD_REDIS_SERVICE
value: argocd-redis
image: redis:7.0.9-alpine
imagePullPolicy: Always
name: redis
Expand Down Expand Up @@ -1092,7 +1089,7 @@ spec:
- args:
- /usr/local/bin/argocd-repo-server
- --redis
- $(ARGOCD_REDIS_SERVICE):6379
- argocd-redis:6379
env:
- name: ARGOCD_RECONCILIATION_TIMEOUT
valueFrom:
Expand Down
9 changes: 6 additions & 3 deletions build/charts/yorkie-cluster/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ metadata:
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
rules:
{{ if .Values.ingress.hosts.enabled }}
- host: {{ .Values.ingress.hosts.apiHost }}
http:
{{ end }}
{{ if not .Values.ingress.hosts.enabled }}
- http:
{{ if .Values.ingress.hosts.enabled }}
host: {{ .Values.ingress.hosts.apiHost }}
{{ end }}
{{ end }}
paths:
- path: /
pathType: Prefix
Expand Down
1 change: 0 additions & 1 deletion build/charts/yorkie-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ ingress:
hosts:
enabled: false
apiHost: api.yorkie.dev
adminHost: admin.yorkie.dev

alb:
enabled: false
Expand Down
9 changes: 6 additions & 3 deletions build/charts/yorkie-monitoring/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ metadata:
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
rules:
{{ if .Values.ingress.hosts.enabled }}
- host: {{ .Values.ingress.hosts.apiHost }}
http:
{{ end }}
{{ if not .Values.ingress.hosts.enabled }}
- http:
{{ if .Values.ingress.hosts.enabled }}
host: {{ .Values.ingress.hosts.apiHost }}
{{ end }}
{{ end }}
paths:
- path: {{ .Values.ingress.hosts.grafanaPath }}/
pathType: Prefix
Expand Down

0 comments on commit dbcec29

Please sign in to comment.