This repository has been archived by the owner on Feb 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: link.ma <[email protected]>
- Loading branch information
Showing
10 changed files
with
60 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
- name: Loki Operator | Memcached | ServiceAccount | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "memcached" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "memcached" else "absent"}}' | ||
definition: "{{ lookup('template', 'memcached/serviceaccount.yaml') | from_yaml }}" | ||
|
||
- name: Loki Operator | Memcached | StatefulSet | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "memcached" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "memcached" else "absent"}}' | ||
definition: "{{ lookup('template', 'memcached/statefulset.yaml') | from_yaml }}" | ||
|
||
- name: Loki Operator | Memcached | Service | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "memcached" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "memcached" else "absent"}}' | ||
definition: "{{ lookup('template', 'memcached/service.yaml') | from_yaml }}" | ||
|
||
- name: Loki Operator | Memcached | Metrics | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "memcached" and servicemonitor else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "memcached" and servicemonitor else "absent"}}' | ||
definition: "{{ lookup('template', 'memcached/metrics.yaml') | from_yaml }}" | ||
when: '{{servicemonitor is defined}}' | ||
|
||
- name: Loki Operator | Memcached | ServicesMonitor | ||
ignore_errors: yes | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "memcached" and servicemonitor else "absent"}}' | ||
definition: "{{ lookup('template', 'memacached/servicemonitor.yaml') | from_yaml }}" | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "memcached" and servicemonitor else "absent"}}' | ||
definition: "{{ lookup('template', 'memcached/servicemonitor.yaml') | from_yaml }}" | ||
when: '{{servicemonitor is defined}}' | ||
|
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 |
---|---|---|
@@ -1,31 +1,32 @@ | ||
- name: Loki Operator | Reids Cache | PersistentVolumeClaims | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
definition: "{{ lookup('template', 'redis/pvc.yaml') | from_yaml }}" | ||
|
||
- name: Loki Operator | Reids Cache | ConfigMap | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
definition: "{{ lookup('template', 'redis/configmap.yaml') | from_yaml }}" | ||
|
||
- name: Loki Operator | Reids Cache | StatefulSet | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
definition: "{{ lookup('template', 'redis/statefulset.yaml') | from_yaml }}" | ||
force: yes | ||
|
||
- name: Loki Operator | Reids Cache | Service | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "redis" else "absent"}}' | ||
definition: "{{ lookup('template', 'redis/service.yaml') | from_yaml }}" | ||
|
||
- name: Loki Operator | Redis Cache | Metrics | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "redis" and servicemonitor else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "redis" and servicemonitor else "absent"}}' | ||
definition: "{{ lookup('template', 'redis/metrics.yaml') | from_yaml }}" | ||
when: '{{servicemonitor is defined}}' | ||
|
||
- name: Loki Operator | Redis Cache | ServicesMonitor | ||
ignore_errors: yes | ||
community.kubernetes.k8s: | ||
state: '{{"present" if cacheconfig.enabled and cacheconfig.type == "redis" and servicemonitor else "absent"}}' | ||
state: '{{"present" if cacheconfig is defined and cacheconfig.enabled and cacheconfig.type == "redis" and servicemonitor else "absent"}}' | ||
definition: "{{ lookup('template', 'redis/servicemonitor.yaml') | from_yaml }}" | ||
when: '{{servicemonitor is defined}}' |
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
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