12345678910111213141516171819202122232425262728293031 |
- ---
- - name: Ensure all the relevant projects are enabled for monitoring
- k8s:
- kubeconfig: tmp/kubeconfig-ocp4
- validate_certs: no
- api_version: v1
- kind: namespace
- name: "{{ item }}"
- definition:
- metadata:
- labels:
- openshift.io/cluster-monitoring: "true"
- loop:
- - openshift-operators-redhat
- - openshift-operators
- - openshift-logging
- - name: Create a LokiStack resource if not yet there
- k8s:
- kubeconfig: tmp/kubeconfig-ocp4
- validate_certs: no
- api_version: loki.grafana.com/v1
- kind: lokistack
- name: logging-loki
- namespace: openshift-logging
- src: files/loki-stack.yml
- # Create a ClusterLogging instance if not yet there.
- # Verification???
|