Skip to content

Commit

Permalink
use external nats chart
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Jun 30, 2022
1 parent 7564179 commit 467bbad
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 133 deletions.
6 changes: 6 additions & 0 deletions charts/ocis/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts
version: 0.17.1
digest: sha256:708a682913434cc478909bbeb4ba267edef6b51936d26a5a8d661c66cc8efebe
generated: "2022-06-30T10:55:21.545498481+02:00"
4 changes: 4 additions & 0 deletions charts/ocis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ sources:
- https://github.com/owncloud/ocis-charts
- https://github.com/owncloud/ocis
- https://github.com/cs3org/reva
dependencies:
- name: nats
version: 0.17.1
repository: https://nats-io.github.io/k8s/helm/charts
5 changes: 1 addition & 4 deletions charts/ocis/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can get the initial "admin" administrator user password by running:

kubectl -n <namespace> get secrets/admin-user --template='{{"{{"}}.data.password | base64decode{{"}}"}}'

{{ if or (not .Values.storageSystem.persistence.enabled) (not .Values.storageUsers.persistence.enabled) (not .Values.store.persistence.enabled) (not .Values.idm.persistence.enabled) (not .Values.search.persistence.enabled) (not .Values.nats.persistence.enabled) }}
{{ if or (not .Values.storageSystem.persistence.enabled) (not .Values.storageUsers.persistence.enabled) (not .Values.store.persistence.enabled) (not .Values.idm.persistence.enabled) (not .Values.search.persistence.enabled) }}
#################################################################################
###### WARNING: Persistence is disabled for some services. #####
###### You will lose your data when a service's pod is terminated. #####
Expand All @@ -39,8 +39,5 @@ kubectl -n <namespace> get secrets/admin-user --template='{{"{{"}}.data.password
{{- if not .Values.search.persistence.enabled }}
###### - search #####
{{- end }}
{{- if not .Values.nats.persistence.enabled }}
###### - nats #####
{{- end }}
#################################################################################
{{- end }}
2 changes: 1 addition & 1 deletion charts/ocis/templates/audit/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
value: "{{ .Values.logging.pretty }}"

- name: AUDIT_EVENTS_ENDPOINT
value: nats:9233
value: ocis-nats:4222

# TODO: log to file or stdout?
#- name: AUDIT_FILEPATH
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/graph/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
- name: REVA_GATEWAY
value: gateway:9142
- name: GRAPH_EVENTS_ENDPOINT
value: nats:9233
value: ocis-nats:4222

- name: GRAPH_SPACES_INSECURE
value: "{{ .Values.insecure.ocisHttpApiInsecure }}"
Expand Down
66 changes: 0 additions & 66 deletions charts/ocis/templates/nats/deployment.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions charts/ocis/templates/nats/pvc.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions charts/ocis/templates/nats/service.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion charts/ocis/templates/notifications/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
- name: REVA_GATEWAY
value: gateway:9142
- name: NOTIFICATIONS_EVENTS_ENDPOINT
value: nats:9233
value: ocis-nats:4222

- name: NOTIFICATIONS_MACHINE_AUTH_API_KEY
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/search/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
- name: REVA_GATEWAY
value: gateway:9142
- name: SEARCH_EVENTS_ENDPOINT
value: nats:9233
value: ocis-nats:4222

- name: SEARCH_MACHINE_AUTH_API_KEY
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/sharing/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
- name: REVA_GATEWAY
value: gateway:9142
- name: SHARING_EVENTS_ENDPOINT
value: nats:9233
value: ocis-nats:4222

- name: SHARING_JWT_SECRET
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/storage-users/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:

# events
- name: STORAGE_USERS_EVENTS_ENDPOINT
value: nats:9233
value: ocis-nats:4222

- name: REVA_GATEWAY
value: gateway:9142
Expand Down
45 changes: 35 additions & 10 deletions charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,42 @@ search:
# existingClaim:

nats:
persistence:
cluster:
enabled: true
name: "ocis-cluster"
replicas: 3
natsbox:
enabled: false
# storageClassName: default
accessModes:
- ReadWriteMany
size: 10Gi
annotations: {}
finalizers:
- kubernetes.io/pvc-protection
selectorLabels: {}
# existingClaim:
nats:
client:
port: 4222

#externalAccess: true
#advertise: true

jetstream:
enabled: true

memStorage:
enabled: true
size: 2Gi

fileStorage:
enabled: true
size: 10Gi
# storageClassName: default # The Storage Class used should be block storage. NFS is not recommended.

# persistence:
# enabled: false
# # storageClassName: default
# accessModes:
# - ReadWriteMany
# size: 10Gi
# annotations: {}
# finalizers:
# - kubernetes.io/pvc-protection
# selectorLabels: {}
# # existingClaim:

# global options for scalable service
replicas: 1
Expand Down

0 comments on commit 467bbad

Please sign in to comment.