Commit Graph

11 Commits

Author SHA1 Message Date
Scott Hussey b09fee26b8 (fix) Make rackd stateful
- Use a statefulset and PVC to make rackd systemid assignment
  stateful between pod restarts. This is to alleviate instability
  in MAAS upgrades.

Change-Id: Iea5c3d3897b561d4ba479203ee6aec5885282e1a
2018-06-29 07:37:28 -05:00
Pete Birley 426f8dacf3 MaaS: Slightly clean systemd and enable Stdout logging for journald
This PS updates the charts and images for running systemd in a more
kubernetes friendly  way:
 - The hosts cgroupfs is mounted in read only
 - Required mounts are created (tmp tmp/lock)
 - A tty is created for the container
 - A unit is added to each image that streams journald to stdout

Follow up patches will improve the image builds, create cgroups in an
init container, and also drop unrequired privileges from the containers
in addition to compatibility with recent helm-toolkits.

Change-Id: If3b0df28fea967c5ff67df51e1e95bc74f906222
Signed-off-by: Pete Birley <pete@port.direct>
2018-06-16 15:58:11 +00:00
Scott Hussey 8805637db5 (fix) Fix crashloop on chown
- Currently the start.sh script is crashlooping because it
  is attempting to chown files and failing due to a read-only
  filesystem. Rather than mounting the files in place directly,
  they can be copied in the container and permissions and ownership
  set.

Change-Id: I1da93dd7c177c027457c640a4254357f29c97a5b
2018-06-12 12:20:09 -05:00
Scott Hussey 791e49c519 [Chart] support ssh private key
- Add support for optionally mounting a
  private key for the maas user to access
  remote hosts via ssh (e.g. virsh)
- Add libvirt-bin to the rack controller

Change-Id: I18efb6a6947a5a5f91800bf6494b7d9d15d8aaf2
2018-05-02 21:58:08 -05:00
Alan Meadows cc00e3fd92 Allow ntpd service to be optional
This allows ntpd to be disabled in both the privileged
rack and region controllers for use cases where we
do not wish these processes to conflict with ntpd
on the physical host running the containers.  This
method as opposed to overriding sysvinit style scripts
and potentially other ways to launch ntpd that may
exist appears to be the safest way to ensure it does
not ever run.

Change-Id: Ib52727becc1849a2a75d2d62d1c51553047a8fcf
2018-04-11 08:56:37 -07:00
Scott Hussey 71582567f8 Support Postgres admin password
- Fully support Postgres configuration
  in the endpoints stanza
- Add RBAC support to the region and rack
  pods
- Add custom RBAC for export API key job
  to allow secret creation

Change-Id: I9d0b63ac329bb0b9539b14123c5e16ad3cd1c9f0
2018-01-29 13:59:06 -06:00
Anthony Lin b664579d57 RBAC: Update serviceaccount and k8s rbac for maas
This patch set brings the maas chart to be inline
with OSH* RBAC approach used in [0] and [1]

[0] https://review.openstack.org/#/c/526464/52
[1] https://review.openstack.org/#/c/529378/

Change-Id: I3138a0f6280ab7d8ca9c8088ae19ec0c2175292c
2018-01-22 17:08:12 +00:00
Anthony Lin 6fdcfe2f92 Update MAAS Chart
This patch set brings the maas chart to be inline with OSH* RBAC
approach used in [0] and [1].

[0] https://review.openstack.org/#/c/526464/52
[1] https://review.openstack.org/#/c/529378/

Change-Id: I22c43df55cfca307b7d2d8bb6d5a27945602732e
2017-12-28 16:13:14 +00:00
Scott Hussey 08c1da5be1 Add image cache sidecar
- If conf.cache.enabled is true, deploy a sidecar container
  in the region pod with a simplestreams repo populated w/ a Ubuntu image
- If conf.cache.enabled is true, configure MaaS to source the image
  from the sidecar
- Update README

Closes #1

Change-Id: I968614d6fb7ca86589dc6e2efd1f66ae920d03a8
2017-12-04 12:50:30 -06:00
Scott Hussey a2e8188b81 Fix templates for new images structure
Update manifest templates to correctly use the new images
structure.

Change-Id: I1b88fc064069f0bf7d768df808caec923b58b8ce
2017-10-30 13:02:53 -05:00
Scott Hussey 668fd328d2 Move MaaS chart into maas repo
Change-Id: If1d9e92d9a691892b9a3afcef5b229d704b5dcbc
2017-10-25 14:02:38 -05:00