From 8a3e77cb1269a0f0a148672844a3af7cd46b5148 Mon Sep 17 00:00:00 2001 From: Sebastian Laskawiec Date: Fri, 11 Oct 2019 12:39:36 +0200 Subject: [PATCH 01/73] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d63c01e..ffc7c9b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.jgroups.kubernetes jgroups-kubernetes - 1.0.13.Final + 1.0.14-SNAPSHOT jar KUBE_PING https://github.com/jgroups-extras/jgroups-kubernetes @@ -49,7 +49,7 @@ scm:git:git@github.com:jgroups-extras/jgroups-kubernetes.git scm:git:git@github.com:jgroups-extras/jgroups-kubernetes.git https://github.com/jgroups-extras/jgroups-kubernetes - 1.0.13.Final + master From 2a7008f7a7ee057c2546b32b1ce505e7ba7d8a23 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Tue, 15 Oct 2019 20:12:00 +0200 Subject: [PATCH 02/73] Document KUBE_PING protocol defaults in README.adoc --- README.adoc | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/README.adoc b/README.adoc index e90fd74..bfa8e50 100644 --- a/README.adoc +++ b/README.adoc @@ -127,51 +127,51 @@ namespace `"default"` will be returned. === KUBE_PING configuration -[align="left",width="90%",cols="3,3,10",options="header"] +[align="left",width="90%",cols="3,3,3,10",options="header"] |=============== -|Attribute name | System property | Description +| Attribute name | System property | Default | Description -| port_range || Number of additional ports to be probed for membership. A port_range of 0 does not - probe additional ports. Example: `initial_hosts=A[7800] port_range=0` probes `A:7800`, `port_range=1` - probes `A:7800` and `A:7801` +| port_range || 1 | Number of additional ports to be probed for membership. A port_range of 0 does not + probe additional ports. Example: `initial_hosts=A[7800] port_range=0` probes `A:7800`, `port_range=1` + probes `A:7800` and `A:7801` -| connectTimeout | KUBERNETES_CONNECT_TIMEOUT | Max time (in millis) to wait for a connection to the Kubernetes server. If exceeded, an exception will be thrown +| connectTimeout | KUBERNETES_CONNECT_TIMEOUT | 5000 | Maximum time (in milliseconds) to wait for a connection to the Kubernetes server. If exceeded, an exception will be thrown. -| readTimeout | KUBERNETES_READ_TIMEOUT | Max time (in millis) to wait for a response from the Kubernetes server +| readTimeout | KUBERNETES_READ_TIMEOUT | 30000 | Maximum time in milliseconds to wait for a response from the Kubernetes server. -| operationAttempts | KUBERNETES_OPERATION_ATTEMPTS | Max number of attempts to send discovery requests +| operationAttempts | KUBERNETES_OPERATION_ATTEMPTS | 3 | Maximum number of attempts to send discovery requests. -| operationSleep | KUBERNETES_OPERATION_SLEEP | Time (in millis) between operation attempts +| operationSleep | KUBERNETES_OPERATION_SLEEP | 1000 | Time in milliseconds between operation attempts. -| masterProtocol | KUBERNETES_MASTER_PROTOCOL | http or https (default). Used to send the initial discovery request to the Kubernetes server +| masterProtocol | KUBERNETES_MASTER_PROTOCOL | "https" | Schema http or https to be used to send the initial discovery request to the Kubernetes server. -| masterHost | KUBERNETES_SERVICE_HOST | The URL of the Kubernetes server +| masterHost | KUBERNETES_SERVICE_HOST || The URL of the Kubernetes server. -| masterPort | KUBERNETES_SERVICE_PORT | The port on which the Kubernetes server is listening +| masterPort | KUBERNETES_SERVICE_PORT || The port on which the Kubernetes server is listening. -| apiVersion | KUBERNETES_API_VERSION | The version of the protocol to the Kubernetes server +| apiVersion | KUBERNETES_API_VERSION | "v1" | The version of the protocol to the Kubernetes server. -| namespace | KUBERNETES_NAMESPACE | The namespace to be used (leaving this undefined uses `"default"`) +| namespace | KUBERNETES_NAMESPACE | "default" | The namespace to be used. -| labels | KUBERNETES_LABELS | The labels to use in the discovery request to the Kubernetes server +| labels | KUBERNETES_LABELS || The labels to use in the discovery request to the Kubernetes server. -| clientCertFile | KUBERNETES_CLIENT_CERTIFICATE_FILE | Certificate to access the Kubernetes server +| clientCertFile | KUBERNETES_CLIENT_CERTIFICATE_FILE || Certificate to access the Kubernetes server. -| clientKeyFile | KUBERNETES_CLIENT_KEY_FILE | Client key file (store) +| clientKeyFile | KUBERNETES_CLIENT_KEY_FILE || Client key file (store). -| clientKeyPassword | KUBERNETES_CLIENT_KEY_PASSWORD | The password to access the client key store +| clientKeyPassword | KUBERNETES_CLIENT_KEY_PASSWORD || The password to access the client key store. -| clientKeyAlgo | KUBERNETES_CLIENT_KEY_ALGO | The algorithm used by the client +| clientKeyAlgo | KUBERNETES_CLIENT_KEY_ALGO | "RSA" | The algorithm used by the client. -| caCertFile | KUBERNETES_CA_CERTIFICATE_FILE | Client CA certificate +| caCertFile | KUBERNETES_CA_CERTIFICATE_FILE | "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" | Client CA certificate. -| saTokenFile | SA_TOKEN_FILE | Token file +| saTokenFile | SA_TOKEN_FILE | "/var/run/secrets/kubernetes.io/serviceaccount/token" | Token file. -| dump_requests || Dumps all discovery requests and responses to the Kubernetes server to stdout when true +| dump_requests || false | Dumps all discovery requests and responses to the Kubernetes server to stdout when true. -| split_clusters_during_rolling_update | KUBERNETES_SPLIT_CLUSTERS_DURING_ROLLING_UPDATE | During the Rolling Update, prevents from putting all Pods into a single cluster +| split_clusters_during_rolling_update | KUBERNETES_SPLIT_CLUSTERS_DURING_ROLLING_UPDATE | false | During the Rolling Update, prevents from putting all Pods into a single cluster. -| useNotReadyAddresses | KUBERNETES_USE_NOT_READY_ADDRESSES | True if initial discovery should take unready Pods into consideration. Default is `true`. +| useNotReadyAddresses | KUBERNETES_USE_NOT_READY_ADDRESSES | true | True if initial discovery should take unready Pods into consideration. |=============== From 2eca200b289c55f4416cb12a963b7c6a50492be3 Mon Sep 17 00:00:00 2001 From: Bela Ban Date: Mon, 25 Nov 2019 18:04:00 +0100 Subject: [PATCH 03/73] Changed documentation: KUBERNETES_LABEL -> KUBERNETES_LABALS (https://github.com/jgroups-extras/jgroups-kubernetes/issues/79) --- README.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index bfa8e50..19c2104 100644 --- a/README.adoc +++ b/README.adoc @@ -23,7 +23,7 @@ A sample configuration looks like this: ... ---- @@ -115,7 +115,7 @@ Labels are similar to namespaces; different labels can separate clusters running Similarly to namespaces, labels also have to be defined when launching a pod, either via `--labels=