forked from nais/naisd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnais_example.yaml
28 lines (28 loc) · 1.03 KB
/
nais_example.yaml
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
name: appname # mandatory
image: navikt/k8s-testapp # mandatory. Ref to docker container
replicas: # set min = max to disable autoscaling
min: 2 # minimum number of replicas
max: 4 # maximum number of replicas
cpuThresholdPercentage: 50 # total cpu percentage threshold on deployment, at which point it will increase number of pods if current < max
port: # the port the application listens on. [] if no ports should be exposed. Default you get an http port
name: http
port: 80 # port number that must be exposed
targetPort: 80x80 # the port number which is exposed by the container and should receive traffic routed to `port`
protocol: http
healthcheck:
liveness:
http:
path: isAlive
readiness:
http:
path: isReady
fasitResources: # Resources fetched from Fasit
used: #This will be injected into the application as environment variables
- alias: mydb
resourceType: datasource
- alias: someservice
resourceType: restservice
exposed:
- alias: myservice
resourceType: restservice
path: /api