Skip to content

Commit

Permalink
Merge pull request #150 from holaplex/mpw/nfts-chart-netpol
Browse files Browse the repository at this point in the history
add netpolicy for redis if enabled. fix default redisUrl
  • Loading branch information
mpwsh authored Sep 28, 2023
2 parents d380a0e + 896468e commit bcd22b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/hub-nfts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.9.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 10 additions & 0 deletions charts/hub-nfts/templates/netpol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ spec:
ports:
- port: 53
protocol: UDP
{{- if .Values.redis.enabled }}
- to:
- podSelector:
matchLabels:
app.kubernetes.io/instance: hub-nfts
app.kubernetes.io/name: redis
ports:
- port: 6379
protocol: TCP
{{- end }}
{{- if .Values.networkPolicies.extraEgress }}
{{ toYaml .Values.networkPolicies.extraEgress | indent 4 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/hub-nfts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ environment:
nftStorageApiEndpoint: "https://api.nft.storage"
ipfsEndpoint: "https://ipfs.io/ipfs/"
assetCdn: "https://assets.holaplex.tools"
redisUrl: "redis://nfts-redis-master:6379"
redisUrl: "redis://hub-nfts-redis-master:6379"

0 comments on commit bcd22b5

Please sign in to comment.