Skip to content

jorgevillaverde-sitewhere/sitewhere-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SiteWhere Operator

Build the operator

operator-sdk build docker.io/jorgevillaverde/sitewhere-operator:v0.1.0

Install the operator

Create Service Account

kubectl create -f deploy/service_account.yaml

Setup RBAC

kubectl create -f deploy/role.yaml
kubectl create -f deploy/role_binding.yaml

Setup the CRD

kubectl create -f deploy/crds/sitewhere_v1alpha1_sitewhere_crd.yaml

Deploy SiteWhere Operator

kubectl create -f deploy/operator.yaml

Create SiteWhere Custom Resource

Create a SiteWhere CR

The default controller will watch for SiteWhere objects and create a pod for each CR

kubectl create -f deploy/crds/sitewhere_v1alpha1_sitewhere_cr.yaml

Cleanup

kubectl delete -f deploy/crds/sitewhere_v1alpha1_sitewhere_cr.yaml
kubectl delete -f deploy/operator.yaml
kubectl delete -f deploy/role.yaml
kubectl delete -f deploy/role_binding.yaml
kubectl delete -f deploy/service_account.yaml
kubectl delete -f deploy/crds/sitewhere_v1alpha1_sitewhere_crd.yaml

About

SiteWhere Operator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published