新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pi-web
|
||||
labels:
|
||||
kiamol: ch07-lab
|
||||
spec:
|
||||
ports:
|
||||
- port: 8070
|
||||
targetPort: 80
|
||||
name: http
|
||||
selector:
|
||||
app: pi-web
|
||||
type: LoadBalancer
|
||||
23
learn/learn-kubernetes-master/kiamol/ch07/lab/pi/web.yaml
Normal file
23
learn/learn-kubernetes-master/kiamol/ch07/lab/pi/web.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pi-web
|
||||
labels:
|
||||
kiamol: ch07-lab
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pi-web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pi-web
|
||||
spec:
|
||||
containers:
|
||||
- image: kiamol/ch05-pi
|
||||
command: ["/scripts/startup.sh"]
|
||||
name: web
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
Reference in New Issue
Block a user