Skip to content

Commit a7a4d6c

Browse files
committed
added nais yaml and templating files
1 parent 1f6cba0 commit a7a4d6c

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.nais/dev.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ingresses": ["https://johnny.dev-fss.nais.io"],
3+
"resources": {
4+
"limits": { "cpu": "250m", "memory": "256Mi" },
5+
"requests": { "cpu": "100m", "memory": "128Mi" }
6+
},
7+
"envs": [
8+
{ "name": "foo", "value": "bar" },
9+
{ "name": "asdf", "value": "123" }
10+
]
11+
}

.nais/nais.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: "nais.io/v1alpha1"
2+
kind: "Application"
3+
metadata:
4+
name: johnny
5+
namespace: default
6+
labels:
7+
team: aura
8+
spec:
9+
image: docker.pkg.github.com/nais/testapp/testapp:latest
10+
port: 8080
11+
liveness:
12+
path: /ping
13+
readiness:
14+
path: /ping
15+
replicas:
16+
min: 2
17+
max: 4
18+
ingresses:
19+
{{#each ingresses}}
20+
- {{this}}
21+
{{/each}}
22+
resources:
23+
limits:
24+
cpu: {{resources.limits.cpu}}
25+
memory: {{resources.limits.memory}}
26+
requests:
27+
cpu: {{resources.requests.cpu}}
28+
memory: {{resources.requests.memory}}
29+
env:
30+
{{#each envs}}
31+
- name: "{{name}}"
32+
value: "{{value}}"
33+
{{/each}}

0 commit comments

Comments
 (0)