-
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
1 parent
14e07f9
commit 91a326b
Showing
10 changed files
with
657 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:4.0.0 | ||
image provisioner-localpv openebs/provisioner-localpv:4.1.2 |
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,173 @@ | ||
--- | ||
# Source: localpv-provisioner/templates/rbac.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: openebs-localpv-provisioner | ||
labels: | ||
chart: localpv-provisioner-4.1.2 | ||
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.1.2 | ||
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.1.2 | ||
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.1.2 | ||
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.1.2 | ||
heritage: Helm | ||
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.2" | ||
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.0.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
14
addons/openebs/4.1.2/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/4.1.2/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,6 @@ | ||
namespace: ${OPENEBS_NAMESPACE} | ||
|
||
resources: | ||
- namespace.yaml | ||
- openebs.yaml | ||
- troubleshoot.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
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 |
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