Difference between revisions of "Nginx example"
Jump to navigation
Jump to search
(Created page with " {{kind pod nginx}} {{kind: Pod}}") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | == Example == | |
− | |||
{{kind pod nginx}} | {{kind pod nginx}} | ||
+ | == Example with [[LivenessProbe]] == | ||
+ | [[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 == | ||
+ | * [[Liveness]] | ||
+ | == See also == | ||
+ | * {{kind: Pod}} | ||
− | + | [[Category:Pod]] |
Latest revision as of 10:42, 22 October 2024
Example[edit]
apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: ssd
Example with LivenessProbe[edit]
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[edit]
See also[edit]
Advertising: