Difference between revisions of "Nginx example"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== Example ==
 
== Example ==
 +
[[apiVersion]]: v1
 +
[[kind:]] Pod
 +
metadata:
 +
  name: nginx
 +
[[spec:]]
 +
  [[containers:]]
 +
  - name: nginx
 +
    image: nginx
  
  
  
  
 +
== See also ==
 
{{kind: Pod}}
 
{{kind: Pod}}

Revision as of 10:37, 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



See also

kind: Pod: spec.containers, spec.initContainers, spec.volumes, spec.securityContext

Advertising: