Update longhorn from upstream
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
90b39872e2
commit
d1ef859440
17 changed files with 335 additions and 66 deletions
|
|
@ -20,7 +20,7 @@ mv files/longhorn{,.old}
|
||||||
mv generated files/longhorn
|
mv generated files/longhorn
|
||||||
echo -e "---\nstorage_longhorn_files_list:" > vars/longhorn.yaml
|
echo -e "---\nstorage_longhorn_files_list:" > vars/longhorn.yaml
|
||||||
cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "\2"|' >> vars/longhorn.yaml
|
cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "\2"|' >> vars/longhorn.yaml
|
||||||
sed '/numberOfReplicas/ s/3/2/' -i files/longhorn/longhorn-StorageClass.yaml
|
sed '/numberOfReplicas/ s/3/2/' -i files/longhorn/longhorn-storageclass-ConfigMap.yaml
|
||||||
sed '/default-data-path/ s|:.*$|: "/var/lib/longhorn/"|' -i files/longhorn/longhorn-default-setting-ConfigMap.yaml
|
sed '/default-data-path/ s|:.*$|: "/var/lib/longhorn/"|' -i files/longhorn/longhorn-default-setting-ConfigMap.yaml
|
||||||
rm -fr files/longhorn.old generated.log longhorn.yaml
|
rm -fr files/longhorn.old generated.log longhorn.yaml
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,6 +14,37 @@ spec:
|
||||||
- lhei
|
- lhei
|
||||||
singular: engineimage
|
singular: engineimage
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
subresources:
|
- name: v1beta1
|
||||||
status: {}
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: State
|
||||||
|
type: string
|
||||||
|
description: State of the engine image
|
||||||
|
jsonPath: .status.state
|
||||||
|
- name: Image
|
||||||
|
type: string
|
||||||
|
description: The Longhorn engine image
|
||||||
|
jsonPath: .spec.image
|
||||||
|
- name: RefCount
|
||||||
|
type: integer
|
||||||
|
description: Number of volumes are using the engine image
|
||||||
|
jsonPath: .status.refCount
|
||||||
|
- name: BuildDate
|
||||||
|
type: date
|
||||||
|
description: The build date of the engine image
|
||||||
|
jsonPath: .status.buildDate
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,6 +14,37 @@ spec:
|
||||||
- lhe
|
- lhe
|
||||||
singular: engine
|
singular: engine
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
subresources:
|
- name: v1beta1
|
||||||
status: {}
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: State
|
||||||
|
type: string
|
||||||
|
description: The current state of the engine
|
||||||
|
jsonPath: .status.currentState
|
||||||
|
- name: Node
|
||||||
|
type: string
|
||||||
|
description: The node that the engine is on
|
||||||
|
jsonPath: .spec.nodeID
|
||||||
|
- name: InstanceManager
|
||||||
|
type: string
|
||||||
|
description: The instance manager of the engine
|
||||||
|
jsonPath: .status.instanceManagerName
|
||||||
|
- name: Image
|
||||||
|
type: string
|
||||||
|
description: The current image of the engine
|
||||||
|
jsonPath: .status.currentImage
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,6 +14,33 @@ spec:
|
||||||
- lhim
|
- lhim
|
||||||
singular: instancemanager
|
singular: instancemanager
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
subresources:
|
- name: v1beta1
|
||||||
status: {}
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: State
|
||||||
|
type: string
|
||||||
|
description: The state of the instance manager
|
||||||
|
jsonPath: .status.currentState
|
||||||
|
- name: Type
|
||||||
|
type: string
|
||||||
|
description: The type of the instance manager (engine or replica)
|
||||||
|
jsonPath: .spec.type
|
||||||
|
- name: Node
|
||||||
|
type: string
|
||||||
|
description: The node that the instance manager is running on
|
||||||
|
jsonPath: .spec.nodeID
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
kind: StorageClass
|
|
||||||
apiVersion: storage.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: longhorn
|
|
||||||
provisioner: driver.longhorn.io
|
|
||||||
allowVolumeExpansion: true
|
|
||||||
parameters:
|
|
||||||
numberOfReplicas: "2"
|
|
||||||
staleReplicaTimeout: "2880"
|
|
||||||
fromBackup: ""
|
|
||||||
# diskSelector: "ssd,fast"
|
|
||||||
# nodeSelector: "storage,fast"
|
|
||||||
# recurringJobs: '[{"name":"snap", "task":"snapshot", "cron":"*/1 * * * *", "retain":1},
|
|
||||||
# {"name":"backup", "task":"backup", "cron":"*/2 * * * *", "retain":1,
|
|
||||||
# "labels": {"interval":"2m"}}]'
|
|
||||||
|
|
@ -7,6 +7,7 @@ data:
|
||||||
default-setting.yaml: |-
|
default-setting.yaml: |-
|
||||||
backup-target:
|
backup-target:
|
||||||
backup-target-credential-secret:
|
backup-target-credential-secret:
|
||||||
|
allow-recurring-job-while-volume-detached:
|
||||||
create-default-disk-labeled-nodes:
|
create-default-disk-labeled-nodes:
|
||||||
default-data-path: "/var/lib/longhorn/"
|
default-data-path: "/var/lib/longhorn/"
|
||||||
replica-soft-anti-affinity:
|
replica-soft-anti-affinity:
|
||||||
|
|
@ -14,14 +15,23 @@ data:
|
||||||
storage-minimal-available-percentage:
|
storage-minimal-available-percentage:
|
||||||
upgrade-checker:
|
upgrade-checker:
|
||||||
default-replica-count:
|
default-replica-count:
|
||||||
|
default-data-locality:
|
||||||
guaranteed-engine-cpu:
|
guaranteed-engine-cpu:
|
||||||
default-longhorn-static-storage-class:
|
default-longhorn-static-storage-class:
|
||||||
backupstore-poll-interval:
|
backupstore-poll-interval:
|
||||||
taint-toleration:
|
taint-toleration:
|
||||||
priority-class:
|
priority-class:
|
||||||
registry-secret:
|
|
||||||
auto-salvage:
|
auto-salvage:
|
||||||
|
auto-delete-pod-when-volume-detached-unexpectedly:
|
||||||
disable-scheduling-on-cordoned-node:
|
disable-scheduling-on-cordoned-node:
|
||||||
replica-zone-soft-anti-affinity:
|
replica-zone-soft-anti-affinity:
|
||||||
volume-attachment-recovery-policy:
|
volume-attachment-recovery-policy:
|
||||||
|
node-down-pod-deletion-policy:
|
||||||
|
allow-node-drain-with-last-healthy-replica:
|
||||||
mkfs-ext4-parameters:
|
mkfs-ext4-parameters:
|
||||||
|
disable-replica-rebuild:
|
||||||
|
replica-replenishment-wait-interval:
|
||||||
|
disable-revision-counter:
|
||||||
|
system-managed-pods-image-pull-policy:
|
||||||
|
allow-volume-creation-with-degraded-availability:
|
||||||
|
auto-cleanup-system-generated-snapshot:
|
||||||
|
|
|
||||||
|
|
@ -15,18 +15,18 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-longhorn-manager
|
- name: wait-longhorn-manager
|
||||||
image: longhornio/longhorn-manager:v1.0.2
|
image: longhornio/longhorn-manager:v1.1.0
|
||||||
command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" http://longhorn-backend:9500/v1) != "200" ]; do echo waiting; sleep 2; done']
|
command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" http://longhorn-backend:9500/v1) != "200" ]; do echo waiting; sleep 2; done']
|
||||||
containers:
|
containers:
|
||||||
- name: longhorn-driver-deployer
|
- name: longhorn-driver-deployer
|
||||||
image: longhornio/longhorn-manager:v1.0.2
|
image: longhornio/longhorn-manager:v1.1.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- longhorn-manager
|
- longhorn-manager
|
||||||
- -d
|
- -d
|
||||||
- deploy-driver
|
- deploy-driver
|
||||||
- --manager-image
|
- --manager-image
|
||||||
- longhornio/longhorn-manager:v1.0.2
|
- longhornio/longhorn-manager:v1.1.0
|
||||||
- --manager-url
|
- --manager-url
|
||||||
- http://longhorn-backend:9500/v1
|
- http://longhorn-backend:9500/v1
|
||||||
env:
|
env:
|
||||||
|
|
@ -48,13 +48,15 @@ spec:
|
||||||
# For AirGap Installation
|
# For AirGap Installation
|
||||||
# Replace PREFIX with your private registery
|
# Replace PREFIX with your private registery
|
||||||
#- name: CSI_ATTACHER_IMAGE
|
#- name: CSI_ATTACHER_IMAGE
|
||||||
# value: PREFIX/csi-attacher:v2.0.0
|
# value: PREFIX/csi-attacher:v2.2.1-lh1
|
||||||
#- name: CSI_PROVISIONER_IMAGE
|
#- name: CSI_PROVISIONER_IMAGE
|
||||||
# value: PREFIX/csi-provisioner:v1.4.0
|
# value: PREFIX/csi-provisioner:v1.6.0-lh1
|
||||||
#- name: CSI_NODE_DRIVER_REGISTRAR_IMAGE
|
#- name: CSI_NODE_DRIVER_REGISTRAR_IMAGE
|
||||||
# value: PREFIX/csi-node-driver-registrar:v1.2.0
|
# value: PREFIX/csi-node-driver-registrar:v1.2.0-lh1
|
||||||
#- name: CSI_RESIZER_IMAGE
|
#- name: CSI_RESIZER_IMAGE
|
||||||
# value: PREFIX/csi-resizer:v0.3.0
|
# value: PREFIX/csi-resizer:v0.5.1-lh1
|
||||||
|
#- name: CSI_SNAPSHOTTER_IMAGE
|
||||||
|
# value: PREFIX/csi-snapshotter:v2.1.1-lh1
|
||||||
# Manually specify number of CSI attacher replicas
|
# Manually specify number of CSI attacher replicas
|
||||||
#- name: CSI_ATTACHER_REPLICA_COUNT
|
#- name: CSI_ATTACHER_REPLICA_COUNT
|
||||||
# value: "3"
|
# value: "3"
|
||||||
|
|
@ -63,6 +65,8 @@ spec:
|
||||||
# value: "3"
|
# value: "3"
|
||||||
#- name: CSI_RESIZER_REPLICA_COUNT
|
#- name: CSI_RESIZER_REPLICA_COUNT
|
||||||
# value: "3"
|
# value: "3"
|
||||||
|
#- name: CSI_SNAPSHOTTER_REPLICA_COUNT
|
||||||
|
# value: "3"
|
||||||
#imagePullSecrets:
|
#imagePullSecrets:
|
||||||
#- name:
|
#- name:
|
||||||
serviceAccountName: longhorn-service-account
|
serviceAccountName: longhorn-service-account
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: longhorn-manager
|
- name: longhorn-manager
|
||||||
image: longhornio/longhorn-manager:v1.0.2
|
image: longhornio/longhorn-manager:v1.1.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
@ -25,11 +25,13 @@ spec:
|
||||||
- -d
|
- -d
|
||||||
- daemon
|
- daemon
|
||||||
- --engine-image
|
- --engine-image
|
||||||
- longhornio/longhorn-engine:v1.0.2
|
- longhornio/longhorn-engine:v1.1.0
|
||||||
- --instance-manager-image
|
- --instance-manager-image
|
||||||
- longhornio/longhorn-instance-manager:v1_20200514
|
- longhornio/longhorn-instance-manager:v1_20201216
|
||||||
|
- --share-manager-image
|
||||||
|
- longhornio/longhorn-share-manager:v1_20201204
|
||||||
- --manager-image
|
- --manager-image
|
||||||
- longhornio/longhorn-manager:v1.0.2
|
- longhornio/longhorn-manager:v1.1.0
|
||||||
- --service-account
|
- --service-account
|
||||||
- longhorn-service-account
|
- longhorn-service-account
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -43,9 +45,6 @@ spec:
|
||||||
mountPath: /host/dev/
|
mountPath: /host/dev/
|
||||||
- name: proc
|
- name: proc
|
||||||
mountPath: /host/proc/
|
mountPath: /host/proc/
|
||||||
- name: varrun
|
|
||||||
mountPath: /var/run/
|
|
||||||
mountPropagation: Bidirectional
|
|
||||||
- name: longhorn
|
- name: longhorn
|
||||||
mountPath: /var/lib/longhorn/
|
mountPath: /var/lib/longhorn/
|
||||||
mountPropagation: Bidirectional
|
mountPropagation: Bidirectional
|
||||||
|
|
@ -74,9 +73,6 @@ spec:
|
||||||
- name: proc
|
- name: proc
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /proc/
|
path: /proc/
|
||||||
- name: varrun
|
|
||||||
hostPath:
|
|
||||||
path: /var/run/
|
|
||||||
- name: longhorn
|
- name: longhorn
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/longhorn/
|
path: /var/lib/longhorn/
|
||||||
|
|
|
||||||
|
|
@ -21,19 +21,26 @@ rules:
|
||||||
- apiGroups: ["batch"]
|
- apiGroups: ["batch"]
|
||||||
resources: ["jobs", "cronjobs"]
|
resources: ["jobs", "cronjobs"]
|
||||||
verbs: ["*"]
|
verbs: ["*"]
|
||||||
|
- apiGroups: ["policy"]
|
||||||
|
resources: ["poddisruptionbudgets"]
|
||||||
|
verbs: ["*"]
|
||||||
- apiGroups: ["scheduling.k8s.io"]
|
- apiGroups: ["scheduling.k8s.io"]
|
||||||
resources: ["priorityclasses"]
|
resources: ["priorityclasses"]
|
||||||
verbs: ["watch", "list"]
|
verbs: ["watch", "list"]
|
||||||
- apiGroups: ["storage.k8s.io"]
|
- apiGroups: ["storage.k8s.io"]
|
||||||
resources: ["storageclasses", "volumeattachments", "csinodes", "csidrivers"]
|
resources: ["storageclasses", "volumeattachments", "csinodes", "csidrivers"]
|
||||||
verbs: ["*"]
|
verbs: ["*"]
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents", "volumesnapshotcontents/status"]
|
||||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
verbs: ["*"]
|
||||||
- apiGroups: ["longhorn.io"]
|
- apiGroups: ["longhorn.io"]
|
||||||
resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings",
|
resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings",
|
||||||
"engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status"]
|
"engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status",
|
||||||
|
"sharemanagers", "sharemanagers/status"]
|
||||||
verbs: ["*"]
|
verbs: ["*"]
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
verbs: ["*"]
|
verbs: ["*"]
|
||||||
|
- apiGroups: ["metrics.k8s.io"]
|
||||||
|
resources: ["pods", "nodes"]
|
||||||
|
verbs: ["get", "list"]
|
||||||
|
|
|
||||||
24
files/longhorn/longhorn-storageclass-ConfigMap.yaml
Normal file
24
files/longhorn/longhorn-storageclass-ConfigMap.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: longhorn-storageclass
|
||||||
|
namespace: longhorn-system
|
||||||
|
data:
|
||||||
|
storageclass.yaml: |
|
||||||
|
kind: StorageClass
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: longhorn
|
||||||
|
provisioner: driver.longhorn.io
|
||||||
|
allowVolumeExpansion: true
|
||||||
|
reclaimPolicy: Delete
|
||||||
|
volumeBindingMode: Immediate
|
||||||
|
parameters:
|
||||||
|
numberOfReplicas: "2"
|
||||||
|
staleReplicaTimeout: "2880"
|
||||||
|
fromBackup: ""
|
||||||
|
# diskSelector: "ssd,fast"
|
||||||
|
# nodeSelector: "storage,fast"
|
||||||
|
# recurringJobs: '[{"name":"snap", "task":"snapshot", "cron":"*/1 * * * *", "retain":1},
|
||||||
|
# {"name":"backup", "task":"backup", "cron":"*/2 * * * *", "retain":1,
|
||||||
|
# "labels": {"interval":"2m"}}]'
|
||||||
|
|
@ -17,7 +17,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: longhorn-ui
|
- name: longhorn-ui
|
||||||
image: longhornio/longhorn-ui:v1.0.2
|
image: longhornio/longhorn-ui:v1.1.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,6 +14,33 @@ spec:
|
||||||
- lhn
|
- lhn
|
||||||
singular: node
|
singular: node
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
subresources:
|
- name: v1beta1
|
||||||
status: {}
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: Ready
|
||||||
|
type: string
|
||||||
|
description: Indicate whether the node is ready
|
||||||
|
jsonPath: .status.conditions['Ready']['status']
|
||||||
|
- name: AllowScheduling
|
||||||
|
type: boolean
|
||||||
|
description: Indicate whether the user disabled/enabled replica scheduling for the node
|
||||||
|
jsonPath: .spec.allowScheduling
|
||||||
|
- name: Schedulable
|
||||||
|
type: string
|
||||||
|
description: Indicate whether Longhorn can schedule replicas on the node
|
||||||
|
jsonPath: .status.conditions['Schedulable']['status']
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,6 +14,41 @@ spec:
|
||||||
- lhr
|
- lhr
|
||||||
singular: replica
|
singular: replica
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
subresources:
|
- name: v1beta1
|
||||||
status: {}
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: State
|
||||||
|
type: string
|
||||||
|
description: The current state of the replica
|
||||||
|
jsonPath: .status.currentState
|
||||||
|
- name: Node
|
||||||
|
type: string
|
||||||
|
description: The node that the replica is on
|
||||||
|
jsonPath: .spec.nodeID
|
||||||
|
- name: Disk
|
||||||
|
type: string
|
||||||
|
description: The disk that the replica is on
|
||||||
|
jsonPath: .spec.diskID
|
||||||
|
- name: InstanceManager
|
||||||
|
type: string
|
||||||
|
description: The instance manager of the replica
|
||||||
|
jsonPath: .status.instanceManagerName
|
||||||
|
- name: Image
|
||||||
|
type: string
|
||||||
|
description: The current image of the replica
|
||||||
|
jsonPath: .status.currentImage
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,4 +14,18 @@ spec:
|
||||||
- lhs
|
- lhs
|
||||||
singular: setting
|
singular: setting
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
|
- name: v1beta1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: Value
|
||||||
|
type: string
|
||||||
|
description: The value of the setting
|
||||||
|
jsonPath: .value
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
longhorn-manager: ShareManager
|
||||||
|
name: sharemanagers.longhorn.io
|
||||||
|
spec:
|
||||||
|
group: longhorn.io
|
||||||
|
names:
|
||||||
|
kind: ShareManager
|
||||||
|
listKind: ShareManagerList
|
||||||
|
plural: sharemanagers
|
||||||
|
shortNames:
|
||||||
|
- lhsm
|
||||||
|
singular: sharemanager
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1beta1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: State
|
||||||
|
type: string
|
||||||
|
description: The state of the share manager
|
||||||
|
jsonPath: .status.state
|
||||||
|
- name: Node
|
||||||
|
type: string
|
||||||
|
description: The node that the share manager is owned by
|
||||||
|
jsonPath: .status.ownerID
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -14,6 +14,41 @@ spec:
|
||||||
- lhv
|
- lhv
|
||||||
singular: volume
|
singular: volume
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1beta1
|
versions:
|
||||||
subresources:
|
- name: v1beta1
|
||||||
status: {}
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: State
|
||||||
|
type: string
|
||||||
|
description: The state of the volume
|
||||||
|
jsonPath: .status.state
|
||||||
|
- name: Robustness
|
||||||
|
type: string
|
||||||
|
description: The robustness of the volume
|
||||||
|
jsonPath: .status.robustness
|
||||||
|
- name: Scheduled
|
||||||
|
type: string
|
||||||
|
description: The scheduled condition of the volume
|
||||||
|
jsonPath: .status.conditions['scheduled']['status']
|
||||||
|
- name: Size
|
||||||
|
type: string
|
||||||
|
description: The size of the volume
|
||||||
|
jsonPath: .spec.size
|
||||||
|
- name: Node
|
||||||
|
type: string
|
||||||
|
description: The node that the volume is currently attaching to
|
||||||
|
jsonPath: .status.currentNodeID
|
||||||
|
- name: Age
|
||||||
|
type: date
|
||||||
|
jsonPath: .metadata.creationTimestamp
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,14 @@ storage_longhorn_files_list:
|
||||||
- "engineimages.longhorn.io-CustomResourceDefinition.yaml"
|
- "engineimages.longhorn.io-CustomResourceDefinition.yaml"
|
||||||
- "nodes.longhorn.io-CustomResourceDefinition.yaml"
|
- "nodes.longhorn.io-CustomResourceDefinition.yaml"
|
||||||
- "instancemanagers.longhorn.io-CustomResourceDefinition.yaml"
|
- "instancemanagers.longhorn.io-CustomResourceDefinition.yaml"
|
||||||
|
- "sharemanagers.longhorn.io-CustomResourceDefinition.yaml"
|
||||||
- "longhorn-default-setting-ConfigMap.yaml"
|
- "longhorn-default-setting-ConfigMap.yaml"
|
||||||
- "longhorn-psp-PodSecurityPolicy.yaml"
|
- "longhorn-psp-PodSecurityPolicy.yaml"
|
||||||
- "longhorn-psp-role-Role.yaml"
|
- "longhorn-psp-role-Role.yaml"
|
||||||
- "longhorn-psp-binding-RoleBinding.yaml"
|
- "longhorn-psp-binding-RoleBinding.yaml"
|
||||||
|
- "longhorn-storageclass-ConfigMap.yaml"
|
||||||
- "longhorn-manager-DaemonSet.yaml"
|
- "longhorn-manager-DaemonSet.yaml"
|
||||||
- "longhorn-backend-Service.yaml"
|
- "longhorn-backend-Service.yaml"
|
||||||
- "longhorn-ui-Deployment.yaml"
|
- "longhorn-ui-Deployment.yaml"
|
||||||
- "longhorn-frontend-Service.yaml"
|
- "longhorn-frontend-Service.yaml"
|
||||||
- "longhorn-driver-deployer-Deployment.yaml"
|
- "longhorn-driver-deployer-Deployment.yaml"
|
||||||
- "longhorn-StorageClass.yaml"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue