# This file is autogenerated, do not edit; changes may be undone by the next 'make gen-manifest' # -*- mode: yaml -*- --- kind: Namespace apiVersion: v1 metadata: name: kadalu --- apiVersion: v1 kind: ServiceAccount metadata: name: kadalu-operator namespace: kadalu --- kind: ServiceAccount apiVersion: v1 metadata: name: kadalu-csi-nodeplugin namespace: kadalu --- kind: ServiceAccount apiVersion: v1 metadata: name: kadalu-csi-provisioner namespace: kadalu --- kind: ServiceAccount apiVersion: v1 metadata: name: kadalu-server-sa namespace: kadalu --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: kadalustorages.kadalu-operator.storage namespace: kadalu spec: group: kadalu-operator.storage names: kind: KadaluStorage listKind: KadaluStorageList plural: kadalustorages singular: kadalustorage shortNames: - kadalu - kds scope: Namespaced versions: - name: v1alpha1 storage: true served: true schema: openAPIV3Schema: type: object properties: spec: type: object properties: disperse: type: object properties: data: type: integer redundancy: type: integer type: type: string pvReclaimPolicy: type: string default: delete volume_id: type: string kadalu_format: type: string default: native storage: type: array items: type: object properties: node: type: string device: type: string path: type: string pvc: type: string decommissioned: type: string tiebreaker: type: object properties: deployment: type: string node: type: string path: type: string port: type: integer details: type: object properties: gluster_host: type: string gluster_hosts: type: array items: type: string gluster_volname: type: string gluster_options: type: string --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: namespace: kadalu name: pod-exec rules: - apiGroups: [""] resources: ["pods", "pods/log"] verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] - apiGroups: [""] resources: ["pods", "pods/exec"] verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: kadalu-operator namespace: kadalu rules: - apiGroups: [""] resources: - pods - services - endpoints - persistentvolumes - persistentvolumeclaims - persistentvolumeclaims/status - customresourcedefinitions - events - configmaps - secrets - serviceaccounts - clusterroles - clusterrolebindings - roles - rolebindings verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] - apiGroups: - storage.k8s.io resources: - storageclasses - volumeattachments - volumeattachments/status verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] - apiGroups: - rbac.authorization.k8s.io resources: - roles - rolebindings - clusterroles - clusterrolebindings verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] - apiGroups: ["apps"] resources: - deployments - daemonsets - replicasets - statefulsets verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] - apiGroups: ["monitoring.coreos.com"] resources: - servicemonitors verbs: ["get", "create"] - apiGroups: ["kadalu-operator.storage"] resources: - kadalustorages verbs: ["create", "get", "list", "watch", "update", "delete"] - apiGroups: [""] resources: ["persistentvolumes"] verbs: ["get", "list", "watch", "update"] - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list", "watch"] - apiGroups: ["csi.storage.k8s.io"] resources: ["csinodeinfos"] verbs: ["get", "list", "watch"] - apiGroups: ["storage.k8s.io"] resources: ["volumeattachments"] verbs: ["get", "list", "watch", "update"] - apiGroups: [""] resources: ["events"] verbs: ["get", "list", "watch", "create", "update", "patch"] - apiGroups: [""] resources: ["persistentvolumes"] verbs: ["get", "list", "watch", "create", "delete", "patch"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update", "patch"] - apiGroups: [""] resources: ["persistentvolumeclaims/status"] verbs: ["get", "list", "watch", "update", "patch"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["events"] verbs: ["list", "watch", "create", "update", "patch", "delete", "get"] - apiGroups: [""] resources: ["secrets"] verbs: ["get", "list"] - apiGroups: [""] resources: ["endpoints"] verbs: ["get", "list", "watch", "create", "update"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotclasses"] verbs: ["get", "list", "watch"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotcontents"] verbs: ["create", "get", "list", "watch", "update", "delete"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshots"] verbs: ["get", "list", "watch", "update"] - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] verbs: ["create", "list", "watch", "delete"] - apiGroups: ["csi.storage.k8s.io"] resources: ["csidrivers"] verbs: ["get", "create", "delete", "patch"] - apiGroups: ["storage.k8s.io"] resources: ["csidrivers"] verbs: ["get", "create", "delete", "patch"] - apiGroups: ["coordination.k8s.io"] resources: ["leases"] verbs: ["get", "watch", "list", "delete", "update", "create"] - apiGroups: [""] resources: ["pods/exec"] verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: kadalu-operator subjects: - kind: ServiceAccount name: kadalu-operator namespace: kadalu - kind: ServiceAccount name: pod-exec namespace: kadalu roleRef: kind: ClusterRole name: kadalu-operator apiGroup: rbac.authorization.k8s.io --- apiVersion: apps/v1 kind: Deployment metadata: name: operator namespace: kadalu labels: app.kubernetes.io/part-of: kadalu app.kubernetes.io/component: operator app.kubernetes.io/name: operator spec: replicas: 1 selector: matchLabels: name: kadalu template: metadata: labels: name: kadalu spec: serviceAccountName: kadalu-operator containers: - name: kadalu-operator securityContext: capabilities: {} privileged: true image: docker.io/kadalu/kadalu-operator:arm imagePullPolicy: IfNotPresent env: - name: WATCH_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: OPERATOR_NAME value: "kadalu-operator" - name: DOCKER_USER value: "kadalu" - name: KADALU_VERSION value: "arm" - name: KADALU_NAMESPACE value: "kadalu" - name: KUBELET_DIR value: "/var/snap/microk8s/common/var/lib/kubelet" - name: K8S_DIST value: "microk8s" - name: VERBOSE value: "no"