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 Sep 27, 2023
1 parent 853e6ed commit b72d97b
Show file tree
Hide file tree
Showing 11 changed files with 1,044 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/openebs/3.9.0/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
image linux-utils openebs/linux-utils:3.4.0
image provisioner-localpv openebs/provisioner-localpv:3.4.0
449 changes: 449 additions & 0 deletions addons/openebs/3.9.0/install.sh

Large diffs are not rendered by default.

383 changes: 383 additions & 0 deletions addons/openebs/3.9.0/spec/crds/crds.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions addons/openebs/3.9.0/spec/crds/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- crds.yaml
178 changes: 178 additions & 0 deletions addons/openebs/3.9.0/spec/openebs.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# Source: openebs/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: openebs
labels:
app: openebs
chart: openebs-3.9.0
release: openebs
heritage: Helm
---
# Source: openebs/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: openebs
labels:
app: openebs
chart: openebs-3.9.0
release: openebs
heritage: Helm
rules:
- apiGroups: ["*"]
resources: ["nodes", "nodes/proxy"]
verbs: ["*"]
- apiGroups: ["*"]
resources: ["namespaces", "services", "pods", "pods/exec", "deployments", "deployments/finalizers", "replicationcontrollers", "replicasets", "events", "endpoints", "configmaps", "secrets", "jobs", "cronjobs" ]
verbs: ["*"]
- apiGroups: ["*"]
resources: ["statefulsets", "daemonsets"]
verbs: ["*"]
- apiGroups: ["*"]
resources: ["resourcequotas", "limitranges"]
verbs: ["list", "watch"]
- apiGroups: ["*"]
resources: ["ingresses", "horizontalpodautoscalers", "verticalpodautoscalers", "poddisruptionbudgets", "certificatesigningrequests"]
verbs: ["list", "watch"]
- apiGroups: ["*"]
resources: ["storageclasses", "persistentvolumeclaims", "persistentvolumes"]
verbs: ["*"]
- apiGroups: ["volumesnapshot.external-storage.k8s.io"]
resources: ["volumesnapshots", "volumesnapshotdatas"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: [ "get", "list", "create", "update", "delete", "patch"]
- apiGroups: ["openebs.io"]
resources: [ "*"]
verbs: ["*" ]
- apiGroups: ["cstor.openebs.io"]
resources: [ "*"]
verbs: ["*" ]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["validatingwebhookconfigurations", "mutatingwebhookconfigurations"]
verbs: ["get", "create", "list", "delete", "update", "patch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
# Source: openebs/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: openebs
labels:
app: openebs
chart: openebs-3.9.0
release: openebs
heritage: Helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: openebs
subjects:
- kind: ServiceAccount
name: openebs
namespace: __OPENEBS_NAMESPACE__
---
# Source: openebs/templates/localprovisioner/deployment-local-provisioner.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: openebs-localpv-provisioner
labels:
app: openebs
chart: openebs-3.9.0
release: openebs
heritage: Helm
component: localpv-provisioner
openebs.io/component-name: openebs-localpv-provisioner
openebs.io/version: 3.9.0
spec:
replicas: 1
strategy:
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: openebs
release: openebs
template:
metadata:
labels:
app: openebs
release: openebs
component: localpv-provisioner
name: openebs-localpv-provisioner
openebs.io/component-name: openebs-localpv-provisioner
openebs.io/version: 3.9.0
spec:
serviceAccountName: openebs
containers:
- name: openebs-localpv-provisioner
image: "openebs/provisioner-localpv:3.4.0"
imagePullPolicy: IfNotPresent
args:
- "--bd-time-out=$(BDC_BD_BIND_RETRIES)"
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"
# This sets the number of times the provisioner should try
# with a polling interval of 5 seconds, to get the Blockdevice
# Name from a BlockDeviceClaim, before the BlockDeviceClaim
# is deleted. E.g. 12 * 5 seconds = 60 seconds timeout
- name: BDC_BD_BIND_RETRIES
value: "12"
# OPENEBS_NAMESPACE is the namespace that this provisioner will
# lookup to find maya api service
- name: OPENEBS_NAMESPACE
value: "__OPENEBS_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: "true"
- name: OPENEBS_IO_BASE_PATH
value: "/var/openebs/local"
- name: OPENEBS_IO_HELPER_IMAGE
value: "openebs/linux-utils:3.4.0"
- name: OPENEBS_IO_INSTALLER_TYPE
value: "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/3.9.0/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"
5 changes: 5 additions & 0 deletions addons/openebs/3.9.0/spec/tmpl-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace: ${OPENEBS_NAMESPACE}

resources:
- namespace.yaml
- openebs.yaml
4 changes: 4 additions & 0 deletions addons/openebs/3.9.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}
1 change: 1 addition & 0 deletions web/src/installers/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ module.exports.InstallerVersions = {
],
openebs: [
// cron-openebs-update-3
"3.9.0",
"3.8.0",
"3.7.0",
"3.6.0",
Expand Down

0 comments on commit b72d97b

Please sign in to comment.