forked from CADBOT/docker-livelessons-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
9-5.txt
38 lines (36 loc) · 682 Bytes
/
9-5.txt
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
// kubectl create -f apache-pod.yaml
// kubectl get pods
// kubectl delete pod fe2
// vi apache-rc.yaml
/* apache-rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: frontend-rc
spec:
replicas: 3
selector:
tier: frontend
template:
metadata:
labels:
tier: frontend
spec:
container:
- name: apache
image: httpd
ports:
- containerPort: 80
*/
//terminal
// kubectl create -f apache-rc.yaml
// kubectl get rc
// kubectl get rc frontend-rc
// kubectl get pods
// kubectl delete pod frontend-rc-35aca
// kubectl get pod
// kubectl get pods
// kubectl get rc
// kubectl delete rc frontend-rc
// kubectl get rc
// kubectl get pods