-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,044 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- crds.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
addons/openebs/3.9.0/spec/storage/tmpl-localpv-storage-class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
6 changes: 6 additions & 0 deletions
6
addons/openebs/3.9.0/spec/storage/tmpl-patch-localpv-default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace: ${OPENEBS_NAMESPACE} | ||
|
||
resources: | ||
- namespace.yaml | ||
- openebs.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: ${OPENEBS_NAMESPACE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters