Skip to content

Commit

Permalink
Create new OpenEBS version
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored and github-actions[bot] committed Nov 7, 2024
1 parent 2796032 commit a4a1425
Show file tree
Hide file tree
Showing 10 changed files with 661 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/openebs/4.1.1/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
image linux-utils openebs/linux-utils:4.1.0
image provisioner-localpv openebs/provisioner-localpv:4.1.1
436 changes: 436 additions & 0 deletions addons/openebs/4.1.1/install.sh

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions addons/openebs/4.1.1/spec/openebs.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
---
# Source: localpv-provisioner/templates/rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: openebs-localpv-provisioner
labels:
chart: localpv-provisioner-4.1.1
heritage: Helm
openebs.io/version: "4.1.1"
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.1.1
heritage: Helm
openebs.io/version: "4.1.1"
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.1.1
heritage: Helm
openebs.io/version: "4.1.1"
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.1.1
heritage: Helm
openebs.io/version: "4.1.1"
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.1.1
heritage: Helm
openebs.io/version: "4.1.1"
app: localpv-provisioner
release: openebs
component: "localpv-provisioner"
openebs.io/component-name: openebs-localpv-provisioner
name: openebs-localpv-provisioner
spec:
serviceAccountName: openebs-localpv-provisioner
securityContext:
{}
containers:
- name: openebs-localpv-provisioner
image: "openebs/provisioner-localpv:4.1.1"
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: "openebs/linux-utils:4.1.0"
- 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
Empty file.
14 changes: 14 additions & 0 deletions addons/openebs/4.1.1/spec/storage/tmpl-localpv-storage-class.yaml
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.1.1/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.1.1/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.1.1/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 @@ -557,6 +557,7 @@ module.exports.InstallerVersions = {
],
openebs: [
// cron-openebs-update-4
"4.1.1",
"4.1.0",
"4.0.0",
// cron-openebs-update-3
Expand Down

0 comments on commit a4a1425

Please sign in to comment.