kubernetes-handbook/manifests/test/rolling-update-test/rolling-update-test.yaml

31 lines
556 B
YAML
Raw Normal View History

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
2018-05-04 19:48:54 +08:00
image: harbor-001.jimmysong.io/library/hello:v1
2017-05-10 17:12:34 +08:00
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