Add kubedns as default package to install
This commit is contained in:
parent
c43f9bc705
commit
eb6025a184
3 changed files with 15 additions and 0 deletions
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'))}}"
|
||||||
|
|
Loading…
Reference in a new issue