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 `deploy-image` plugin allows users to create [controllers][controller-runtime] and custom resources that deploy and manage container images on the cluster, following Kubernetes best practices. It simplifies the complexities of deploying images while allowing users to customize their projects as needed.
4
+
5
+
By using this plugin, you will get:
6
+
7
+
- A controller implementation to deploy and manage an Operand (image) on the cluster.
8
+
- Tests to verify the reconciliation logic, using [ENVTEST][envtest].
9
+
- Custom resource samples updated with the necessary specifications.
10
+
- Environment variable support for managing the Operand (image) within the manager.
11
+
12
+
<asideclass="note">
13
+
<h1>Examples</h1>
14
+
15
+
See the `project-v4-with-plugins` directory under the [testdata][testdata]
16
+
directory in the Kubebuilder project to check an example
17
+
of scaffolding created using this plugin.
18
+
19
+
The `Memcached` API and its controller was scaffolded
- This plugin is ideal for users who are just getting started with Kubernetes operators.
50
+
- It helps users deploy and manage an image (Operand) using the [Operator pattern][operator-pattern].
51
+
- If you're looking for a quick and efficient way to set up a custom controller and manage a container image, this plugin is a great choice.
52
+
53
+
## How to use it?
54
+
55
+
1.**Initialize your project**:
56
+
After creating a new project with `kubebuilder init`, you can use this
57
+
plugin to create APIs. Ensure that you've completed the
58
+
[quick start][quick-start] guide before proceeding.
59
+
60
+
2.**Create APIs**:
61
+
With this plugin, you can [create APIs][create-apis] to specify the image (Operand) you want to deploy on the cluster. You can also optionally specify the command, port, and security context using various flags:
Copy file name to clipboardExpand all lines: docs/book/src/plugins/available/grafana-v1-alpha.md
+29-16Lines changed: 29 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,23 @@
1
1
# Grafana Plugin (`grafana/v1-alpha`)
2
2
3
-
The Grafana plugin is an optional plugin that can be used to scaffold Grafana Dashboards to allow you to check out the default metrics which are exported by projects using [controller-runtime][controller-runtime].
3
+
The Grafana plugin is an optional plugin that can be used to
4
+
scaffold Grafana Dashboards to allow you to check out the
5
+
default metrics which are exported by projects
6
+
using [controller-runtime][controller-runtime].
4
7
5
8
<asideclass="note">
6
9
<h1>Examples</h1>
7
10
8
-
You can check its default scaffold by looking at the `project-v3-with-metrics` projects under the [testdata][testdata] directory on the root directory of the Kubebuilder project.
11
+
You can check its default scaffold by looking at the `project-v4-with-plugins` projects
12
+
under the [testdata][testdata] directory on the root directory of the Kubebuilder project.
9
13
10
14
</aside>
11
15
12
16
## When to use it ?
13
17
14
-
- If you are looking to observe the metrics exported by [controller metrics][controller-metrics] and collected by Prometheus via [Grafana][grafana].
18
+
- If you are looking to observe the metrics
19
+
exported by [controller metrics][controller-metrics] and
20
+
collected by Prometheus via [Grafana][grafana].
15
21
16
22
## How to use it ?
17
23
@@ -21,10 +27,10 @@ You can check its default scaffold by looking at the `project-v3-with-metrics` p
21
27
- Access to [Prometheus][prometheus].
22
28
- Prometheus should have an endpoint exposed. (For `prometheus-operator`, this is similar as: http://prometheus-k8s.monitoring.svc:9090 )
23
29
- The endpoint is ready to/already become the datasource of your Grafana. See [Add a data source](https://grafana.com/docs/grafana/latest/datasources/add-a-data-source/)
24
-
- Access to [Grafana](https://grafana.com/docs/grafana/latest/setup-grafana/installation/). Make sure you have:
0 commit comments