Commit 04cd13d2 by James Oliver Committed by Sheng Yang

Longhorn v0.3.2 release changes

parent eb30b6cf
...@@ -23,12 +23,12 @@ Longhorn is 100% open source software. Project source code is spread across a nu ...@@ -23,12 +23,12 @@ Longhorn is 100% open source software. Project source code is spread across a nu
1. To prevent damage to the Kubernetes cluster, we recommend deleting all Kubernetes workloads using Longhorn volumes (PersistentVolume, PersistentVolumeClaim, StorageClass, Deployment, StatefulSet, DaemonSet, etc). 1. To prevent damage to the Kubernetes cluster, we recommend deleting all Kubernetes workloads using Longhorn volumes (PersistentVolume, PersistentVolumeClaim, StorageClass, Deployment, StatefulSet, DaemonSet, etc).
2. From the `Cluster` tab, click `Launch kubectl` and run this command: 2. [Rancher v2.0.x users only] From the `Cluster` tab, click `Launch kubectl` and run this command:
``` ```
curl -sSfL https://raw.githubusercontent.com/rancher/longhorn-manager/master/deploy/scripts/cleanup.sh | bash curl -sSfL https://raw.githubusercontent.com/rancher/longhorn-manager/master/deploy/scripts/cleanup.sh | bash
``` ```
3. Delete Longhorn App from Rancher UI. This deletes the remaining chart components. 3. From Rancher UI, navigate to `Catalog Apps` tab and delete Longhorn app.
## Troubleshooting ## Troubleshooting
......
...@@ -28,7 +28,7 @@ questions: ...@@ -28,7 +28,7 @@ questions:
required: true required: true
label: Default Storage Class label: Default Storage Class
- variable: ingress.enabled - variable: ingress.enabled
default: "true" default: "false"
description: "Expose app using Layer 7 Load Balancer - ingress" description: "Expose app using Layer 7 Load Balancer - ingress"
type: boolean type: boolean
group: "Services and Load Balancing" group: "Services and Load Balancing"
...@@ -42,13 +42,14 @@ questions: ...@@ -42,13 +42,14 @@ questions:
required: true required: true
label: Layer 7 Load Balancer Hostname label: Layer 7 Load Balancer Hostname
- variable: service.ui.type - variable: service.ui.type
default: "NodePort" default: "Rancher-Proxy"
description: "Define Longhorn UI service type" description: "Define Longhorn UI service type"
type: enum type: enum
options: options:
- "ClusterIP" - "ClusterIP"
- "NodePort" - "NodePort"
- "LoadBalancer" - "LoadBalancer"
- "Rancher-Proxy"
label: Longhorn UI Service label: Longhorn UI Service
show_if: "ingress.enabled=false" show_if: "ingress.enabled=false"
group: "Services and Load Balancing" group: "Services and Load Balancing"
......
...@@ -10,7 +10,7 @@ rules: ...@@ -10,7 +10,7 @@ rules:
verbs: verbs:
- "*" - "*"
- apiGroups: [""] - apiGroups: [""]
resources: ["pods", "events", "persistentvolumes", "persistentvolumeclaims", "nodes", "proxy/nodes", "pods/log", "secrets", "services"] resources: ["pods", "events", "persistentvolumes", "persistentvolumeclaims", "nodes", "proxy/nodes", "pods/log", "secrets", "services", "endpoints"]
verbs: ["*"] verbs: ["*"]
- apiGroups: [""] - apiGroups: [""]
resources: ["namespaces"] resources: ["namespaces"]
......
...@@ -20,7 +20,7 @@ spec: ...@@ -20,7 +20,7 @@ spec:
image: "{{ .Values.image.longhorn.ui }}:{{ .Values.image.longhorn.uiTag }}" image: "{{ .Values.image.longhorn.ui }}:{{ .Values.image.longhorn.uiTag }}"
ports: ports:
- containerPort: 8000 - containerPort: 8000
name: longhorn-ui name: http
env: env:
- name: LONGHORN_MANAGER_IP - name: LONGHORN_MANAGER_IP
value: "http://longhorn-backend:9500" value: "http://longhorn-backend:9500"
...@@ -30,16 +30,23 @@ apiVersion: v1 ...@@ -30,16 +30,23 @@ apiVersion: v1
metadata: metadata:
labels: labels:
app: longhorn-ui app: longhorn-ui
{{- if eq .Values.service.ui.type "Rancher-Proxy" }}
kubernetes.io/cluster-service: "true"
{{- end }}
name: longhorn-frontend name: longhorn-frontend
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
{{- if eq .Values.service.ui.type "Rancher-Proxy" }}
type: ClusterIP
{{- else }}
type: {{ .Values.service.ui.type }} type: {{ .Values.service.ui.type }}
{{- end }}
selector: selector:
app: longhorn-ui app: longhorn-ui
ports: ports:
- name: longhorn-ui - name: http
port: 80 port: 80
targetPort: longhorn-ui targetPort: http
{{- if .Values.service.ui.nodePort }} {{- if .Values.service.ui.nodePort }}
nodePort: {{ .Values.service.ui.nodePort }} nodePort: {{ .Values.service.ui.nodePort }}
{{- end }} {{- end }}
apiVersion: batch/v1
kind: Job
metadata:
annotations:
"helm.sh/hook": pre-delete
"helm.sh/hook-delete-policy": hook-succeeded
name: longhorn-uninstall
namespace: {{ .Release.Namespace }}
spec:
activeDeadlineSeconds: 900
backoffLimit: 1
template:
metadata:
name: longhorn-uninstall
spec:
containers:
- name: longhorn-uninstall
image: "{{ .Values.image.longhorn.manager }}:{{ .Values.image.longhorn.managerTag }}"
imagePullPolicy: Always
command:
- longhorn-manager
- uninstall
- --force
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
restartPolicy: OnFailure
serviceAccountName: longhorn-service-account
...@@ -6,9 +6,9 @@ image: ...@@ -6,9 +6,9 @@ image:
engine: rancher/longhorn-engine engine: rancher/longhorn-engine
engineTag: v0.3.0 engineTag: v0.3.0
manager: rancher/longhorn-manager manager: rancher/longhorn-manager
managerTag: v0.3.1 managerTag: v0.3.2
ui: rancher/longhorn-ui ui: rancher/longhorn-ui
uiTag: v0.3.1 uiTag: v0.3.2
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
service: service:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment