Skip to content

Commit

Permalink
Fix dns-port in network-policy (#8733)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:
Currently the port for DNS is hardcoded in the network policy which
causes problems in our setup because we use a different port for this.
However, since the coredns pod always names the port "dns" we could use
this name.

**Which issue(s) this PR fixes**:
Fixes #<issue number>

**Special notes for your reviewer**:

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [x] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`

Co-authored-by: Travis Patterson <travis.patterson@grafana.com>
  • Loading branch information
pixiono and MasslessParticle authored Mar 31, 2023
1 parent 9f41182 commit e2c4454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Entries should include a reference to the pull request that introduced the chang

[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)

- [BUGFIX] Fix dns port in network-policy

## 4.10.0

- [CHANGE] Changed version of Grafana Enterprise Logs to v1.6.3
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
{{- include "loki.selectorLabels" . | nindent 6 }}
egress:
- ports:
- port: 53
- port: dns
protocol: UDP
to:
- namespaceSelector: {}
Expand Down

0 comments on commit e2c4454

Please sign in to comment.