2017-12-28 10:44:07 +08:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: test
|
|
|
|
labels:
|
|
|
|
app: test
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: test
|
|
|
|
spec:
|
|
|
|
containers:
|
2018-05-04 19:48:54 +08:00
|
|
|
- image: harbor-001.jimmysong.io/library/centos:7.2.1511
|
2017-12-28 10:44:07 +08:00
|
|
|
name: test
|
|
|
|
command: ["/bin/bash","-c","while true; do sleep 1000; done"]
|
|
|
|
imagePullPolicy: IfNotPresent
|