File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
- name : webserver
15
15
image : nginx
16
16
ports :
17
- - containerPort : 80
17
+ - containerPort : 80
Original file line number Diff line number Diff line change 11
11
apiVersion : apps/v1beta1
12
12
kind : Deployment
13
13
name : training-deployment
14
- targetCPUUtilizationPercentage : 10
14
+ targetCPUUtilizationPercentage : 10
Original file line number Diff line number Diff line change 18
18
- name : job-done
19
19
image : busybox
20
20
command : ['sh', '-c', 'echo "job-1 and job-2 completed"']
21
- restartPolicy : Never
21
+ restartPolicy : Never
Original file line number Diff line number Diff line change 9
9
- port : 3000
10
10
protocol : TCP
11
11
nodePort : 30001
12
- type : LoadBalancer
12
+ type : LoadBalancer
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ kubectl logs $pod logging-agent
29
29
### hpa ###
30
30
minikube addons enable heapster
31
31
minikube addons list
32
- ( minikube addons open heapster)
32
+ # minikube addons open heapster
33
33
kubectl create -f ./hpa.yaml
34
34
# wait a couple of minutes until you see TARGETS 0%/50% on the next command
35
35
kubectl get hpa
36
36
kubectl run -i --tty load-generator --image=busybox /bin/sh
37
- while true; do wget -q -O- http://http:// 192.168.99.100:30001/; done
37
+ while true; do wget -q -O- http://192.168.99.100:30001/; done
38
38
# wait a couple of minutes
39
39
kubectl get hpa
40
40
You can’t perform that action at this time.
0 commit comments