Difference between revisions of "HttpGet"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
<pre>
+
* https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
apiVersion: v1
+
 
kind: Pod
+
{{liveness official example}}
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
 
  
</pre>
 
  
  

Latest revision as of 09:46, 1 May 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




See also[edit]

Advertising: