1.能夠先RC再Service ,或者先Service再RC來創建kubernetes集羣html
2.經過service提供集羣,nodeport是對外的端口,port和clusterIP是內部訪問端口,targetport是pod上的端口也能夠理解爲容器的端口。node
3.將各個主機的nodeport來作一個負載均衡從而來訪問service,或者經過ingress來對外訪問。負載均衡
4.kubernetes數據卷:code
kind : ReplicationController .... spec : .... template : ... spec : volumes : - name : "Persistent-storage" //定義卷名 hostPath : path : "/data" //宿主機路徑 containers: ... volumeMounts : - name : "Persistent-storage" //對應Pod的卷名 mountPath : "/data" //容器掛載路徑
5.集羣的逐步擴容,一步步的加pod。htm
書籍:Kubernetes權威指南--從Docker到Kubernetes實踐全接觸get