Continue working on exercise 5.
This commit is contained in:
@ -62,7 +62,48 @@ Click **Create**. In a minute or so you should see the Grafana operator installe
|
|||||||
|
|
||||||
With our Grafana operator now running it will be listening for the creation of a `grafana` custom resource. When one is detected the operator will deplioy the Grafana application according to the specifcation we supplied.
|
With our Grafana operator now running it will be listening for the creation of a `grafana` custom resource. When one is detected the operator will deplioy the Grafana application according to the specifcation we supplied.
|
||||||
|
|
||||||
|
Let's switch over to the **Administrator** perspective for this next task to deploy our Grafana instance.
|
||||||
|
|
||||||
|
Under the **Operators** category in the left hand menu click on **Installed Operators**.
|
||||||
|
|
||||||
|
In the **Installed Operators** list you should see a **Grafana Operator** entry, click into that.
|
||||||
|
|
||||||
|
On the **Operator details** screen you will see a list of "Provided APIs". These are custom resource types that we can now deploy with the help of the operator.
|
||||||
|
|
||||||
|
Click on **Create instance** under the provided API titled `Grafana`.
|
||||||
|
|
||||||
|
On the next **Create Grafana** screen click on **YAML View** radio button and enter the following, replacing the two instances of `userX` with your assigned user then click **Create**.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: grafana.integreatly.org/v1beta1
|
||||||
|
kind: Grafana
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
dashboards: grafana
|
||||||
|
folders: grafana
|
||||||
|
name: grafana
|
||||||
|
namespace: userX
|
||||||
|
spec:
|
||||||
|
config:
|
||||||
|
auth:
|
||||||
|
disable_login_form: 'false'
|
||||||
|
log:
|
||||||
|
mode: console
|
||||||
|
security:
|
||||||
|
admin_password: example
|
||||||
|
admin_user: example
|
||||||
|
route:
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
termination: edge
|
||||||
|
host: grafana-userX.apps.cluster-4dq8d.dynamic.opentlc.com
|
||||||
|
```
|
||||||
|
|
||||||
|
<Zoom>
|
||||||
|
| |
|
||||||
|
|:-------------------------------------------------------------------:|
|
||||||
|
| *Deploying grafana application via the grafana operator* |
|
||||||
|
</Zoom>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
public/static/images/grafana-deployment.gif
Normal file
BIN
public/static/images/grafana-deployment.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.6 MiB |
Reference in New Issue
Block a user