Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

project-openubl/searchpe-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

searchpe-operator

Start Minikube

minikube start

For more details about minikube visit the official documentation.

Operator container image

Create application executable

You must choose between a native executable and a JVM executable

  • Fast-jar executable:
./mvnw package -DskipTests -Dquarkus.package.type=fast-jar
  • Native executable:
./mvnw package -Pnative -DskipTests -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.3.0.0.Final-java11

Create container image

We need to create the container image inside Minikube. Point your shell to minikube's docker-daemon:

eval $(minikube -p minikube docker-env)
  • If you are using the Fast-jar mode:
docker build -f src/main/docker/Dockerfile.fast-jar -t projectopenubl/searchpe-operator .
  • If you are using the Native mode:
docker build -f src/main/docker/Dockerfile.native -t projectopenubl/searchpe-operator .

Deploy the CRD

kubectl create -f k8s/crd.yaml

Deploy the Operator

kubectl create -f k8s/operator.yaml

Instantiate the Operator

kubectl create -f k8s/searchpe.yaml -n searchpe-operator

Utils

Get pods:

kubectl get pods -n searchpe-operator

Scale operator deployment:

kubectl scale deployments/searchpe-operator --replicas=0 -n searchpe-operator

Delete all:

kubectl delete searchpe hellows -n searchpe-operator
kubectl delete namespace searchpe-operator
kubectl delete customresourcedefinition searchpes.project.openubl
kubectl delete clusterrolebinding operator-admin
kubectl delete clusterroles searchpe-operator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published