Skip to content

Commit fb61aa2

Browse files
committed
Controller type: StatefulSet versus Deployment
1 parent 9fc071a commit fb61aa2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/tools_user_guide.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ OUTPUT_YAML_FILE=hack/install.yaml
156156
kubebuilder create config --name=<my-project-name> --controller-image=<controller-image> --output=$OUTPUT_YAML_FILE
157157
```
158158

159+
The default controller type is a StatefulSet. If you want the controller manager to be
160+
a Deployment, use the following command:
161+
162+
```sh
163+
kubebuilder create config --name=<my-project-name> --controller-image=<controller-image> --controller-type=deployment --output=$OUTPUT_YAML_FILE
164+
```
165+
159166
This generates the YAML config to create the following resources:
160167

161168
* Namespace

0 commit comments

Comments
 (0)