Skip to content

Commit

Permalink
Update ASO's NetworkPolicy to allow egress to SqlServer's default port (
Browse files Browse the repository at this point in the history
  • Loading branch information
super-harsh authored Sep 20, 2024
1 parent 882ed6e commit 1f9373d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ spec:
to:
- ipBlock:
cidr: {{ .Values.networkPolicies.postgresqlCIDR }}
# Required for communication with SQL servers when using SQL user object
- ports:
- port: 1433
protocol: TCP
to:
- ipBlock:
cidr: {{ .Values.networkPolicies.sqlCIDR }}
podSelector:
matchLabels:
control-plane: controller-manager
Expand Down
3 changes: 3 additions & 0 deletions v2/charts/azure-service-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ networkPolicies:
mysqlCIDR: 0.0.0.0/0
# Destination CIDR for talking to PostgreSQL servers
postgresqlCIDR: 0.0.0.0/0
# Destination CIDR for talking to Sql servers
sqlCIDR: 0.0.0.0/0


# Node labels for pod assignment
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
Expand Down

0 comments on commit 1f9373d

Please sign in to comment.