From 05a220272b9a54752a7a7f6a83b9c99d0a76cd6f Mon Sep 17 00:00:00 2001 From: Mark Burnett Date: Wed, 26 Jul 2017 11:11:45 -0500 Subject: [PATCH] Add armada manifest This will need to be delivered via input configuration eventually, but for now we will template it in place. --- .../assets/promenade-armada.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 promenade/templates/genesis/etc/kubernetes/armada-loader/assets/promenade-armada.yaml diff --git a/promenade/templates/genesis/etc/kubernetes/armada-loader/assets/promenade-armada.yaml b/promenade/templates/genesis/etc/kubernetes/armada-loader/assets/promenade-armada.yaml new file mode 100644 index 00000000..0296ce4c --- /dev/null +++ b/promenade/templates/genesis/etc/kubernetes/armada-loader/assets/promenade-armada.yaml @@ -0,0 +1,53 @@ +armada: + + # results in "armada-keystone" release name below + # to avoid manipulating releases managed directtly + # with helm or other armadas + release_prefix: ucp + + charts: + - description: 'core' + sequenced: True + chart_group: + - chart: + name: calico + release_name: calico + namespace: kube-system + timeout: 600 + values: + calico: + etcd: + credentials: + ca: |- +{{ config.get(kind='CertificateAuthority', name='calico-etcd-client')['data'] | indent(18, True) }} + cert: |- +{{ config.get(kind='Certificate', alias='calico-etcd-node-client')['data'] | indent(18, True) }} + key: |- +{{ config.get(kind='CertificateKey', alias='calico-etcd-node-client')['data'] | indent(18, True) }} + source: + type: local + location: /etc/kubernetes/armada-loader/assets/charts + subpath: calico + dependencies: [] + + - chart: + name: kube-dns + release_name: kube-dns + namespace: kube-system + timeout: 600 + values: + kube_dns: + replicas: 1 + {%- if config['Network']['dns_servers'] is defined %} + upstream_nameservers: + {%- for nameserver in config['Network']['dns_servers'] %} + - {{ nameserver }} + {%- endfor %} + {%- else %} + upstream_nameservers: [] + {%- endif %} + source: + type: local + location: /etc/kubernetes/armada-loader/assets/charts + subpath: kube-dns + dependencies: []