Skip to content

Commit

Permalink
add lifecycle to zeppelin
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed Jun 24, 2020
1 parent c38ee06 commit cb1d9ba
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/zeppelin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zeppelin
description: |-
Helm chart to deploy [zeppelin](http://zeppelin.apache.org/).
type: application
version: 0.0.6
version: 0.0.7
appVersion: "0.9.0"
home: https://github.com/slamdev/helm-charts/tree/master/charts/zeppelin
icon: https://zeppelin.apache.org/docs/latest/assets/themes/zeppelin/img/zeppelin_logo.png
Expand Down
5 changes: 4 additions & 1 deletion charts/zeppelin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ zeppelin
========
Helm chart to deploy [zeppelin](http://zeppelin.apache.org/).

Current chart version is `0.0.6`
Current chart version is `0.0.7`

Source code can be found [here](https://github.com/slamdev/helm-charts/tree/master/charts/zeppelin)

Expand All @@ -29,6 +29,9 @@ Source code can be found [here](https://github.com/slamdev/helm-charts/tree/mast
| nodeSelector | object | `{}` | node for scheduler pod assignment |
| podSecurityContext | object | `{}` | specifies security settings for a pod |
| postStart | string | `"echo 'additional dependencies can be installed here'"` | script that is executed via container's lifecycle.postStart hook |
| postStartCommand[0] | string | `"ls"` | |
| postStartCommand[1] | string | `"-la"` | |
| postStartCommand[2] | string | `"/"` | |
| readinessProbe.httpGet.path | string | `"/api/version"` | path for readiness probe |
| readinessProbe.httpGet.port | string | `"http"` | port for readiness probe |
| resources | object | `{}` | custom resource configuration |
Expand Down
4 changes: 3 additions & 1 deletion charts/zeppelin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ spec:
postStart:
exec:
command:
- /postStart.sh
{{- with .Values.postStartCommand }}
{{- toYaml . | nindent 18 }}
{{- end }}
env:
- name: ZEPPELIN_PORT
value: "8080"
Expand Down
5 changes: 5 additions & 0 deletions charts/zeppelin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ env: []
# - name: SAMPLE
# value: text

postStartCommand:
- ls
- -la
- /

# postStart -- script that is executed via container's lifecycle.postStart hook
postStart: |-
echo 'additional dependencies can be installed here'

0 comments on commit cb1d9ba

Please sign in to comment.