mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 00:31:00 +00:00
Ansible: Adding variable for kubernetes addon dir
This commit is contained in:
parent
ce4d2d41fb
commit
90b1318168
@ -1 +1,4 @@
|
||||
kube_addons_dir: "{{ kube_config_dir }}/addons"
|
||||
|
||||
|
||||
local_temp_addon_dir: /tmp/kubernetes/addons
|
||||
|
@ -1,11 +1,11 @@
|
||||
---
|
||||
- name: LOGGING | Assures {{ kube_config_dir }}/addons/cluster-logging dir exists
|
||||
file: path={{ kube_config_dir }}/addons/cluster-logging state=directory
|
||||
- name: LOGGING | Assures {{ kube_addons_dir }}/cluster-logging dir exists
|
||||
file: path={{ kube_addons_dir }}/cluster-logging state=directory
|
||||
|
||||
- name: LOGGING | Download logging files from Kubernetes repo
|
||||
get_url:
|
||||
url=https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/cluster/addons/fluentd-elasticsearch/{{ item }}
|
||||
dest="{{ kube_config_dir }}/addons/cluster-logging/"
|
||||
dest="{{ kube_addons_dir }}/cluster-logging/"
|
||||
force=yes
|
||||
with_items:
|
||||
- es-controller.yaml
|
||||
|
@ -1,11 +1,11 @@
|
||||
---
|
||||
- name: MONITORING | Assures {{ kube_config_dir }}/addons/cluster-monitoring dir exists
|
||||
file: path={{ kube_config_dir }}/addons/cluster-monitoring state=directory
|
||||
file: path={{ kube_addons_dir }}/cluster-monitoring state=directory
|
||||
|
||||
- name: MONITORING | Download monitoring files from Kubernetes repo
|
||||
get_url:
|
||||
url=https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/cluster/addons/cluster-monitoring/influxdb/{{ item }}
|
||||
dest="{{ kube_config_dir }}/addons/cluster-monitoring/"
|
||||
dest="{{ kube_addons_dir }}/cluster-monitoring/"
|
||||
force=yes
|
||||
with_items:
|
||||
- grafana-service.yaml
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Assures /etc/kubernetes/addons/ dir exists
|
||||
file: path=/etc/kubernetes/addons/ state=directory
|
||||
- name: Assures addons dir exists
|
||||
file: path={{ kube_addons_dir }} state=directory
|
||||
|
||||
- include: generic-install.yml
|
||||
when: not is_atomic
|
||||
|
Loading…
Reference in New Issue
Block a user