diff --git a/.gitignore b/.gitignore index f9b91e5..5355628 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.bin \ No newline at end of file +.bin +charts/**/charts \ No newline at end of file diff --git a/charts/tsm-node/Chart.yaml b/charts/tsm-node/Chart.yaml index f02c063..2418356 100644 --- a/charts/tsm-node/Chart.yaml +++ b/charts/tsm-node/Chart.yaml @@ -5,5 +5,5 @@ maintainers: - name: Blockdaemon email: sre@blockdaemon.com type: application -version: 0.1.2 +version: 0.1.3 appVersion: "61.0.2" diff --git a/charts/tsm-node/README.md b/charts/tsm-node/README.md index 05237f8..4d3cee7 100644 --- a/charts/tsm-node/README.md +++ b/charts/tsm-node/README.md @@ -1,6 +1,6 @@ # tsm-node -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 61.0.2](https://img.shields.io/badge/AppVersion-61.0.2-informational?style=flat-square) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 61.0.2](https://img.shields.io/badge/AppVersion-61.0.2-informational?style=flat-square) A Helm chart to deploy a Blockdaemon TSM node to kubernetes diff --git a/charts/tsm-node/ci/ingress-multi.yaml b/charts/tsm-node/ci/ingress-multi.yaml new file mode 100644 index 0000000..d64f3cf --- /dev/null +++ b/charts/tsm-node/ci/ingress-multi.yaml @@ -0,0 +1,49 @@ +replicaCount: 1 +index: 0 + +config: + configFile: | + [Player] + Index = 0 + PrivateKey = "replace me" + + [Database] + DriverName = "sqlite3" + DataSourceName = "/tmp/tsmdb" + EncryptorMasterPassword = "ENCRYPTION_KEY" + + [SDKServer] + Port = 8080 +image: + repository: + pullPolicy: IfNotPresent + tag: "61.0.2" +sdkService: + ports: + - port: 8080 + name: sdk + targetPort: 8080 + - port: 9000 + name: mpc + targetPort: 9000 + +mpcService: + enabled: false + +ingress: + enabled: true + className: "nginx" + annotations: + nginx.ingress.kubernetes.io/use-regex: "true" + nginx.ingress.kubernetes.io/rewrite-target: /$1 + hosts: + - host: "tsm-sdk.example.com" + paths: + - path: /tsm0/(.*) + pathType: ImplementationSpecific + serviceName: tsm0-tsm-node + port: 8080 + - path: /tsm1/(.*) + pathType: ImplementationSpecific + serviceName: tsm1-tsm-node + port: 8080 diff --git a/charts/tsm-node/templates/ingress.yaml b/charts/tsm-node/templates/ingress.yaml index 587e6ce..c76f2fc 100644 --- a/charts/tsm-node/templates/ingress.yaml +++ b/charts/tsm-node/templates/ingress.yaml @@ -46,7 +46,11 @@ spec: pathType: {{ .pathType }} backend: service: + {{- if .serviceName }} + name: {{ .serviceName }} + {{- else }} name: {{ $fullName }} + {{- end }} port: number: {{ .port }} {{- end -}}