-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yml
More file actions
28 lines (27 loc) · 1.5 KB
/
deployment.yml
File metadata and controls
28 lines (27 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: "Nginx-deployment/v1" # uniquely identifies a deployment
services:
- name: "Nginx" # name of the service, uniquely identifies a service
image: "nginx:latest" # image to run in container
replicas: 5 # copys of the container to manage
env: # environment variables
PORT: 80
DURATION: 0.1
healthCheck: # health check configuration
# command: "curl --fail --silent http://localhost:80/ || exit 1" # command to run inside container wrt /, must end in exit code 1 if failing
# interval: 30 # interval to run health check
# timeout: 5 # timeout for health check to be declared failed
# retries: 1 # number of retries before declaring container unhealth
restartPolicy: "Always" # Always (Default), OnFailure, Never
- name: "Linux" # name of the service, uniquely identifies a service
image: "ubuntu" # image to run in container
replicas: 5 # copys of the container to manage
env: # environment variables
PORT: 80
DURATION: 0.1
healthCheck: # health check configuration
# command: " exit 1" # command to run inside container wrt /, must end in exit code 1 if failing
# interval: 30 # interval to run health check
# timeout: 5 # timeout for health check to be declared failed
# retries: 1 # number of retries before declaring container unhealth
restartPolicy: "Always" # Always (Default), OnFailure, Never
startCommand: "sleep infinity" # command to run when container starts overriding default command of the image