Skip to content

Commit

Permalink
perf: migrate nats to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zulfikar4568 committed Aug 9, 2023
1 parent cccba68 commit 4ff675e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/charts/vechr-iiot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ icon: https://raw.githubusercontent.com/vechr/k8s/master/images/vechrk8s.svg

dependencies:
- name: nats
version: 1.0.0-beta.5
version: 1.0.0
repository: https://nats-io.github.io/k8s/helm/charts/
condition: nats.enabled

Expand Down
Binary file removed helm/charts/vechr-iiot/charts/nats-1.0.0-beta.5.tgz
Binary file not shown.
Binary file added helm/charts/vechr-iiot/charts/nats-1.0.0.tgz
Binary file not shown.
1 change: 1 addition & 0 deletions helm/charts/vechr-iiot/templates/nats/self-signed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ spec:
{{range $i := until $replicaCount}}
- "{{ $.Release.Name }}-nats-{{$i}}.{{ $.Release.Name }}-nats-headless"
{{end}}
- "*.{{ $.Release.Name }}-nats-headless"
{{end}}
21 changes: 20 additions & 1 deletion helm/charts/vechr-iiot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,21 @@ natsSelfSigned:
nats:
enabled: true

# reference a common CA Certificate or Bundle in all nats config `tls` blocks and nats-box contexts
# note: `tls.verify` still must be set in the appropriate nats config `tls` blocks to require mTLS
tlsCA:
enabled: true
secretName: nats-ca
dir: /etc/nats-cert/ca
key: ca.crt

service:
enabled: false

config:
cluster:
enabled: true
port: 6222
replicas: 3

tls:
Expand All @@ -374,6 +383,7 @@ nats:
size: 5Gi

nats:
port: 4222
tls:
enabled: true
# set secretName in order to mount an existing secret to dir
Expand All @@ -385,6 +395,7 @@ nats:

mqtt:
enabled: true
port: 1883
tls:
enabled: true
# set secretName in order to mount an existing secret to dir
Expand Down Expand Up @@ -414,8 +425,16 @@ nats:
same_origin: false
allowed_origins: []

monitor:
enabled: true
port: 8222
tls:
# config.nats.tls must be enabled also
# when enabled, monitoring port will use HTTPS with the options from config.nats.tls
enabled: false

natsbox:
enabled: true
enabled: false

podTemplate:
topologySpreadConstraints:
Expand Down

0 comments on commit 4ff675e

Please sign in to comment.