Skip to content

Commit

Permalink
Document log persistence
Browse files Browse the repository at this point in the history
Signed-off-by: Fabricio Aguiar <[email protected]>
  • Loading branch information
fao89 committed May 11, 2023
1 parent 0b0906a commit a3f50d7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Persistent logs

For enabling persistent logging, you need to mount `/runner/artifacts` into a [persistent Volume](https://kubernetes.io/docs/concepts/storage/volumes/) through `extraMounts` field.

#### Example:
```yaml
apiVersion: ansibleee.openstack.org/v1alpha1
kind: OpenStackAnsibleEE
metadata:
name: ansibleee-logs
namespace: openstack
spec:
playbook: "test.yaml"
image: quay.io/openstack-k8s-operators/openstack-ansibleee-runner:latest
inventory: |
all:
hosts:
localhost
extraMounts:
- extraVolType: Logs
volumes:
- name: ansible-logs
persistentVolumeClaim:
claimName: openstack-ansible-logs
mounts:
- name: ansible-logs
mountPath: "/runner/artifacts"
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ nav:
- Home: index.md
- Custom Resources:
- OpenStackAnsibleEE: openstack_ansibleee.md
- Config:
- Logs: logs.md
- Contributing: contributing.md
markdown_extensions:
- toc:
Expand Down

0 comments on commit a3f50d7

Please sign in to comment.