Skip to content

Commit d1e97a4

Browse files
committed
perf: migrate nats to v1.0.0
1 parent cccba68 commit d1e97a4

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

helm/charts/vechr-iiot/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords:
88
- IoT
99

1010
type: application
11-
version: 1.0.0
11+
version: 1.0.1
1212
home: https://github.com/vechr/k8s
1313
maintainers:
1414
- name: zulfikar
@@ -19,7 +19,7 @@ icon: https://raw.githubusercontent.com/vechr/k8s/master/images/vechrk8s.svg
1919

2020
dependencies:
2121
- name: nats
22-
version: 1.0.0-beta.5
22+
version: 1.0.0
2323
repository: https://nats-io.github.io/k8s/helm/charts/
2424
condition: nats.enabled
2525

Binary file not shown.
19 KB
Binary file not shown.

helm/charts/vechr-iiot/templates/nats/self-signed.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ spec:
6262
{{range $i := until $replicaCount}}
6363
- "{{ $.Release.Name }}-nats-{{$i}}.{{ $.Release.Name }}-nats-headless"
6464
{{end}}
65+
- "*.{{ $.Release.Name }}-nats-headless"
6566
{{end}}

helm/charts/vechr-iiot/values.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,21 @@ natsSelfSigned:
350350
nats:
351351
enabled: true
352352

353+
# reference a common CA Certificate or Bundle in all nats config `tls` blocks and nats-box contexts
354+
# note: `tls.verify` still must be set in the appropriate nats config `tls` blocks to require mTLS
355+
tlsCA:
356+
enabled: true
357+
secretName: nats-ca
358+
dir: /etc/nats-cert/ca
359+
key: ca.crt
360+
353361
service:
354362
enabled: false
355363

356364
config:
357365
cluster:
358366
enabled: true
367+
port: 6222
359368
replicas: 3
360369

361370
tls:
@@ -374,6 +383,7 @@ nats:
374383
size: 5Gi
375384

376385
nats:
386+
port: 4222
377387
tls:
378388
enabled: true
379389
# set secretName in order to mount an existing secret to dir
@@ -385,6 +395,7 @@ nats:
385395

386396
mqtt:
387397
enabled: true
398+
port: 1883
388399
tls:
389400
enabled: true
390401
# set secretName in order to mount an existing secret to dir
@@ -414,8 +425,16 @@ nats:
414425
same_origin: false
415426
allowed_origins: []
416427

428+
monitor:
429+
enabled: true
430+
port: 8222
431+
tls:
432+
# config.nats.tls must be enabled also
433+
# when enabled, monitoring port will use HTTPS with the options from config.nats.tls
434+
enabled: false
435+
417436
natsbox:
418-
enabled: true
437+
enabled: false
419438

420439
podTemplate:
421440
topologySpreadConstraints:

0 commit comments

Comments
 (0)