Skip to content

Kubernetes controller/operator to create virtual machines in OpenStack with microk8s preinstalled based on custom resources.

License

Notifications You must be signed in to change notification settings

pfisterer/edsc-microk8s-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

be231f7 · Apr 30, 2021

History

56 Commits
Apr 30, 2021
Sep 15, 2020
Jul 5, 2020
Jun 26, 2020
Jun 26, 2020
Apr 15, 2021
Apr 15, 2021
Jun 26, 2020
Apr 16, 2021
Apr 30, 2021
Apr 30, 2021
Apr 15, 2021
Oct 27, 2020

Repository files navigation

EDSC MicroK8s Controller

Local Development

Run npm start

Build the Docker container

Run docker build -t farberg/edsc-microk8s-controller .

Development Deployment to K8S

Run skaffold dev

Periodically add and remove a CR:

while true; do 
	DELAY=10s
	k apply -f test/private-demo-microk8s.yaml
	sleep $DELAY; k delete microkeights.mk8.farberg.de --all
	sleep $DELAY
done

Development Deployment to K8S

Run skaffold run

FAQ

I'm getting errors like

Exception in main method: Error: customresourcedefinitions.apiextensions.k8s.io is forbidden: User "system:serviceaccount:default:default" cannot create resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope

Solution

  • Create missing RBAC roles
  • For development (e.g., in Minikube), run
kubectl create clusterrolebinding \
	--clusterrole=cluster-admin \
	--user=system:serviceaccount:default:default \
	--clusterrole=cluster-admin \
	--user=system:serviceaccount \
	rds-admin-binding

About

Kubernetes controller/operator to create virtual machines in OpenStack with microk8s preinstalled based on custom resources.

Topics

Resources

License

Stars

Watchers

Forks