-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide Helm chart in Ditto repository
* initially migrated from IoT Packages project * however enhanced with a lot more configuration options in order to be the basis for a productive Helm chart * also added quite advanced ingress configuration Signed-off-by: Thomas Jäckle <[email protected]>
- Loading branch information
Showing
66 changed files
with
5,969 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
charts/ | ||
Chart.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0 | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
--- | ||
apiVersion: v2 | ||
name: ditto | ||
description: | | ||
Eclipse Ditto™ is a technology in the IoT implementing a software pattern called “digital twins”. | ||
A digital twin is a virtual, cloud based, representation of his real world counterpart | ||
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc). | ||
type: application | ||
version: 3.3.0 | ||
appVersion: 3.2.1 | ||
keywords: | ||
- iot-chart | ||
- digital-twin | ||
- IoT | ||
home: https://www.eclipse.org/ditto | ||
sources: | ||
- https://github.com/eclipse-ditto/ditto | ||
icon: https://www.eclipse.org/ditto/images/ditto.svg | ||
maintainers: | ||
- name: thjaeckle | ||
email: [email protected] | ||
dependencies: | ||
- name: mongodb | ||
repository: https://charts.bitnami.com/bitnami | ||
version: ^12.x | ||
condition: mongodb.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0 | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
--- | ||
# Default values for ditto. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
global: | ||
jwtOnly: false | ||
basicAuthUsers: | ||
ditto: | ||
user: ditto | ||
password: ditto | ||
logging: | ||
customConfigFile: | ||
enabled: true | ||
|
||
## ---------------------------------------------------------------------------- | ||
## policies configuration | ||
## ref: https://www.eclipse.org/ditto/architecture-services-policies.html | ||
policies: | ||
resources: | ||
cpu: 0.2 | ||
memoryMi: 512 | ||
jvm: | ||
activeProcessorCount: 2 | ||
heapRamPercentage: 50 | ||
config: | ||
persistence: | ||
events: | ||
historicalHeadersToPersist: | ||
- "ditto-originator" | ||
- "ditto-origin" | ||
- "correlation-id" | ||
|
||
## ---------------------------------------------------------------------------- | ||
## things configuration | ||
## ref: https://www.eclipse.org/ditto/architecture-services-things.html | ||
things: | ||
resources: | ||
cpu: 0.2 | ||
memoryMi: 512 | ||
jvm: | ||
activeProcessorCount: 2 | ||
heapRamPercentage: 50 | ||
config: | ||
persistence: | ||
events: | ||
historicalHeadersToPersist: | ||
- "ditto-originator" | ||
- "ditto-origin" | ||
- "correlation-id" | ||
|
||
## ---------------------------------------------------------------------------- | ||
## things-search configuration | ||
## ref: https://www.eclipse.org/ditto/architecture-services-things-search.html | ||
thingsSearch: | ||
resources: | ||
cpu: 0.2 | ||
memoryMi: 512 | ||
jvm: | ||
activeProcessorCount: 2 | ||
heapRamPercentage: 50 | ||
|
||
## ---------------------------------------------------------------------------- | ||
## connectivity configuration | ||
## ref: https://www.eclipse.org/ditto/architecture-services-connectivity.html | ||
connectivity: | ||
resources: | ||
cpu: 0.2 | ||
memoryMi: 768 | ||
jvm: | ||
activeProcessorCount: 2 | ||
heapRamPercentage: 55 | ||
|
||
## ---------------------------------------------------------------------------- | ||
## gateway configuration | ||
## ref: https://www.eclipse.org/ditto/architecture-services-gateway.html | ||
gateway: | ||
resources: | ||
cpu: 0.2 | ||
memoryMi: 512 | ||
jvm: | ||
activeProcessorCount: 2 | ||
heapRamPercentage: 50 | ||
config: | ||
authentication: | ||
enablePreAuthentication: true | ||
oauth: | ||
openidConnectIssuers: | ||
example: | ||
issuer: "example.com" | ||
authSubjects: | ||
- "{{ jwt:sub }}" | ||
- "{{ jwt:groups }}" | ||
devops: | ||
## this controls whether /devops resource is secured or not | ||
secured: true | ||
authMethod: "basic" | ||
oauth: | ||
# configure the amount of clock skew in seconds to tolerate when verifying the local time against the exp and nbf claims | ||
allowedClockSkew: 20s | ||
openidConnectIssuers: | ||
example-ops: | ||
issuer: "example.com" | ||
authSubjects: | ||
- "{{ jwt:sub }}" | ||
- "{{ jwt:groups }}" | ||
oauthSubjects: | ||
- "example-ops:devops-admin" | ||
## this controls whether /status resource is secured or not | ||
statusSecured: true | ||
statusAuthMethod: "basic" | ||
# array of strings for subjects authorized to use "/status" API | ||
statusOauthSubjects: | ||
- "example-ops:devops-admin" | ||
|
||
## ---------------------------------------------------------------------------- | ||
## nginx configuration | ||
nginx: | ||
resources: | ||
cpu: 0.1 | ||
memoryMi: 64 | ||
initContainers: | ||
waitForGateway: | ||
enabled: false | ||
|
||
## ---------------------------------------------------------------------------- | ||
## mongodb dependency chart configuration | ||
mongodb: | ||
enabled: false | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 256Mi | ||
requests: | ||
cpu: 100m | ||
memory: 256Mi | ||
readinessProbe: | ||
enabled: false | ||
livenessProbe: | ||
enabled: false | ||
auth: | ||
enabled: false | ||
persistence: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
~ | ||
~ See the NOTICE file(s) distributed with this work for additional | ||
~ information regarding copyright ownership. | ||
~ | ||
~ This program and the accompanying materials are made available under the | ||
~ terms of the Eclipse Public License 2.0 which is available at | ||
~ http://www.eclipse.org/legal/epl-2.0 | ||
~ | ||
~ SPDX-License-Identifier: EPL-2.0 | ||
--> | ||
<configuration> | ||
<appender name="jsonConsoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder class="net.logstash.logback.encoder.LogstashEncoder"> | ||
<excludeMdcKeyName>sourceActorSystem</excludeMdcKeyName> | ||
<excludeMdcKeyName>akkaUid</excludeMdcKeyName> | ||
<excludeMdcKeyName>akkaTimestamp</excludeMdcKeyName> | ||
<mdcKeyFieldName>x-correlation-id=correlation-id</mdcKeyFieldName> | ||
<mdcKeyFieldName>connection-id=ditto-connection-id</mdcKeyFieldName> | ||
<mdcKeyFieldName>connection-type=ditto-connection-type</mdcKeyFieldName> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- Do not print INFO cluster messages of mongo driver: --> | ||
<logger name="org.mongodb.driver" level="WARN"/> | ||
|
||
<logger name="akka.management.cluster.bootstrap.contactpoint.HttpClusterBootstrapRoutes" level="WARN"/> | ||
<logger name="akka.management.cluster.bootstrap.internal.BootstrapCoordinator" level="WARN"/> | ||
<logger name="akka.actor.CoordinatedShutdown" level="INFO"/> | ||
|
||
<logger name="org.apache.kafka" level="WARN"/> | ||
|
||
<!-- Log level for the application --> | ||
<logger name="org.eclipse.ditto" level="${LOG_LEVEL_APPLICATION:-INFO}"/> | ||
|
||
<root level="${LOG_LEVEL:-INFO}"> | ||
<appender-ref ref="jsonConsoleAppender"/> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
~ | ||
~ See the NOTICE file(s) distributed with this work for additional | ||
~ information regarding copyright ownership. | ||
~ | ||
~ This program and the accompanying materials are made available under the | ||
~ terms of the Eclipse Public License 2.0 which is available at | ||
~ http://www.eclipse.org/legal/epl-2.0 | ||
~ | ||
~ SPDX-License-Identifier: EPL-2.0 | ||
--> | ||
<configuration> | ||
<appender name="jsonConsoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder class="net.logstash.logback.encoder.LogstashEncoder"> | ||
<excludeMdcKeyName>sourceActorSystem</excludeMdcKeyName> | ||
<excludeMdcKeyName>akkaUid</excludeMdcKeyName> | ||
<excludeMdcKeyName>akkaTimestamp</excludeMdcKeyName> | ||
<mdcKeyFieldName>x-correlation-id=correlation-id</mdcKeyFieldName> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- Do not print INFO cluster messages of mongo driver: --> | ||
<logger name="org.mongodb.driver" level="WARN"/> | ||
|
||
<logger name="akka.management.cluster.bootstrap.contactpoint.HttpClusterBootstrapRoutes" level="WARN"/> | ||
<logger name="akka.management.cluster.bootstrap.internal.BootstrapCoordinator" level="WARN"/> | ||
<logger name="akka.actor.CoordinatedShutdown" level="INFO"/> | ||
|
||
<!-- Log level for the application --> | ||
<logger name="org.eclipse.ditto" level="${LOG_LEVEL_APPLICATION:-INFO}"/> | ||
|
||
<root level="${LOG_LEVEL:-INFO}"> | ||
<appender-ref ref="jsonConsoleAppender"/> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
~ | ||
~ See the NOTICE file(s) distributed with this work for additional | ||
~ information regarding copyright ownership. | ||
~ | ||
~ This program and the accompanying materials are made available under the | ||
~ terms of the Eclipse Public License 2.0 which is available at | ||
~ http://www.eclipse.org/legal/epl-2.0 | ||
~ | ||
~ SPDX-License-Identifier: EPL-2.0 | ||
--> | ||
<configuration> | ||
<appender name="jsonConsoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder class="net.logstash.logback.encoder.LogstashEncoder"> | ||
<excludeMdcKeyName>sourceActorSystem</excludeMdcKeyName> | ||
<excludeMdcKeyName>akkaUid</excludeMdcKeyName> | ||
<excludeMdcKeyName>akkaTimestamp</excludeMdcKeyName> | ||
<mdcKeyFieldName>x-correlation-id=correlation-id</mdcKeyFieldName> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- Do not print INFO cluster messages of mongo driver: --> | ||
<logger name="org.mongodb.driver" level="WARN"/> | ||
|
||
<logger name="akka.management.cluster.bootstrap.contactpoint.HttpClusterBootstrapRoutes" level="WARN"/> | ||
<logger name="akka.management.cluster.bootstrap.internal.BootstrapCoordinator" level="WARN"/> | ||
<logger name="akka.actor.CoordinatedShutdown" level="INFO"/> | ||
|
||
<!-- Log level for the application --> | ||
<logger name="org.eclipse.ditto" level="${LOG_LEVEL_APPLICATION:-INFO}"/> | ||
|
||
<root level="${LOG_LEVEL:-INFO}"> | ||
<appender-ref ref="jsonConsoleAppender"/> | ||
</root> | ||
</configuration> |
Oops, something went wrong.