Skip to content

Commit

Permalink
fix outdated sample resources, add crd installation to readme (#13)
Browse files Browse the repository at this point in the history
fixes #12

Signed-off-by: Bastian Krol <[email protected]>
  • Loading branch information
basti1302 authored Oct 9, 2024
1 parent eb9601a commit 0c98327
Show file tree
Hide file tree
Showing 4 changed files with 548 additions and 570 deletions.
23 changes: 8 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,27 @@ You’ll need a Kubernetes cluster to run against. You can use [KIND](https://si

### Running on the cluster

1. Install Instances of Custom Resources:

1. Install custom resource definitions:
```sh
kubectl apply -f config/samples/
make install
```

2. Build and push your image to the location specified by `IMG`:
2. Install custom resources:

```sh
make docker-build docker-push IMG=<some-registry>/perses-operator:tag
bin/kustomize build config/samples | kubectl apply -f -
```

3. Deploy the controller to the cluster with the image specified by `IMG`:
3. Build and push your image to the location specified by `IMG`:

```sh
make deploy IMG=<some-registry>/perses-operator:tag
```

4. Install a CRD instance

```sh
kubectl apply -f config/samples/v1alpha1_perses.yaml --namespace default
make docker-build docker-push IMG=<some-registry>/perses-operator:tag
```

5. Install a CRD instance
4. Deploy the controller to the cluster with the image specified by `IMG`:

```sh
kubectl delete -f config/samples/v1alpha1_perses.yaml --namespace default
make deploy IMG=<some-registry>/perses-operator:tag
```

### Uninstall CRDs
Expand Down
1 change: 1 addition & 0 deletions config/samples/perses.dev_v1alpha1_perses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ spec:
queries_path: "/etc/perses/schemas/queries"
datasources_path: "/etc/perses/schemas/datasources"
variables_path: "/etc/perses/schemas/variables"
deactivate_front: false
containerPort: 8080
Loading

0 comments on commit 0c98327

Please sign in to comment.