Difference between revisions of "Nginx example"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
 
   - name: nginx
 
   - name: nginx
 
     image: nginx
 
     image: nginx
 +
    [[livenessProbe]]:
 +
      [[httpGet]]:
 +
      path: /
 +
      port: 80
 +
    initialDelaySeconds: 60
 +
    timeoutSeconds: 30
 +
    failureThreshold: 10
  
 
== Related ==
 
== Related ==

Revision as of 10:39, 22 October 2024

Example

 apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    env: test
spec:
  containers:
  - name: nginx
    image: nginx
    imagePullPolicy: IfNotPresent
  nodeSelector:
    disktype: ssd

Example

apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
    livenessProbe:
      httpGet:
      path: /
      port: 80
    initialDelaySeconds: 60
    timeoutSeconds: 30
    failureThreshold: 10

Related

See also

Advertising: