Skip to content

Commit

Permalink
Issue 107: Liveness Probes for schema registry deployment (#108)
Browse files Browse the repository at this point in the history
* Issue 107: Liveness Probes for schema registry deployment

Signed-off-by: SrishT <[email protected]>
  • Loading branch information
SrishT authored Sep 4, 2020
1 parent 7f42542 commit 512d43f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 3 additions & 4 deletions charts/schema-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ The following table lists the configurable parameters of the schema registry cha
| `image.repository` | Repository for schema registry image | `pravega/schema-registry` |
| `image.tag` | Tag for schema registry image | `0.0.1` |
| `image.pullPolicy` | Pull policy for schema registry image | `IfNotPresent` |
| `serviceAccount.create` | Whether to create a service account | `true` |
| `serviceAccount.name` | Name of the service account | `schema-registry` |
| `serviceAccount.annotations` | Annotations to be added to the service account | |
| `service.type` | Schema registry service type | `LoadBalancer` |
| `service.port` | Schema registry service port | `9092` |
| `ingress.enabled` | Whether to expose as an ingress resource | `false` |
Expand All @@ -61,16 +64,12 @@ The following table lists the configurable parameters of the schema registry cha
| `ingress.tls` | TLS configuration for the ingress | `[]` |
| `controllerUri` | URL of the Pravega Controller service | `tcp://localhost:9090` |
| `storeType` | Type of store to be used | `Pravega` |
| `serviceAccount.create` | Whether to create a service account | `true` |
| `serviceAccount.name` | Name of the service account | `schema-registry` |
| `serviceAccount.annotations` | Annotations to be added to the service account | |
| `authentication.enabled` | Whether to enable authentication and authorization | `false` |
| `authentication.passwordAuthSecret` | Name of the secret generated by the user from the userPasswordFile | |
| `authentication.userPasswordFile` | Path of the file containing user credentials and ACLs, for the PasswordAuthHandler | |
| `authentication.tokenSigningKey` | The key used for signing the delegation tokens | |
| `tls.enabled` | Whether to enable TLS | `false` |
| `tls.secret` | Name of the secret generated by the user from the tls certFile, trustStore, keyFile and keyPasswordFile | |
| `tls.certFile` | Path of the X.509 PEM-encoded server certificate file for the service | |
| `tls.trustStore` | Path of the PEM-encoded truststore file for TLS connections | |
| `tls.keyFile` | Path of the PEM-encoded private key file for the service | |
| `tls.keyPasswordFile` | Path of the PEM-encoded private key password file for the service | |
8 changes: 5 additions & 3 deletions charts/schema-registry/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ spec:
protocol: TCP
livenessProbe:
initialDelaySeconds: 2
httpGet:
path: /ping
port: rest
exec:
command:
- sh
- -c
- netstat -ltn 2> /dev/null | grep {{ .Values.service.port }} || ss -ltn 2> /dev/null | grep {{ .Values.service.port }}
{{- if or .Values.authentication.enabled .Values.tls.enabled }}
volumeMounts:
{{- if .Values.authentication.enabled }}
Expand Down
1 change: 0 additions & 1 deletion charts/schema-registry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,5 @@ tls:
## tls is enabled
secret:
certFile:
trustStore:
keyFile:
keyPasswordFile:

0 comments on commit 512d43f

Please sign in to comment.