Difference between revisions of "ReadinessProbe"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
[[helm show all grafana/grafana]] | [[helm show all grafana/grafana]] | ||
+ | == Examples == | ||
readinessProbe: | readinessProbe: | ||
httpGet: | httpGet: | ||
Line 17: | Line 18: | ||
timeoutSeconds: 30 | timeoutSeconds: 30 | ||
failureThreshold: 10 | failureThreshold: 10 | ||
+ | |||
+ | |||
+ | == Official example == | ||
+ | <pre> | ||
+ | apiVersion: v1 | ||
+ | |||
+ | kind: Pod | ||
+ | |||
+ | metadata: | ||
+ | |||
+ | name: goproxy | ||
+ | |||
+ | labels: | ||
+ | |||
+ | app: goproxy | ||
+ | |||
+ | spec: | ||
+ | |||
+ | containers: | ||
+ | |||
+ | - name: goproxy | ||
+ | |||
+ | image: registry.k8s.io/goproxy:0.1 | ||
+ | |||
+ | ports: | ||
+ | |||
+ | - containerPort: 8080 | ||
+ | |||
+ | readinessProbe: | ||
+ | |||
+ | tcpSocket: | ||
+ | |||
+ | port: 8080 | ||
+ | |||
+ | initialDelaySeconds: 5 | ||
+ | |||
+ | periodSeconds: 10 | ||
+ | |||
+ | livenessProbe: | ||
+ | |||
+ | tcpSocket: | ||
+ | |||
+ | port: 8080 | ||
+ | |||
+ | initialDelaySeconds: 15 | ||
+ | |||
+ | periodSeconds: 20 | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | |||
== Related == | == Related == |
Revision as of 11:36, 11 October 2022
helm show all grafana/grafana
Contents
Examples
readinessProbe: httpGet: path: /api/health port: 3000 livenessProbe: httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 failureThreshold: 10
Official example
apiVersion: v1 kind: Pod metadata: name: goproxy labels: app: goproxy spec: containers: - name: goproxy image: registry.k8s.io/goproxy:0.1 ports: - containerPort: 8080 readinessProbe: tcpSocket: port: 8080 initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 15 periodSeconds: 20
Related
See also
- Pods:
kubectl apply
,kubectl [ pod get | top | delete | describe pods ]
,InitContainers, PodInitializing, CrashLoopBackOff, ImagePullPolicy:, NodeAffinity, NodeSelector, Terminated
Advertising: