File tree Expand file tree Collapse file tree 4 files changed +104
-0
lines changed Expand file tree Collapse file tree 4 files changed +104
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : podinfo
5
+ labels :
6
+ app : podinfo
7
+ spec :
8
+ minReadySeconds : 5
9
+ revisionHistoryLimit : 5
10
+ progressDeadlineSeconds : 60
11
+ strategy :
12
+ rollingUpdate :
13
+ maxUnavailable : 0
14
+ type : RollingUpdate
15
+ selector :
16
+ matchLabels :
17
+ app : podinfo
18
+ template :
19
+ metadata :
20
+ annotations :
21
+ prometheus.io/scrape : " true"
22
+ labels :
23
+ app : podinfo
24
+ spec :
25
+ containers :
26
+ - name : podinfod
27
+ image : quay.io/stefanprodan/podinfo:2.0.0-beta.1
28
+ imagePullPolicy : IfNotPresent
29
+ ports :
30
+ - containerPort : 9898
31
+ name : http
32
+ protocol : TCP
33
+ command :
34
+ - ./podinfo
35
+ - --port=9898
36
+ - --level=info
37
+ - --random-delay=false
38
+ - --random-error=false
39
+ env :
40
+ - name : PODINFO_UI_COLOR
41
+ value : blue
42
+ livenessProbe :
43
+ exec :
44
+ command :
45
+ - podcli
46
+ - check
47
+ - http
48
+ - localhost:9898/healthz
49
+ initialDelaySeconds : 5
50
+ timeoutSeconds : 5
51
+ readinessProbe :
52
+ exec :
53
+ command :
54
+ - podcli
55
+ - check
56
+ - http
57
+ - localhost:9898/readyz
58
+ initialDelaySeconds : 5
59
+ timeoutSeconds : 5
60
+ resources :
61
+ limits :
62
+ cpu : 2000m
63
+ memory : 512Mi
64
+ requests :
65
+ cpu : 100m
66
+ memory : 64Mi
Original file line number Diff line number Diff line change
1
+ apiVersion : autoscaling/v2beta1
2
+ kind : HorizontalPodAutoscaler
3
+ metadata :
4
+ name : podinfo
5
+ spec :
6
+ scaleTargetRef :
7
+ apiVersion : apps/v1
8
+ kind : Deployment
9
+ name : podinfo
10
+ minReplicas : 2
11
+ maxReplicas : 4
12
+ metrics :
13
+ - type : Resource
14
+ resource :
15
+ name : cpu
16
+ # scale up if usage is above
17
+ # 99% of the requested CPU (100m)
18
+ targetAverageUtilization : 99
Original file line number Diff line number Diff line change
1
+ resources :
2
+ - hpa.yaml
3
+ - deployment.yaml
4
+ - service.yaml
5
+
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ name : podinfo
5
+ labels :
6
+ app : podinfo
7
+ spec :
8
+ type : ClusterIP
9
+ selector :
10
+ app : podinfo
11
+ ports :
12
+ - name : http
13
+ port : 9898
14
+ protocol : TCP
15
+ targetPort : http
You can’t perform that action at this time.
0 commit comments