2018-08-04 07:10:50 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
2018-08-11 05:07:05 +00:00
|
|
|
labels:
|
|
|
|
app: flexvol-baseimage
|
2018-08-04 07:10:50 +00:00
|
|
|
name: flexvol-baseimage
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: flexvol-baseimage
|
|
|
|
image: nginx:stable-alpine
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
volumeMounts:
|
|
|
|
- name: flexvol
|
|
|
|
mountPath: /usr/share/nginx/html
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
volumes:
|
|
|
|
- name: flexvol
|
|
|
|
flexVolume:
|
2018-08-11 05:07:05 +00:00
|
|
|
driver: rancher.io/longhorn
|
2018-08-04 07:10:50 +00:00
|
|
|
options:
|
2018-08-11 05:07:05 +00:00
|
|
|
size: 32Mi
|
2018-08-04 07:10:50 +00:00
|
|
|
numberOfReplicas: "3"
|
|
|
|
staleReplicaTimeout: "20"
|
|
|
|
fromBackup: ""
|
2018-08-11 05:07:05 +00:00
|
|
|
baseImage: rancher/longhorn-test:baseimage-ext4
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: flexvol-baseimage
|
|
|
|
name: flexvol-baseimage
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
port: 80
|
|
|
|
targetPort: 80
|
|
|
|
selector:
|
|
|
|
app: flexvol-baseimage
|
|
|
|
type: LoadBalancer
|