java-controller-runtime
Steps to run the Example Operator with Controller Locally
- First Clone the repository and run the command mvn clean install
- This will create an mvn repository for your project. You can check that locally on below path .m2/repository/io/fabric8
- After successful compilation of java-controller-runtime, go to the example folder
- Before running the operator, first create CRD and CR with command kubectl create -f src/main/resources
- Then, run the operator first mvn clean install on example operator and then target folder has .jar file created for it.
- Go to target folder and run the application with command
java -jar memcached-java-operator-1.0-SNAPSHOT-jar-with-dependencies.jar - You can check the number of pods running with command kubectl get pods