dendrite/helm/dendrite/templates
Alexandre Oliveira 66865597e2
Use port number instead of name for k8s service port (#3256)
I've found an issue when deploying Dendrite's Helm chart on my local
cluster. The template for generating an Ingress resource tries to find
the service port using a name (`http`), but the template that generates
the Service resource, instead, identifies the resource with a port
number.

According to the [Kubernetes
ServiceSpec](https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/),
`ports.targetPort` can be either a number or a string; if it's the
latter, it will be looked up as a named port in the pod's container
ports.

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

[skip ci]
2024-02-29 08:13:59 +01:00
..
tests Add simplified helm chart (#2905) 2023-01-06 15:44:10 +01:00
_helpers.tpl Rdanzey/helm-fixes-existing-db-secrets (#3033) 2023-03-28 08:30:19 +02:00
_overrides.yaml Add simplified helm chart (#2905) 2023-01-06 15:44:10 +01:00
configmap_grafana_dashboards.yaml fix(helm): do not deploy screenshot to cluster (just dashboard) (#3063) 2023-05-02 17:29:21 +01:00
deployment.yaml [helm] Update Ingress hosts to account for IPv6 (server+client) and scheme (client) (#3182) 2023-08-29 08:20:37 +02:00
ingress.yaml Use port number instead of name for k8s service port (#3256) 2024-02-29 08:13:59 +01:00
jobs.yaml fix(helm): extract image tag to value (and use as default from Chart.… (#2934) 2023-01-18 08:45:34 +01:00
prometheus-rules.yaml Extend Dendrite Helm chart with some additional config options (#3077) 2023-06-30 08:26:06 +02:00
pvc.yaml fix(helm): empty storage class in pvcs (#3191) 2023-10-25 10:08:54 +02:00
secrets.yaml feat(helm): add prometheus resources to monitor (#2958) 2023-02-28 14:18:26 +01:00
service.yaml Use port number instead of name for k8s service port (#3256) 2024-02-29 08:13:59 +01:00
servicemonitor.yaml Extend Dendrite Helm chart with some additional config options (#3077) 2023-06-30 08:26:06 +02:00