-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-01.yml
48 lines (48 loc) · 978 Bytes
/
example-01.yml
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
---
apiVersion: v1
kind: Namespace
metadata:
name: example-01
---
apiVersion: k8s.consol.de/v1beta1
kind: NamespaceManager
metadata:
name: example-01
namespace: example-01
spec:
### "namespace" property is optional.
### when it's not provided
### then the name of the NamespaceManager is taken
### which is "example-01"
# namespace: example-01
policies:
- name: delete namespace when TTL elapses
condition:
type: TTL
params:
ttlSeconds: 40
action:
type: DELETE
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-married-secretive-flat-app
namespace: example-01
spec:
replicas: 5
selector:
matchLabels:
app: test-app-01
template:
metadata:
labels:
app: test-app-01
spec:
containers:
- name: main
image: alpine
args:
- "sh"
- "-c"
- "while sleep 10; do echo memory stats:; free; echo; done"