Skip to content

Commit

Permalink
add nats to jobs pod
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Apr 25, 2024
1 parent 733c4ec commit cbf4fda
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions charts/bindplane/templates/bindplane-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,40 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if eq .Values.eventbus.type "nats" }}
- name: BINDPLANE_EVENT_BUS_TYPE
value: nats
- name: BINDPLANE_NATS_SERVER_ENABLE
value: "true"
- name: BINDPLANE_NATS_SERVER_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BINDPLANE_NATS_SERVER_CLIENT_HOST
value: "127.0.0.1"
- name: BINDPLANE_NATS_SERVER_CLIENT_PORT
value: "4222"
- name: BINDPLANE_NATS_SERVER_HTTP_HOST
value: "127.0.0.1"
- name: BINDPLANE_NATS_SERVER_HTTP_PORT
value: "8222"
- name: BINDPLANE_NATS_SERVER_CLUSTER_NAME
value: bindplane-{{ include "bindplane.fullname" . }}
- name: BINDPLANE_NATS_SERVER_CLUSTER_HOST
value: "0.0.0.0"
- name: BINDPLANE_NATS_SERVER_CLUSTER_PORT
value: "6222"
- name: BINDPLANE_NATS_SERVER_CLUSTER_ROUTES
value: nats://{{ include "bindplane.fullname" . }}-nats-cluster-headless.{{ .Release.Namespace }}.svc.cluster.local:6222
- name: BINDPLANE_NATS_CLIENT_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BINDPLANE_NATS_CLIENT_ENDPOINT
value: nats://127.0.0.1:4222
- name: BINDPLANE_NATS_CLIENT_SUBJECT
value: bindplane-event-bus
{{- end }}
{{- if eq (include "bindplane.auth.type" .) "ldap" }}
- name: BINDPLANE_AUTH_TYPE
value: {{ .Values.auth.type }}
Expand Down

0 comments on commit cbf4fda

Please sign in to comment.