> For the complete documentation index, see [llms.txt](https://docs.opstreelabs.in/logging-operator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opstreelabs.in/logging-operator/management.md).

# Management

A logging operator management stuff

## Index LifeCycle

There is an API created for managing the index lifecycle policies.

```yaml
---
apiVersion: logging.opstreelabs.in/v1alpha1
kind: IndexLifecycle
```

### Kubectl

For deploying the index lifecycle, we may need to update the file under [config/samples/lifecycle-example.yaml](https://github.com/OT-CONTAINER-KIT/logging-operator/blob/master/config/samples/lifecycle-example.yaml).

```bash
kubectl apply -f config/samples/lifecycle-example.yaml
```

### Helm

Helm can also be used to deploy the index lifecycle. After updating the values file inside [helm-charts](https://github.com/OT-CONTAINER-KIT/logging-operator/tree/master/helm-charts/logging-setup).

```bash
helm upgrade index-lifecycle ./ \
    -f values.yaml --set lifecycle.enabled=true \
    --namesapce logging-operator --install
```

## Index Template

There is an API created for managing the index templates.

```yaml
---
apiVersion: logging.opstreelabs.in/v1alpha1
kind: IndexTemplate
```

### Kubectl

For deploying the index template, we may need to update the file under [config/samples/index-template-example.yaml](https://github.com/OT-CONTAINER-KIT/logging-operator/blob/master/config/samples/index-template-example.yaml).

```bash
kubectl apply -f config/samples/index-template-example.yaml
```

### Helm

Helm can also be used to deploy the index templates. After updating the values file inside [helm-charts](https://github.com/OT-CONTAINER-KIT/logging-operator/tree/master/helm-charts/logging-setup).

```bash
helm upgrade index-template ./ \
    -f values.yaml --set indexTemplate.enabled=true \
    --namesapce logging-operator --install
```
