-
Notifications
You must be signed in to change notification settings - Fork 479
/
Copy pathvalues.yaml
158 lines (118 loc) · 4.21 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# This component is licensed for OpenFaaS Standard/Enterprise customers only.
# Purchase or obtain a trial license at https://openfaas.com/pricing/
# You will need to create a license named "openfaas-license" - see the
# chart README for detailed instructions.
# Set either a single topic, or multiple with a comma separating each
# topics: payment.requested
# topics: "payment.requested,customer.created,invoice.generated"
topics: faas-request
# The address of the Kafka broker, if multiple are available, include
# them as a comma separated list i.e. "kafka-1:9092,kafka-2:9092,kafka-3:9092"
brokerHosts: kf-kafka:9092
image: ghcr.io/openfaasltd/kafka-connector:0.7.10
# Output detailed logs from the consumer group's lifecycle
sessionLogging: true
# The number of replicas of the connector should usually match the size of the
# partition exactly. So for a topic with 6 partitions, set the replicas to 6.
# This number must not be higher, but can be lower, to save on resources.
replicas: 1
# Max timeout for a function
upstreamTimeout: 2m
# interval for rebuilding the map of functions and topics
rebuildInterval: 30s
# Invoke functions asynchronously.
asyncInvocation: false
async:
# Limit the number of inflight async invocations for the connector.
# A value of 0 indicates no concurrency limit.
maxInflight: 0
# 1MB = 1024 bytes * 1024
maxBytes: "1048576"
# HTTP content-type for invoking functions
contentType: text/plain
# Set the consumer group
group: faas-group-1
logs:
# Log debug messages
debug: false
# Set the log format, supports console or json
format: "console"
# Print the data read from the Kafka topic before invoking functions
printRequestBody: false
# Print the HTTP status of invoked functions
printResponse: true
# Print the data received from invoked functions
printResponseBody: false
# intialOffset for Kafka consumer
#
# "newest" stands for the log head offset, i.e. the offset that will be
# assigned to the next message that will be produced to the partition. You
# can send this to a client's GetOffset method to get this offset, or when
# calling ConsumePartition to start consuming new messages.
#
# "oldest" stands for the oldest offset available on the broker for a
# partition. You can send this to a client's GetOffset method to get this
# offset, or when calling ConsumePartition to start consuming from the
# oldest offset that is still available on the broker.
initialOffset: oldest
# Gateway URL to access API and for invocations
gatewayURL: http://gateway.openfaas:8080
# Basic auth for the gateway
basic_auth: true
# NATS is used for async invocations and is required when
# setting the 'async.maxInflight' parameter to a value other than 0.
nats:
# Configure an externally-managed NATS server.
# When disabled the OpenFaaS embedded nats deployment is used.
# These values should be identical to the configuration in your OpenFaaS deployment values.yaml file
# when external nats is enabled.
external:
enabled: false
host: ""
port: ""
nodeSelector: {}
tolerations: []
affinity: {}
resources:
requests:
memory: "64Mi"
cpu: "100m"
# limits:
# memory: "256Mi"
# Use TLS Encryption, this is usually set to true.
tls: true
# Authentication
## When set to true, create secrets: "kafka-broker-username" and "kafka-broker-password"
saslAuth: false
# kubectl create secret generic \
# kafka-broker-username \
# -n openfaas \
# --from-file broker-username=./broker-username.txt
# kubectl create secret generic \
# kafka-broker-password \
# -n openfaas \
# --from-file broker-password=./broker-password.txt
brokerPasswordSecret: kafka-broker-password
brokerUsernameSecret: kafka-broker-username
## When using a custom CA:
# kubectl create secret generic \
# kafka-broker-ca \
# -n openfaas \
# --from-file broker-ca=./broker-ca.pem
# When using client certs
# kubectl create secret generic \
# kafka-broker-cert \
# -n openfaas \
# --from-file broker-cert=./broker-cert.txt
# kubectl create secret generic \
# kafka-broker-key \
# -n openfaas \
# --from-file broker-key=./broker-key.txt
# Set to empty to disable:
caSecret: ""
certSecret: ""
keySecret: ""
# Or give a name to each to enable
# caSecret: kafka-broker-ca
# certSecret: kafka-broker-cert
# keySecret: kafka-broker-key