2017-05-10 17:12:34 +08:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2017-05-11 15:25:11 +08:00
|
|
|
name: rolling-update-test
|
2017-05-10 17:12:34 +08:00
|
|
|
spec:
|
|
|
|
replicas: 3
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: rolling-update-test
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: rolling-update-test
|
|
|
|
image: sz-pg-oam-docker-hub-001.tendcloud.com/library/hello:v1
|
|
|
|
ports:
|
|
|
|
- containerPort: 9090
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: rolling-update-test
|
|
|
|
labels:
|
|
|
|
app: rolling-update-test
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 9090
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
|
|
|
selector:
|
|
|
|
app: rolling-update-test
|