Manager commit: commit 807666ba7a13024a218361d963b6c4433b7b45fd Author: Sheng Yang <sheng@yasker.org> Date: Fri Aug 10 21:57:07 2018 -0700 Update image to rancher/longhorn-manager:v0.3-rc4 Engine image: rancher/longhorn-engine:v0.3-rc4 UI Image: rancher/longhorn-ui:v0.3-rc4
44 lines
848 B
YAML
44 lines
848 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
labels:
|
|
app: flexvol-baseimage
|
|
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:
|
|
driver: rancher.io/longhorn
|
|
options:
|
|
size: 32Mi
|
|
numberOfReplicas: "3"
|
|
staleReplicaTimeout: "20"
|
|
fromBackup: ""
|
|
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
|