Merge pull request #465 from kubespray/freeze_kpm_version
Multiple app deploy tools
This commit is contained in:
commit
604bf36acb
11 changed files with 27 additions and 6 deletions
|
@ -34,4 +34,4 @@
|
||||||
- hosts: kube-master[0]
|
- hosts: kube-master[0]
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
roles:
|
roles:
|
||||||
- {role: kubernetes-apps, tags: apps}
|
- { role: kubernetes-apps, tags: apps }
|
|
@ -133,9 +133,5 @@ dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address')
|
||||||
docker_options: "--insecure-registry={{ kube_service_addresses }}"
|
docker_options: "--insecure-registry={{ kube_service_addresses }}"
|
||||||
|
|
||||||
# default packages to install within the cluster
|
# default packages to install within the cluster
|
||||||
kpm_packages:
|
kpm_packages: []
|
||||||
- name: kube-system/kubedns
|
|
||||||
namespace: kube-system
|
|
||||||
variables:
|
|
||||||
cluster_ip: "{{skydns_server}}"
|
|
||||||
# - name: kube-system/grafana
|
# - name: kube-system/grafana
|
||||||
|
|
0
roles/kubernetes-apps/helm/.gitkeep
Normal file
0
roles/kubernetes-apps/helm/.gitkeep
Normal file
2
roles/kubernetes-apps/helm/tasks/main.yml
Normal file
2
roles/kubernetes-apps/helm/tasks/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
- debug: msg="No helm charts"
|
20
roles/kubernetes-apps/kpm/tasks/main.yaml
Normal file
20
roles/kubernetes-apps/kpm/tasks/main.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
- name: install kpm
|
||||||
|
pip:
|
||||||
|
name: "kpm"
|
||||||
|
state: "present"
|
||||||
|
version: "0.16.1"
|
||||||
|
when: kpm_packages | length > 0
|
||||||
|
|
||||||
|
- name: manage kubernetes applications
|
||||||
|
kpm:
|
||||||
|
namespace: "{{item.namespace | default(kpm_namespace | default('default'))}}"
|
||||||
|
registry: "{{item.registry | default(kpm_registry | default('https://api.kpm.sh'))}}"
|
||||||
|
state: "{{item.state | default(omit)}}"
|
||||||
|
version: "{{item.version | default(omit)}}"
|
||||||
|
variables: "{{item.variables | default(omit)}}"
|
||||||
|
name: "{{item.name}}"
|
||||||
|
with_items: "{{kpm_packages}}"
|
||||||
|
register: kpmresults
|
||||||
|
environment:
|
||||||
|
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
|
3
roles/kubernetes-apps/meta/main.yaml
Normal file
3
roles/kubernetes-apps/meta/main.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
dependencies:
|
||||||
|
- {role: kubernetes-apps/ansible, tags: apps}
|
||||||
|
- {role: kubernetes-apps/kpm, tags: [apps, kpm]}
|
Loading…
Reference in a new issue