Fix order
This commit is contained in:
parent
e8db339472
commit
3a1c17d54c
|
@ -1,13 +0,0 @@
|
||||||
# Playbook Application Install
|
|
||||||
---
|
|
||||||
- name: Haproxy Control LB
|
|
||||||
hosts:
|
|
||||||
- kubernetes_control_lb
|
|
||||||
roles:
|
|
||||||
- role: haproxy_control_lb
|
|
||||||
tags:
|
|
||||||
- haproxy
|
|
||||||
- haproxy_control_lb
|
|
||||||
- role: backup_talos
|
|
||||||
tags:
|
|
||||||
- backup_talos
|
|
27
playbook.yml
27
playbook.yml
|
@ -9,17 +9,14 @@
|
||||||
tags:
|
tags:
|
||||||
- hostbill
|
- hostbill
|
||||||
|
|
||||||
- name: Include playbook os
|
- name: Haproxy Control LB
|
||||||
ansible.builtin.import_playbook: os.yml
|
hosts:
|
||||||
tags:
|
- kubernetes_control_lb
|
||||||
- os
|
roles:
|
||||||
- loadbalancer
|
- role: haproxy_control_lb
|
||||||
|
tags:
|
||||||
- name: Include playbook applications
|
- haproxy
|
||||||
ansible.builtin.import_playbook: applications.yml
|
- haproxy_control_lb
|
||||||
tags:
|
|
||||||
- applications
|
|
||||||
- loadbalancer
|
|
||||||
|
|
||||||
- name: Include playbook talos
|
- name: Include playbook talos
|
||||||
ansible.builtin.import_playbook: talos.yml
|
ansible.builtin.import_playbook: talos.yml
|
||||||
|
@ -31,3 +28,11 @@
|
||||||
tags:
|
tags:
|
||||||
- k8s_services
|
- k8s_services
|
||||||
- services
|
- services
|
||||||
|
|
||||||
|
- name: Backup Talos
|
||||||
|
hosts:
|
||||||
|
- kubernetes_control_lb
|
||||||
|
roles:
|
||||||
|
- role: backup_talos
|
||||||
|
tags:
|
||||||
|
- backup_talos
|
||||||
|
|
|
@ -13,6 +13,27 @@
|
||||||
pod-security.kubernetes.io/enforce: privileged
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
pod-security.kubernetes.io/warn: privileged
|
pod-security.kubernetes.io/warn: privileged
|
||||||
|
|
||||||
|
- name: Helm add Prometheus repo
|
||||||
|
delegate_to: "{{ kubectl_host }}"
|
||||||
|
run_once: true
|
||||||
|
kubernetes.core.helm_repository:
|
||||||
|
name: rometheus-community
|
||||||
|
repo_url: "https://prometheus-community.github.io/helm-charts"
|
||||||
|
|
||||||
|
- name: Helm deploy KubeStateMetrics
|
||||||
|
delegate_to: "{{ kubectl_host }}"
|
||||||
|
kubernetes.core.helm:
|
||||||
|
kubeconfig: "{{ kubeconfig }}"
|
||||||
|
chart_ref: rometheus-community/kube-state-metrics
|
||||||
|
release_name: kube-state-metrics
|
||||||
|
release_namespace: monitoring
|
||||||
|
create_namespace: false
|
||||||
|
# version: "5.7.*"
|
||||||
|
wait: true
|
||||||
|
timeout: "30m"
|
||||||
|
# values:
|
||||||
|
# https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-state-metrics/values.yaml
|
||||||
|
|
||||||
- name: Helm add Zabbix 6.0 repo
|
- name: Helm add Zabbix 6.0 repo
|
||||||
delegate_to: "{{ kubectl_host }}"
|
delegate_to: "{{ kubectl_host }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
@ -35,6 +56,8 @@
|
||||||
# https://git.zabbix.com/projects/ZT/repos/kubernetes-helm/browse?at=refs%2Fheads%2Frelease%2F6.0#:~:text=GNU%20GPL%20v2-,Configuration,-The%20following%20table
|
# https://git.zabbix.com/projects/ZT/repos/kubernetes-helm/browse?at=refs%2Fheads%2Frelease%2F6.0#:~:text=GNU%20GPL%20v2-,Configuration,-The%20following%20table
|
||||||
# Zabbix templates: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/kubernetes_http?at=release%2F6.0
|
# Zabbix templates: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/kubernetes_http?at=release%2F6.0
|
||||||
zabbixProxy:
|
zabbixProxy:
|
||||||
|
image:
|
||||||
|
tag: ubuntu-6.0-latest
|
||||||
env:
|
env:
|
||||||
- name: ZBX_HOSTNAME
|
- name: ZBX_HOSTNAME
|
||||||
value: "zabbix-proxy.{{ cluster_name }}"
|
value: "zabbix-proxy.{{ cluster_name }}"
|
||||||
|
|
Loading…
Reference in New Issue