diff --git a/charts/orb/Chart.yaml b/charts/orb/Chart.yaml index 04a91d8..24d32bc 100644 --- a/charts/orb/Chart.yaml +++ b/charts/orb/Chart.yaml @@ -10,7 +10,7 @@ name: orb description: Orb Observability Platform icon: https://avatars1.githubusercontent.com/u/13207490 type: application -version: 1.0.4 +version: 1.0.5 appVersion: "0.9.0" home: https://getorb.io sources: diff --git a/charts/orb/templates/fleet-deployment.yaml b/charts/orb/templates/fleet-deployment.yaml index ea5dfbb..eb64fce 100644 --- a/charts/orb/templates/fleet-deployment.yaml +++ b/charts/orb/templates/fleet-deployment.yaml @@ -39,6 +39,8 @@ spec: - name: ORB_FLEET_ES_URL value: {{ .Release.Name }}-redis-streams-master:{{ .Values.fleet.redisESPort }} + - name: ORB_FLEET_GRPC_PORT + value: "{{ .Values.fleet.grpcPort }}" - name: ORB_FLEET_HTTP_PORT value: "{{ .Values.fleet.httpPort }}" - name: ORB_FLEET_LOG_LEVEL diff --git a/charts/orb/templates/policies-deployment.yaml b/charts/orb/templates/policies-deployment.yaml index 079fb13..00cd8e5 100644 --- a/charts/orb/templates/policies-deployment.yaml +++ b/charts/orb/templates/policies-deployment.yaml @@ -39,6 +39,12 @@ spec: - name: ORB_POLICIES_ES_URL value: {{ .Release.Name }}-redis-streams-master:{{ .Values.policies.redisESPort }} + - name: ORB_FLEET_GRPC_URL + value: + {{ .Release.Name }}-envoy:{{ .Values.fleet.grpcPort }} + - name: ORB_SINKS_GRPC_URL + value: + {{ .Release.Name }}-envoy:{{ .Values.sinks.grpcPort }} - name: ORB_POLICIES_HTTP_PORT value: "{{ .Values.policies.httpPort }}" - name: ORB_POLICIES_GRPC_PORT diff --git a/charts/orb/templates/sinker-deployment.yaml b/charts/orb/templates/sinker-deployment.yaml new file mode 100644 index 0000000..35448a6 --- /dev/null +++ b/charts/orb/templates/sinker-deployment.yaml @@ -0,0 +1,56 @@ +# Copyright (c) Mainflux +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Release.Name }}-sinker +spec: + replicas: {{ .Values.defaults.replicaCount }} + selector: + matchLabels: + app: {{ .Release.Name }} + component: sinker + template: + metadata: + annotations: + commit_sha: {{ .Values.defaults.image.commitHash }} + labels: + app: {{ .Release.Name }} + component: sinker + spec: + containers: + - env: + - name: MF_JAEGER_URL + value: + {{ .Release.Name }}-jaeger-operator-jaeger-agent:{{ .Values.defaults.jaegerPort }} + - name: ORB_SINKER_ES_URL + value: + {{ .Release.Name }}-redis-streams-master:{{ .Values.sinker.redisESPort }} + - name: ORB_FLEET_GRPC_URL + value: + {{ .Release.Name }}-envoy:{{ .Values.fleet.grpcPort }} + - name: ORB_SINKS_GRPC_URL + value: + {{ .Release.Name }}-envoy:{{ .Values.sinks.grpcPort }} + - name: ORB_POLICIES_GRPC_URL + value: + {{ .Release.Name }}-envoy:{{ .Values.policies.grpcPort }} + - name: ORB_SINKER_HTTP_PORT + value: "{{ .Values.sinker.httpPort }}" + - name: ORB_SINKER_LOG_LEVEL + value: {{ default .Values.defaults.logLevel .Values.sinker.logLevel }} + - name: ORB_SINKER_NATS_URL + value: + nats://{{ .Release.Name }}-nats-client:{{ .Values.defaults.natsPort }} + - name: MF_AUTH_GRPC_URL + value: + {{ .Release.Name }}-envoy:{{ .Values.auth.grpcPort }} + image: "{{ default .Values.defaults.image.repository }}/orb-sinker:{{ default .Values.defaults.image.tag }}" + imagePullPolicy: {{ default .Values.defaults.image.pullPolicy .Values.sinker.image.pullPolicy }} + name: {{ .Release.Name }}-sinker + ports: + - containerPort: {{ .Values.sinker.httpPort }} + protocol: TCP + dnsPolicy: ClusterFirst + restartPolicy: Always diff --git a/charts/orb/templates/sinker-service.yaml b/charts/orb/templates/sinker-service.yaml new file mode 100644 index 0000000..c39c874 --- /dev/null +++ b/charts/orb/templates/sinker-service.yaml @@ -0,0 +1,15 @@ +# Copyright (c) Mainflux +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: v1 +kind: Service +metadata: + name: {{ .Release.Name }}-sinker +spec: + selector: + app: {{ .Release.Name }} + component: sinker + ports: + - protocol: TCP + port: {{ .Values.sinker.httpPort }} + name: {{ .Release.Name }}-sinker-http diff --git a/charts/orb/templates/sinks-deployment.yaml b/charts/orb/templates/sinks-deployment.yaml index dd36b41..a75039a 100644 --- a/charts/orb/templates/sinks-deployment.yaml +++ b/charts/orb/templates/sinks-deployment.yaml @@ -36,6 +36,8 @@ spec: value: "{{ .Values.sinks.dbSSL }}" - name: ORB_SINKS_DB_USER value: {{ index .Values "postgresql-sinks" "postgresqlUsername" }} + - name: ORB_SINKS_GRPC_PORT + value: "{{ .Values.sinks.grpcPort }}" - name: ORB_SINKS_ES_URL value: {{ .Release.Name }}-redis-streams-master:{{ .Values.sinks.redisESPort }} diff --git a/charts/orb/values.yaml b/charts/orb/values.yaml index 79f629a..8d359df 100644 --- a/charts/orb/values.yaml +++ b/charts/orb/values.yaml @@ -58,6 +58,7 @@ fleet: image: { } dbPort: 5432 dbSSL: "disable" + grpcPort: 8283 httpPort: 8203 redisESPort: 6379 @@ -73,9 +74,15 @@ sinks: image: { } dbPort: 5432 dbSSL: "disable" + grpcPort: 8280 httpPort: 8200 redisESPort: 6379 +sinker: + image: { } + httpPort: 8201 + redisESPort: 6379 + things: image: { } dbPort: 5432