Skip to content

Commit

Permalink
added nais yaml and templating files
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrv committed Sep 3, 2019
1 parent 1f6cba0 commit a7a4d6c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .nais/dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ingresses": ["https://johnny.dev-fss.nais.io"],

This comment has been minimized.

Copy link
@Kyrremann

Kyrremann Sep 3, 2019

Nye ingresser? Eller funker denne kun på GCP?

"resources": {
"limits": { "cpu": "250m", "memory": "256Mi" },
"requests": { "cpu": "100m", "memory": "128Mi" }
},
"envs": [
{ "name": "foo", "value": "bar" },
{ "name": "asdf", "value": "123" }
]
}
33 changes: 33 additions & 0 deletions .nais/nais.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
name: johnny
namespace: default
labels:
team: aura
spec:
image: docker.pkg.github.com/nais/testapp/testapp:latest
port: 8080
liveness:
path: /ping
readiness:
path: /ping
replicas:
min: 2
max: 4
ingresses:
{{#each ingresses}}
- {{this}}
{{/each}}
resources:
limits:
cpu: {{resources.limits.cpu}}
memory: {{resources.limits.memory}}
requests:
cpu: {{resources.requests.cpu}}
memory: {{resources.requests.memory}}
env:
{{#each envs}}
- name: "{{name}}"
value: "{{value}}"
{{/each}}

1 comment on commit a7a4d6c

@Kyrremann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er det noen grunn til å ha skjulte filer?

Please sign in to comment.