-
-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathatmos.yaml
More file actions
60 lines (55 loc) · 1.71 KB
/
Copy pathatmos.yaml
File metadata and controls
60 lines (55 loc) · 1.71 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Atmos configuration for the native Helm component demo.
# See https://atmos.tools for documentation.
base_path: "."
components:
helm:
# Base path for native Helm components (local charts live here).
base_path: "components/helm"
auth:
identities:
local-k3s:
kind: kubernetes/emulator
emulator: kubernetes
stacks:
base_path: "stacks"
included_paths:
- "deploy/**/*"
excluded_paths:
- "**/_defaults.yaml"
name_template: "{{.vars.stage}}"
logs:
file: "/dev/stderr"
level: Info
commands:
- name: "test"
description: "Render the local Helm chart, deploy it to the k3s emulator, verify it, then tear it down"
steps:
- atmos validate stacks
- atmos helm template demo -s dev
- command: atmos emulator up kubernetes -s dev
retry:
max_attempts: 2
initial_delay: 15s
backoff_strategy: constant
- command: atmos helm diff demo -s dev --identity local-k3s
retry:
max_attempts: 2
initial_delay: 15s
backoff_strategy: constant
- command: atmos helm apply demo -s dev --identity local-k3s
retry:
max_attempts: 2
initial_delay: 15s
backoff_strategy: constant
- command: atmos emulator exec kubernetes -s dev -- kubectl -n demo get deployment demo
retry:
max_attempts: 3
initial_delay: 10s
backoff_strategy: constant
- command: atmos emulator exec kubernetes -s dev -- kubectl -n demo get service demo
retry:
max_attempts: 3
initial_delay: 10s
backoff_strategy: constant
- atmos helm delete demo -s dev --identity local-k3s
- atmos emulator down kubernetes -s dev