You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quickest way to try the operator is to run it on your local machine, while it connects to a local or remote Kubernetes cluster. When you start it it will use the current kubectl context on your machine to connect to the cluster.
31
+
32
+
Before you run it you have to install the CRD on your cluster by running `kubectl apply -f k8s/crd.yaml`.
33
+
34
+
When the Operator is running you can create some Tomcat Custom Resources. You can find a sample custom resources in the k8s folder.
35
+
36
+
If you want the Operator to be running as a deployment in your cluster, follow the below steps.
37
+
38
+
## Build
39
+
You can build the sample using `mvn dockerfile:build` this will produce a Docker image you can push to the registry of your choice. The jar file is built using your local Maven and JDK and then copied into the Docker image.
40
+
41
+
## Install Operator into cluster
42
+
43
+
Run `kubectl apply -f k8s/crd.yaml` if you haven't already, then run `kubectl apply -f k8s/operator.yaml`. Now you can create Tomcat instances with CRs (see examples above).
0 commit comments