forked from openebs-archive/elves
-
Notifications
You must be signed in to change notification settings - Fork 0
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
3 changed files
with
32 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 @@ | ||
|
||
Explore ways to extend the k8s api with custom resources and custom resource definition. |
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,22 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
# name must match the spec fields below, and be in the form: <plural>.<group> | ||
name: storagebackends.openebs.io | ||
spec: | ||
# group name to use for REST API: /apis/<group>/<version> | ||
group: openebs.io | ||
# version name to use for REST API: /apis/<group>/<version> | ||
version: v1alpha1 | ||
# either Namespaced or Cluster | ||
scope: Namespaced | ||
names: | ||
# plural name to be used in the URL: /apis/<group>/<version>/<plural> | ||
plural: storagebackends | ||
# singular name to be used as an alias on the CLI and for display | ||
singular: storagebackend | ||
# kind is normally the CamelCased singular type. Your resource manifests use this. | ||
kind: StorageBackend | ||
# shortNames allow shorter string to match your resource on the CLI | ||
shortNames: | ||
- sb |
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,8 @@ | ||
apiVersion: "openebs.io/v1alpha1" | ||
kind: StorageBackend | ||
metadata: | ||
name: my-new-storage-backend | ||
type: local | ||
spec: | ||
disk: "/dev/sdc" | ||
format: "ext4" |