File tree 1 file changed +61
-0
lines changed
1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : example-okd
5
+ spec :
6
+ revisionHistoryLimit : 0
7
+ replicas : 5
8
+ selector :
9
+ matchLabels :
10
+ app : example-okd
11
+ template :
12
+ metadata :
13
+ labels :
14
+ app : example-okd
15
+ svc : example-okd
16
+ spec :
17
+ containers :
18
+ - name : main
19
+ image : ondrejsika/training-example-okd
20
+ ports :
21
+ - name : http
22
+ containerPort : 8000
23
+ resources :
24
+ requests :
25
+ cpu : 10m
26
+ memory : 10Mi
27
+ limits :
28
+ memory : 20Mi
29
+ cpu : 20m
30
+ securityContext :
31
+ allowPrivilegeEscalation : false
32
+ capabilities :
33
+ drop :
34
+ - ALL
35
+ runAsNonRoot : true
36
+ seccompProfile :
37
+ type : RuntimeDefault
38
+ - name : metrics
39
+ image : sikalabs/slu:v0.40.0
40
+ command :
41
+ - /bin/sh
42
+ - -c
43
+ - slu metrics-generator server --port 8001
44
+ ports :
45
+ - name : metrics
46
+ containerPort : 8001
47
+ resources :
48
+ requests :
49
+ cpu : 10m
50
+ memory : 10Mi
51
+ limits :
52
+ memory : 20Mi
53
+ cpu : 20m
54
+ securityContext :
55
+ allowPrivilegeEscalation : false
56
+ capabilities :
57
+ drop :
58
+ - ALL
59
+ runAsNonRoot : true
60
+ seccompProfile :
61
+ type : RuntimeDefault
You can’t perform that action at this time.
0 commit comments