Add kubedns as default package to install

This commit is contained in:
ant31 2016-05-04 18:00:46 +02:00 committed by Smana
parent c43f9bc705
commit eb6025a184
3 changed files with 15 additions and 0 deletions

View file

@ -14,3 +14,7 @@
- hosts: k8s-cluster - hosts: k8s-cluster
roles: roles:
- { role: dnsmasq, tags: dnsmasq } - { role: dnsmasq, tags: dnsmasq }
- hosts: kube-master[0]
roles:
- {role: kubernetes-apps, tags: apps}

View file

@ -134,3 +134,11 @@ dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address')
## An obvious use case is allowing insecure-registry access ## An obvious use case is allowing insecure-registry access
## to self hosted registries like so: ## to self hosted registries like so:
docker_options: "--insecure-registry={{ kube_service_addresses }}" docker_options: "--insecure-registry={{ kube_service_addresses }}"
# default packages to install within the cluster
kpm_packages:
- name: kube-system/kubedns
namespace: kube-system
variables:
cluster_ip: "{{skydns_server}}"
# - name: kube-system/grafana

View file

@ -1,3 +1,6 @@
- name: install kpm
pip: name=kpm state=latest
- name: manage kubernetes applications - name: manage kubernetes applications
kpm: kpm:
namespace: "{{item.namespace | default(kpm_namespace | default('default'))}}" namespace: "{{item.namespace | default(kpm_namespace | default('default'))}}"