-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openstack-k8s-operators#152 from fao89/identifier
Document log persistence
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters