Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Num the k8s resource yamls, fix README.md.
Browse files Browse the repository at this point in the history
* when outputting the k8s resource yaml, number the files so that
`kubectl apply|delete -f out/` can be run and the resources will be
created in order.
  • Loading branch information
libby committed Dec 12, 2018
1 parent 80dd2dd commit 327f3d5
Show file tree
Hide file tree
Showing 22 changed files with 843 additions and 458 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,211 @@ data:
"timestamp": "0x00"
}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: tessera-config
namespace: quorum-test
labels:
app: qubernetes
name: tessera-config
data:
tessera-config.json.tmpl: |-
{
"useWhiteList": false,
"jdbc": {
"username": "sa",
"password": "",
"url": "jdbc:h2:/etc/quorum/qdata/tm/db;MODE=Oracle;TRACE_LEVEL_SYSTEM_OUT=0",
"autoCreateTables": true
},
"server": {
"port": 9001,
"hostName": "http://%THIS_SERVICE_HOST%",
"bindingAddress": "http://0.0.0.0:9001",
"sslConfig": {
"tls": "OFF",
"generateKeyStoreIfNotExisted": true,
"serverKeyStore": "/etc/quorum/qdata/tm/server-keystore",
"serverKeyStorePassword": "quorum",
"serverTrustStore": "/etc/quorum/qdata/tm/server-truststore",
"serverTrustStorePassword": "quorum",
"serverTrustMode": "TOFU",
"knownClientsFile": "/etc/quorum/qdata/tm/knownClients",
"clientKeyStore": "/etc/quorum/qdata/tm/client-keystore",
"clientKeyStorePassword": "quorum",
"clientTrustStore": "/etc/quorum/qdata/tm/client-truststore",
"clientTrustStorePassword": "quorum",
"clientTrustMode": "TOFU",
"knownServersFile": "/etc/quorum/qdata/tm/knownServers"
}
},
"peer": [
{
"url": "http://%QUORUM-NODE1_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE2_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE3_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE4_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE5_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE6_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE7_SERVICE_HOST%:9001"
}
],
"keys": {
"passwords": [],
"keyData": [
{
"privateKeyPath": "/etc/quorum/qdata/tm/tm.key",
"publicKeyPath": "/etc/quorum/qdata/tm/tm.pub"
}
]
},
"alwaysSendTo": [],
"unixSocketFile": "/etc/quorum/qdata/tm/tm.ipc"
}
tessera-config-enhanced.json.tmpl: |-
{
"useWhiteList": false,
"jdbc": {
"username": "sa",
"password": "",
"url": "jdbc:h2:/etc/quorum/qdata/tm/db;MODE=Oracle;TRACE_LEVEL_SYSTEM_OUT=0",
"autoCreateTables": true
},
"serverConfigs":[
{
"app":"ThirdParty",
"enabled": true,
"serverSocket":{
"type":"INET",
"port": 9080,
"hostName": "http://%THIS_SERVICE_HOST%"
},
"communicationType" : "REST"
},
{
"app":"Q2T",
"enabled": true,
"serverSocket":{
"type":"UNIX",
"path":"/etc/quorum/qdata/tm/tm.ipc"
},
"communicationType" : "UNIX_SOCKET"
},
{
"app":"P2P",
"enabled": true,
"serverSocket":{
"type":"INET",
"port": 9001,
"hostName": "http://%THIS_SERVICE_HOST%",
"bindingAddress": "http://0.0.0.0:9001"
},
"sslConfig": {
"tls": "OFF",
"generateKeyStoreIfNotExisted": true,
"serverKeyStore": "/etc/quorum/qdata/tm/server-keystore",
"serverKeyStorePassword": "quorum",
"serverTrustStore": "/etc/quorum/qdata/tm/server-truststore",
"serverTrustStorePassword": "quorum",
"serverTrustMode": "TOFU",
"knownClientsFile": "/etc/quorum/qdata/tm/knownClients",
"clientKeyStore": "/etc/quorum/qdata/tm/client-keystore",
"clientKeyStorePassword": "quorum",
"clientTrustStore": "/etc/quorum/qdata/tm/client-truststore",
"clientTrustStorePassword": "quorum",
"clientTrustMode": "TOFU",
"knownServersFile": "/etc/quorum/qdata/tm/knownServers"
},
"communicationType" : "REST"
}
],
"peer": [
{
"url": "http://%QUORUM-NODE1_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE2_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE3_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE4_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE5_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE6_SERVICE_HOST%:9001"
},
{
"url": "http://%QUORUM-NODE7_SERVICE_HOST%:9001"
}
],
"keys": {
"passwords": [],
"keyData": [
{
"config": %THIS_PRIV_KEY%,
"publicKey": "%THIS_PUB_KEY%"
}
]
},
"alwaysSendTo": []
}
---
apiVersion: v1
kind: ConfigMap
Expand Down
Loading

0 comments on commit 327f3d5

Please sign in to comment.