OpenEBS must be installed.
To provision a CSPC using dao you need to install cspc-operator from alpha feature
Sample cstorpoolauto DAO operator yaml is given below.
NOTE:- you can install it in any namespace.
apiVersion: v1
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: hellos.hello.k8s.io | |
annotations: | |
api-approved.kubernetes.io: unapproved | |
spec: | |
group: hello.k8s.io | |
names: | |
kind: Hello |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: data-source-validator | |
namespace: kube-system | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: data-source-validator |
FROM golang:1.13.5 as tester | |
LABEL type=intermediate-container | |
COPY main.go /go/src/main.go | |
COPY Makefile /go/src/Makefile | |
WORKDIR /go/src | |
RUN make test | |
FROM golang:1.13.5 as builder | |
LABEL type=intermediate-container | |
COPY main.go /go/src/main.go |
OpenEBS must be installed.
To provision a CSPC using dao you need to install cspc-operator from alpha feature
Sample cstorpoolauto DAO operator yaml is given below.
NOTE:- you can install it in any namespace.
apiVersion: v1
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"github.com/pkg/errors" | |
) |