Skip to content

Commit

Permalink
Add dnsDomainDot to allow .cluster.local. in proxied environements
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Nov 29, 2024
1 parent ad34d99 commit 616d898
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add dnsDomainDot to fix an issue with applications using .cluster.local.

## [0.6.2] - 2024-10-31

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ spec:
- name: dnsDomain
variable:
value: {{`"{{ clusterConfiguration.networking.dnsDomain }}"`}}
- name: dnsDomainDot
variable:
value: {{`"{{ clusterConfiguration.networking.dnsDomain }}."`}}
- name: podSubnet
variable:
value: {{`"{{ clusterConfiguration.networking.podSubnet }}"`}}
Expand All @@ -65,7 +68,7 @@ spec:
value: {{`"{{ clusterConfiguration.networking.serviceSubnet }}"`}}
- name: dynamicNoProxy
variable:
value: {{`"{{apiEndpoint}},{{dnsDomain}},{{podSubnet}},{{serviceSubnet}}"`}}
value: {{`"{{apiEndpoint}},{{dnsDomain}},{{dnsDomainDot}},{{podSubnet}},{{serviceSubnet}}"`}}
- name: fullNoProxy
variable:
value: {{ printf "\"%s,%s,%s\"" $proxy.noProxy "svc,127.0.0.1,localhost" "{{dynamicNoProxy}}" }}
Expand Down
5 changes: 4 additions & 1 deletion policies/connectivity/proxy/PodController.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
- name: dnsDomain
variable:
value: [[`"[[ clusterConfiguration.networking.dnsDomain ]]"`]]
- name: dnsDomainDot
variable:
value: [[`"[[ clusterConfiguration.networking.dnsDomain ]]."`]]
- name: podSubnet
variable:
value: [[`"[[ clusterConfiguration.networking.podSubnet ]]"`]]
Expand All @@ -64,7 +67,7 @@ spec:
value: [[`"[[ clusterConfiguration.networking.serviceSubnet ]]"`]]
- name: dynamicNoProxy
variable:
value: [[`"[[apiEndpoint]],[[dnsDomain]],[[podSubnet]],[[serviceSubnet]]"`]]
value: [[`"[[apiEndpoint]],[[dnsDomain]],[[dnsDomainDot]],[[podSubnet]],[[serviceSubnet]]"`]]
- name: fullNoProxy
variable:
value: [[ printf "\"%s,%s,%s\"" $proxy.noProxy "svc,127.0.0.1,localhost" "[[dynamicNoProxy]]" ]]
Expand Down

0 comments on commit 616d898

Please sign in to comment.