Difference between revisions of "Template:Liveness official example"
Jump to navigation
Jump to search
(Created page with "<pre> apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-http spec: containers: - name: liveness image: registry.k8s.io/e2e-test-images/a...") |
Tags: Mobile web edit, Mobile edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | apiVersion: v1 | |
− | apiVersion: v1 | + | kind: Pod |
− | kind: Pod | + | metadata: |
− | metadata: | + | labels: |
− | + | test: liveness | |
− | + | name: liveness-http | |
− | + | spec: | |
− | spec: | + | containers: |
− | + | - name: liveness | |
− | + | image: [[registry.k8s.io]]/e2e-test-images/agnhost:2.40 | |
− | + | args: | |
− | + | - liveness | |
− | + | [[livenessProbe]]: | |
− | + | httpGet: | |
− | + | path: /healthz | |
− | + | port: 8080 | |
− | + | [[httpHeaders]]: | |
− | + | - name: Custom-Header | |
− | + | value: Awesome | |
− | + | initialDelaySeconds: 3 | |
− | + | periodSeconds: 3 | |
− | |||
− | |||
− |
Latest revision as of 08:24, 7 November 2024
apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-http spec: containers: - name: liveness image: registry.k8s.io/e2e-test-images/agnhost:2.40 args: - liveness livenessProbe: httpGet: path: /healthz port: 8080 httpHeaders: - name: Custom-Header value: Awesome initialDelaySeconds: 3 periodSeconds: 3
Advertising: