Fixes to MAAS HA and follow-up to comments

Change-Id: I571a0e3bc8355e0ac398175373df40334ebcd1af
This commit is contained in:
Kaspars Skels 2019-04-24 22:43:32 -05:00
parent 75fcc1663a
commit b54d64f797
13 changed files with 81 additions and 32 deletions

View File

@ -111,7 +111,8 @@ data:
- kubernetes-scheduler=enabled
- promenade-genesis=enabled
- ucp-control-plane=enabled
- maas-control-plane=enabled
- maas-rack=enabled
- maas-region=enabled
- node-exporter=enabled
files:
- path: /var/lib/anchor/calico-etcd-bootstrap

View File

@ -82,7 +82,8 @@ data:
tenant-ceph-mon: enabled
tenant-ceph-rgw: enabled
tenant-ceph-mgr: enabled
ucp-maas: enabled
maas-rack: enabled
maas-region: enabled
kube-dns: enabled
kubernetes-apiserver: enabled
kubernetes-controller-manager: enabled

View File

@ -141,15 +141,11 @@ data:
rack: 1
labels:
rack:
node_selector_key: maas-control-plane
node_selector_key: maas-rack
node_selector_value: enabled
region:
node_selector_key: maas-control-plane
node_selector_key: maas-region
node_selector_value: enabled
network:
proxy:
node_port:
enabled: true
jobs:
import_boot_resources:
timeout: 1800
@ -158,6 +154,10 @@ data:
cache:
enabled: true
maas:
images:
default_os: 'ubuntu'
default_image: 'xenial'
default_kernel: 'hwe-16.04'
credentials:
secret:
namespace: ucp

View File

@ -27,7 +27,7 @@ data:
- ucp-divingbell
- ucp-armada
- ucp-deckhand
- ucp-drydock
- ucp-drydock-scaled
- ucp-promenade
- ucp-shipyard
- ucp-prometheus-openstack-exporter

View File

@ -22,12 +22,14 @@ data:
# network. E.g. VLAN 22 for the calico network as a member of bond0, you
# would set "interface=bond0.22" as shown here.
ip_autodetection_method: interface=bond0.22
ip_rule:
gateway: '10.23.21.1'
etcd:
# etcd service IP address
service_ip: 10.96.232.136
vip:
ingress_vip: '10.23.21.20/32'
maas_vip: '10.23.20.9/32'
dns:
# Kubernetes cluster domain. Do not change. This is internal to the cluster.
cluster_domain: cluster.local

View File

@ -39,7 +39,8 @@ data:
- kubernetes-scheduler=enabled
- promenade-genesis=enabled
- ucp-control-plane=enabled
- maas-control-plane=enabled
- maas-rack=enabled
- maas-region=enabled
- ceph-osd-bootstrap=enabled
- openstack-control-plane=enabled
- openvswitch=enabled

View File

@ -14,6 +14,13 @@ metadata:
- method: merge
path: .
storagePolicy: cleartext
substitutions:
- src:
schema: pegleg/CommonAddresses/v1
name: common-addresses
path: .vip.ingress_vip
dest:
path: .values.network.vip.addr
data:
values:
network:
@ -21,5 +28,4 @@ data:
disable-ipv6: "true"
vip:
manage: true
addr: '10.23.21.20/32'
...

View File

@ -41,7 +41,8 @@ data:
- kubernetes-scheduler=enabled
- promenade-genesis=enabled
- ucp-control-plane=enabled
- maas-control-plane=enabled
- maas-rack=enabled
- maas-region=enabled
- ceph-osd-bootstrap=enabled
- openstack-control-plane=enabled
- openvswitch=enabled

View File

@ -39,7 +39,8 @@ data:
- kubernetes-scheduler=enabled
- promenade-genesis=enabled
- ucp-control-plane=enabled
- maas-control-plane=enabled
- maas-rack=enabled
- maas-region=enabled
- ceph-osd-bootstrap=enabled
- openstack-control-plane=enabled
- openvswitch=enabled

View File

@ -0,0 +1,14 @@
---
schema: armada/ChartGroup/v1
metadata:
schema: metadata/Document/v1
name: ucp-drydock-scaled
layeringDefinition:
abstract: false
layer: type
storagePolicy: cleartext
data:
description: Drydock
chart_group:
- ucp-maas-scaled
- ucp-drydock

View File

@ -0,0 +1,28 @@
---
schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: ucp-maas-scaled
layeringDefinition:
abstract: false
layer: type
parentSelector:
name: ucp-maas-global
actions:
- method: merge
path: .
storagePolicy: cleartext
substitutions:
- src:
schema: pegleg/CommonAddresses/v1
name: common-addresses
path: .vip.maas_vip
dest:
path: .values.network.maas_ingress.addr
data:
values:
pod:
replicas:
region: 2
rack: 2
...

View File

@ -6,22 +6,19 @@ metadata:
name: ucp-maas
layeringDefinition:
abstract: false
layer: site
layer: type
parentSelector:
name: ucp-maas-global
actions:
- method: merge
path: .
storagePolicy: cleartext
data:
values:
conf:
maas:
images:
default_os: 'ubuntu'
default_image: 'xenial'
default_kernel: 'hwe-16.04'
network:
maas_ingress:
addr: '10.23.20.9/32'
substitutions:
- src:
schema: pegleg/CommonAddresses/v1
name: common-addresses
path: .vip.maas_vip
dest:
path: .values.network.maas_ingress.addr
data: {}
...

View File

@ -74,16 +74,13 @@ data:
enabled: true
conf:
drydock:
bootaction_url: http://DRYDOCK_IP:DRYDOCK_PORT/api/v1.0
maas:
images:
default_os: 'ubuntu'
default_image: 'xenial'
default_kernel: 'ga-16.04'
cache:
enabled: true
drydock:
bootaction_url: http://DRYDOCK_IP:DRYDOCK_PORT/api/v1.0
maas:
credentials:
secret:
namespace: ucp