Difference between revisions of "ReadinessProbe"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
app: goproxy | app: goproxy | ||
spec: | spec: | ||
− | containers: | + | [[containers:]] |
- name: goproxy | - name: goproxy | ||
image: registry.k8s.io/goproxy:0.1 | image: registry.k8s.io/goproxy:0.1 | ||
Line 36: | Line 36: | ||
* <code>[[LivenessProbe]]</code> | * <code>[[LivenessProbe]]</code> | ||
* <code>[[kind: Pod]]</code> | * <code>[[kind: Pod]]</code> | ||
− | + | * [[templates/deployment.yaml]] | |
+ | * <code>[[startupProbe]]</code> | ||
== See also == | == See also == |
Latest revision as of 09:32, 2 October 2024
Contents
Examples[edit]
readinessProbe: httpGet: path: /api/health port: 3000 livenessProbe: httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 failureThreshold: 10
Official example[edit]
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[edit]
See also[edit]
Advertising: