2017-05-04 20:05:19 +08:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: nginx-dm
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: nginx
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: nginx
|
2018-05-04 19:48:54 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/nginx:1.9
|
2017-05-04 20:05:19 +08:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
volumeMounts:
|
|
|
|
- name: gluster-dev-volume
|
|
|
|
mountPath: "/usr/share/nginx/html"
|
|
|
|
volumes:
|
|
|
|
- name: gluster-dev-volume
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: glusterfs-nginx
|