You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # The Kubernetes pod name to run the function instances. It is set to
199
199
# # `pf-<tenant>-<namespace>-<function_name>-<random_uuid(8)>` if this setting is left to be empty
200
200
# jobName:
201
+
# # Optional domain suffix to use when the Function Worker constructs the gRPC address to connect to function instances.
202
+
# # If left blank, it defaults to `.svc.cluster.local`. Set this if your Function Worker is outside the cluster and connects via an external Gateway/Ingress.
203
+
# kubernetesServiceDomainSuffix:
201
204
# # the docker image to run function instance. by default it is `apachepulsar/pulsar`
202
205
# pulsarDockerImageName:
203
206
# # the docker image to run function instance according to different configurations provided by users.
Copy file name to clipboardExpand all lines: pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntime.java
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -150,11 +150,13 @@ public class KubernetesRuntime implements Runtime {
Copy file name to clipboardExpand all lines: pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntimeFactory.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ public class KubernetesRuntimeFactory implements RuntimeFactory {
101
101
privateStringfunctionInstanceClassPath;
102
102
privateStringdownloadDirectory;
103
103
privateintgracePeriodSeconds;
104
+
privateStringkubernetesServiceDomainSuffix;
104
105
105
106
@ToString.Exclude
106
107
@EqualsAndHashCode.Exclude
@@ -178,7 +179,7 @@ public void initialize(WorkerConfig workerConfig, AuthenticationConfig authentic
178
179
if (!Paths.get(this.downloadDirectory).isAbsolute()) {
Copy file name to clipboardExpand all lines: pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntimeFactoryConfig.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,12 @@ public class KubernetesRuntimeFactoryConfig {
47
47
doc = "The docker image used to run function instance. By default it is `apachepulsar/pulsar`"
48
48
)
49
49
protectedStringpulsarDockerImageName;
50
-
50
+
@FieldContext(
51
+
doc = "Optional domain suffix to use when the Function Worker constructs the gRPC address "
52
+
+ "to connect to function instances. If left blank, it defaults to `.svc.cluster.local`. "
53
+
+ "Set this if your Function Worker is outside the cluster and connects via an external Gateway/Ingress."
54
+
)
55
+
protectedStringkubernetesServiceDomainSuffix;
51
56
@FieldContext(
52
57
doc = "The function docker images used to run function instance according to different "
53
58
+ "configurations provided by users. By default it is `apachepulsar/pulsar`"
Copy file name to clipboardExpand all lines: pulsar-functions/runtime/src/test/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntimeTest.java
0 commit comments