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
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
resources: # Optional. See: http://kubernetes.io/docs/user-guide/compute-resources/
  limits:
    cpu: 500m # app will have its cpu usage throttled if exceeding this limit
    memory: 512Mi  # app will be killed if exceeding these limits
  requests: # app will be scheduled on nodes with at least this amount resources available
    cpu: 200m
    memory: 256Mi
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

Add resource spec to nais example yaml.
Add resource spec to nais example yaml.

#9
