-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Improvement]: Ingress configration for ams when deploying with Helm. #2020
Conversation
values.yaml
ingress
Visit from ingress url.
|
When I try to value.yaml set ingress config,when "helm dependency build" before install helm chart values.yaml
It have something problem
Error: INSTALLATION FAILED: template: amoro/templates/amoro-ingress.yaml:27:22: executing "amoro/templates/amoro-ingress.yaml" at <include "common.tplvalues.merge" (dict "values" (list .Values.ingress.annotations .Values.commonAnnotations) "context" .)>: error calling include: template: no template "common.tplvalues.merge" associated with template "gotpl" ![]() Env:
cc @baiyangtx |
charts/amoro/Chart.lock
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard Add Apache LICENSE 2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is generated by Helm to record the version information of dependent libraries.
app.kubernetes.io/component: ingress | ||
{{- if or .Values.ingress.annotations .Values.commonAnnotations }} | ||
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ingress.annotations .Values.commonAnnotations ) "context" . ) }} | ||
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I install it set
annotations:
kubernetes.io/ingress.class: nginx
that have error helm merge msg: Error: INSTALLATION FAILED: template: amoro/templates/amoro-ingress.yaml:27:22: executing "amoro/templates/amoro-ingress.yaml" at <include "common.tplvalues.merge" (dict "values" (list .Values.ingress.annotations .Values.commonAnnotations) "context" .)>: error calling include: template: no template "common.tplvalues.merge" associated with template "gotpl"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed by upgrading bitnamicharts/common
to version 2.11.1
I tried installing the chart with the following values, but it doesn't seem to work:
|
Do you have an default IngressClass implementation in your cluster ? |
I have fixed the ANNOTATION problems and account problems. |
Env:
values.yaml
process:
It does not work for me, I can not visit AMS web UI via ' http://amoro.ingress.minikube.local/'. It seems that I lost the address in the ingress. |
You have not been installed an IngressClass on you k8s Cluster. run |
For macOS M series chips to use the ingress addons in minikube, according to kubernetes/minikube#13510:
After these things, this PR works fine for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
LGTM. |
Thanks your testing. This is helpful for using on Mac, and I will add this additional configuration to the documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…apache#2020) * helm: add ingress * helm: service name * add helm:build docker and test ingress * notes improvements * ignore tgz file * fix review problems.
Why are the changes needed?
Add ingress configuration in Chart. Make Helm user easier to access AMS Dashborad.
By default, applications within a Kubernetes cluster with Ingress are not accessible from outside the cluster. But when an IngressClass is installed in the Kubernetes cluster, it is possible to access the installed application pages on the cluster from outside the cluster by creating Ingress resources.
More information about ingress refer here: https://kubernetes.io/docs/concepts/services-networking/ingress/
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation