Start a local Kubernetes cluster using for example Minikube or Kind.
Apply the CustomResourceDefinitions:
kubectl apply -f https://github.com/csviri/kubernetes-glue-operator/releases/latest/download/glues.io.csviri.operator.glue-v1.yml -f https://github.com/csviri/kubernetes-glue-operator/releases/latest/download/glueoperators.io.csviri.operator.glue-v1.yml
Deploy the kubernetes-glue-operator
:
kubectl apply -f https://github.com/csviri/kubernetes-glue-operator/releases/latest/download/kubernetes.yml
Note that this deployment gives the controller access to all the resources on the cluster, this is not what you might want in production.
Try out the WebPage Sample
First apply the CustomResourceDefinition for WebPage
:
kubectl apply -f https://raw.githubusercontent.com/csviri/kubernetes-glue-operator/main/src/test/resources/sample/webpage/webpage.crd.yaml
Apply the GlueOperator
for WebPage
:
kubectl apply -f https://raw.githubusercontent.com/csviri/kubernetes-glue-operator/main/src/test/resources/sample/webpage/webpage.operator.yaml
Create a new static WebPage
:
kubectl apply -f https://raw.githubusercontent.com/csviri/kubernetes-glue-operator/main/src/test/resources/sample/webpage/webpage.sample.yaml
All done! Check the resources created, if using minikube you can open the served WebPage with minikube service webpage1
.