Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-#10481 - use startup probe option for first initialization of application #108

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions chart/skywalking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ The following table lists the configurable parameters of the Skywalking chart an
| `oap.nodeSelector` | OAP labels for master pod assignment | `{}` |
| `oap.tolerations` | OAP tolerations | `[]` |
| `oap.resources` | OAP node resources requests & limits | `{} - cpu limit must be an integer` |
| `oap.livenessProbe` | Configuration fields for the [livenessProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/) | `tcpSocket.port: 12800` <br> `initialDelaySeconds: 15` <br> `periodSeconds: 20`
| `oap.readinessProbe` | Configuration fields for the [readinessProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/) | `tcpSocket.port: 12800` <br> `initialDelaySeconds: 15` <br> `periodSeconds: 20`
| `oap.startupProbe` | Configuration fields for the [startupProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) | `tcpSocket.port: 12800` <br> `failureThreshold: 9` <br> `periodSeconds: 10`
| `oap.livenessProbe` | Configuration fields for the [livenessProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) | `tcpSocket.port: 12800` <br> `initialDelaySeconds: 5` <br> `periodSeconds: 10`
| `oap.readinessProbe` | Configuration fields for the [readinessProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) | `tcpSocket.port: 12800` <br> `initialDelaySeconds: 5` <br> `periodSeconds: 10`
| `oap.envoy.als.enabled` | Open envoy als | `false` |
| `oap.env` | OAP environment variables | `[]` |
| `oap.securityContext` | Allows you to set the [securityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) for the pod | `fsGroup: 1000`<br>`runAsUser: 1000` |
Expand Down
12 changes: 8 additions & 4 deletions chart/skywalking/templates/oap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,21 @@ spec:
{{ else }}
tcpSocket:
port: 12800
initialDelaySeconds: 15
periodSeconds: 20
initialDelaySeconds: 5
periodSeconds: 10
{{ end }}
startupProbe:
{{- if .Values.oap.startupProbe}}
{{ toYaml .Values.oap.startupProbe | indent 10 }}
{{ end }}
readinessProbe:
{{- if .Values.oap.readinessProbe}}
{{ toYaml .Values.oap.readinessProbe | indent 10 }}
{{ else }}
tcpSocket:
port: 12800
initialDelaySeconds: 15
periodSeconds: 20
initialDelaySeconds: 5
periodSeconds: 10
{{ end }}
ports:
{{- range $key, $value := .Values.oap.ports }}
Expand Down
11 changes: 9 additions & 2 deletions chart/skywalking/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,19 @@ oap:
livenessProbe: {}
# tcpSocket:
# port: 12800
# initialDelaySeconds: 15
# initialDelaySeconds: 5
# periodSeconds: 20
startupProbe:
# Time to boot the applciation is set to:
# 9 (failureThreshold) * 10 (periodSeconds) = 90 seconds in this case.
tcpSocket:
port: 12800
failureThreshold: 9
periodSeconds: 10
readinessProbe: {}
# tcpSocket:
# port: 12800
# initialDelaySeconds: 15
# initialDelaySeconds: 5
# periodSeconds: 20
# podAnnotations:
# example: oap-foo
Expand Down