Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions addons/openebs/4.4.0/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
image linux-utils docker.io/openebs/linux-utils:4.3.0
image provisioner-localpv docker.io/openebs/provisioner-localpv:4.4.0
436 changes: 436 additions & 0 deletions addons/openebs/4.4.0/install.sh

Large diffs are not rendered by default.

185 changes: 185 additions & 0 deletions addons/openebs/4.4.0/spec/openebs.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
---
# Source: localpv-provisioner/templates/rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: openebs-localpv-provisioner
labels:
chart: localpv-provisioner-4.4.0
heritage: Helm
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
openebs.io/component-name: openebs-localpv-provisioner
---
# Source: localpv-provisioner/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: openebs-localpv-provisioner
labels:
chart: localpv-provisioner-4.4.0
heritage: Helm
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
openebs.io/component-name: openebs-localpv-provisioner
rules:
- apiGroups: ["*"]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["*"]
resources: ["namespaces", "pods", "events", "endpoints"]
verbs: ["*"]
- apiGroups: ["*"]
resources: ["resourcequotas", "limitranges"]
verbs: ["list", "watch"]
- apiGroups: ["*"]
resources: ["storageclasses", "persistentvolumeclaims", "persistentvolumes"]
verbs: ["*"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: [ "get", "list", "create", "update", "delete", "patch"]
- apiGroups: ["openebs.io"]
resources: [ "*"]
verbs: ["*" ]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "create", "update"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
# Source: localpv-provisioner/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: openebs-localpv-provisioner
labels:
chart: localpv-provisioner-4.4.0
heritage: Helm
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
openebs.io/component-name: openebs-localpv-provisioner
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: openebs-localpv-provisioner
subjects:
- kind: ServiceAccount
name: openebs-localpv-provisioner
namespace: __OPENEBS_NAMESPACE__
---
# Source: localpv-provisioner/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: openebs-localpv-provisioner
labels:
chart: localpv-provisioner-4.4.0
heritage: Helm
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
openebs.io/component-name: openebs-localpv-provisioner
spec:
replicas: 1
strategy:
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
template:
metadata:
labels:
chart: localpv-provisioner-4.4.0
heritage: Helm
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
openebs.io/component-name: openebs-localpv-provisioner
name: openebs-localpv-provisioner

openebs.io/logging: "true"
spec:
serviceAccountName: openebs-localpv-provisioner
securityContext:
{}
containers:
- name: openebs-localpv-provisioner
image: "docker.io/openebs/provisioner-localpv:4.4.0"
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
env:
# OPENEBS_IO_K8S_MASTER enables openebs provisioner to connect to K8s
# based on this address. This is ignored if empty.
# This is supported for openebs provisioner version 0.5.2 onwards
#- name: OPENEBS_IO_K8S_MASTER
# value: "http://10.128.0.12:8080"
# OPENEBS_IO_KUBE_CONFIG enables openebs provisioner to connect to K8s
# based on this config. This is ignored if empty.
# This is supported for openebs provisioner version 0.5.2 onwards
#- name: OPENEBS_IO_KUBE_CONFIG
# value: "/home/ubuntu/.kube/config"
- name: OPENEBS_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
# OPENEBS_SERVICE_ACCOUNT provides the service account of this pod as
# environment variable
- name: OPENEBS_SERVICE_ACCOUNT
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName
# OPENEBS_IO_BASE_PATH is the environment variable that provides the
# default base path on the node where host-path PVs will be provisioned.
- name: OPENEBS_IO_ENABLE_ANALYTICS
value: "false"
- name: OPENEBS_IO_BASE_PATH
value: "/var/openebs/local"
- name: OPENEBS_IO_HELPER_IMAGE
value: "docker.io/openebs/linux-utils:4.3.0"
- name: OPENEBS_IO_HELPER_POD_HOST_NETWORK
value: "false"
- name: OPENEBS_IO_INSTALLER_TYPE
value: "localpv-charts-helm"
# LEADER_ELECTION_ENABLED is used to enable/disable leader election. By default
# leader election is enabled.
- name: LEADER_ELECTION_ENABLED
value: "true"
# Process name used for matching is limited to the 15 characters
# present in the pgrep output.
# So fullname can't be used here with pgrep (>15 chars).A regular expression
# that matches the entire command name has to specified.
# Anchor `^` : matches any string that starts with `provisioner-loc`
# `.*`: matches any string that has `provisioner-loc` followed by zero or more char
livenessProbe:
exec:
command:
- sh
- -c
- test `pgrep -c "^provisioner-loc.*"` = 1
initialDelaySeconds: 30
periodSeconds: 60
tolerations:
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 5
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 5
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ${OPENEBS_LOCALPV_STORAGE_CLASS}
annotations:
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: BasePath
value: "/var/openebs/local"
- name: StorageType
value: "hostpath"
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ${OPENEBS_LOCALPV_STORAGE_CLASS}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
6 changes: 6 additions & 0 deletions addons/openebs/4.4.0/spec/tmpl-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace: ${OPENEBS_NAMESPACE}

resources:
- namespace.yaml
- openebs.yaml
- troubleshoot.yaml
4 changes: 4 additions & 0 deletions addons/openebs/4.4.0/spec/tmpl-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: ${OPENEBS_NAMESPACE}
15 changes: 15 additions & 0 deletions addons/openebs/4.4.0/spec/tmpl-troubleshoot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kurl-openebs-supportbundle-spec
labels:
troubleshoot.io/kind: support-bundle
data:
support-bundle-spec: |
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
spec:
collectors:
- logs:
namespace: ${OPENEBS_NAMESPACE}
name: openebs/logs
1 change: 1 addition & 0 deletions web/src/installers/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ module.exports.InstallerVersions = {
],
openebs: [
// cron-openebs-update-4
"4.4.0",
"4.3.0",
"4.2.0",
"4.1.2",
Expand Down