Skip to content

Commit

Permalink
fix k8s descritor file, removing "java", "-jar", "starter.jar"
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Dec 2, 2022
1 parent 5f73e25 commit a1945b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
7 changes: 4 additions & 3 deletions deployment/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ ditto:A6BgmB8IEtPTs

## Configuration of the services

You may configure each service via passing variables to the java VM in the entrypoint section for each
service.
You may configure each service via passing system properties via the `JAVA_TOOL_OPTIONS` environment variable in the
entrypoint section for each service.

```yml
...
# Alternative approach for configuration of the service
command: java -Dditto.gateway.authentication.devops.password=foobar -jar ${JVM_CMD_ARGS_ENV} starter.jar
environment:
- JAVA_TOOL_OPTIONS=-Dditto.gateway.authentication.devops.password=foobar
```

To get a list of available configuration options you may retrieve them from a running instance via:
Expand Down
15 changes: 5 additions & 10 deletions deployment/kubernetes/deploymentFiles/ditto/ditto-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ spec:
- name: connectivity
image: docker.io/eclipse/ditto-connectivity:latest
imagePullPolicy: IfNotPresent
args: ["java", "-jar", "starter.jar"]
# Resource can be managed by setting the following resource config.
#resources:
# requests:
Expand Down Expand Up @@ -79,7 +78,7 @@ spec:
- name: TZ
value: "Europe/Berlin"
- name: JAVA_TOOL_OPTIONS
value: "-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=75 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=3s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=7s"
value: "-XX:ActiveProcessorCount=2 -XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=30s"
- name: MONGO_DB_HOSTNAME
value: "mongodb"
# in order to read the MONGO_DB_URI from a kubernetes secret replace the above lines for MONGO_DB_HOSTNAME with the following ones
Expand Down Expand Up @@ -132,7 +131,6 @@ spec:
- name: things
image: docker.io/eclipse/ditto-things:latest
imagePullPolicy: IfNotPresent
args: ["java", "-jar", "starter.jar"]
# Resource can be managed by setting the following resource config.
#resources:
# requests:
Expand Down Expand Up @@ -181,7 +179,7 @@ spec:
- name: TZ
value: "Europe/Berlin"
- name: JAVA_TOOL_OPTIONS
value: "-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=75 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=3s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=7s"
value: "-XX:ActiveProcessorCount=2 -XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=30s"
- name: MONGO_DB_HOSTNAME
value: "mongodb"
# in order to read the MONGO_DB_URI from a kubernetes secret replace the above lines for MONGO_DB_HOSTNAME with the following ones
Expand Down Expand Up @@ -234,7 +232,6 @@ spec:
- name: things-search
image: docker.io/eclipse/ditto-things-search:latest
imagePullPolicy: IfNotPresent
args: ["java", "-jar", "starter.jar"]
# Resource can be managed by setting the following resource config.
#resources:
# requests:
Expand Down Expand Up @@ -283,7 +280,7 @@ spec:
- name: TZ
value: "Europe/Berlin"
- name: JAVA_TOOL_OPTIONS
value: "-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=75 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=3s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=7s"
value: "-XX:ActiveProcessorCount=2 -XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=30s"
- name: MONGO_DB_HOSTNAME
value: "mongodb"
# in order to read the MONGO_DB_URI from a kubernetes secret replace the above lines for MONGO_DB_HOSTNAME with the following ones
Expand Down Expand Up @@ -336,7 +333,6 @@ spec:
- name: policies
image: docker.io/eclipse/ditto-policies:latest
imagePullPolicy: IfNotPresent
args: ["java", "-jar", "starter.jar"]
# Resource can be managed by setting the following resource config.
#resources:
# requests:
Expand Down Expand Up @@ -385,7 +381,7 @@ spec:
- name: TZ
value: "Europe/Berlin"
- name: JAVA_TOOL_OPTIONS
value: "-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=75 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=3s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=7s"
value: "-XX:ActiveProcessorCount=2 -XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=30s"
- name: MONGO_DB_HOSTNAME
value: "mongodb"
# in order to read the MONGO_DB_URI from a kubernetes secret replace the above lines for MONGO_DB_HOSTNAME with the following ones
Expand Down Expand Up @@ -437,7 +433,6 @@ spec:
- name: gateway
image: docker.io/eclipse/ditto-gateway:latest
imagePullPolicy: IfNotPresent
args: ["java", "-jar", "starter.jar"]
# Resource can be managed by setting the following resource config.
#resources:
# requests:
Expand Down Expand Up @@ -488,7 +483,7 @@ spec:
- name: TZ
value: "Europe/Berlin"
- name: JAVA_TOOL_OPTIONS
value: "-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=75 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=3s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=7s"
value: "-XX:ActiveProcessorCount=2 -XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=60s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=30s"
# in order to write logs into a file you can enable this by setting the following env variable
# the log file(s) can be found in /var/log/ditto directory on the host machine
#- name: DITTO_LOGGING_FILE_APPENDER
Expand Down

0 comments on commit a1945b8

Please sign in to comment.