Commit Graph

15 Commits

Author SHA1 Message Date
Ruslan Aliev 23a2b557f1 Revert "Upgrading MAAS to v3"
This reverts commit 129d958a51.

Reason for revert: reverting back to 2.8.7 to modify chart

Change-Id: I68d3abfb19decc5eb470fcf43694506bc5edd4b6
2023-02-16 15:32:01 -06:00
Anselme, Schubbert (sa246v) 129d958a51
Upgrading MAAS to v3
Signed-off-by: Anselme, Schubert (sa246v) <sa246v@att.com>
Change-Id: I4b5a5f6a7e21d790cce13a5ccff9819f517cad64
2022-11-23 12:55:52 -05:00
Phil Sphicas 666567eae5 Update chart to use stable Kubernetes APIs
Update the MAAS chart to use non-deprecated APIs [0], specifically
addressing the following resource types:
* ClusterRole
* ClusterRoleBinding
* Ingress
* Role
* Rolebinding

The APIs being migrated to are available in v1.19 or earlier. As of this
change, v1.19 is the oldest supported Kubernetes version, slated for EOL
on 2021-10-28. [1]

Also includes an HTK uplift that includes updated Ingress templates. [2]

0: https://kubernetes.io/docs/reference/using-api/deprecation-guide/
1: https://kubernetes.io/releases/
2: https://review.opendev.org/c/openstack/openstack-helm-infra/+/813115

Change-Id: I5e78f1ab094666538ed419a78f6966a2ba295d6a
2021-10-18 11:52:30 -07:00
DeJaeger, Darren (dd118r) 5a1866fb45 Add "labels" to MAAS ingress & ingress-errors deployments
Adding said label, that's already defined, to the deployments themselves.
This will enable Armada to properly wait for certain percentages of the
deployment replicas to be ready prior to proceeding. Prior to this change,
there wasn't a way to select these deployments via labels.

Change-Id: I4d8e479eb40e4395a4e3b79bbc9df651aa4e12e7
2021-04-30 16:58:31 -04:00
Phil Sphicas ccfbd4340f Use HostToContainer mountPropagation
For any host mounts that include /var/lib/kubelet, use HostToContainer
mountPropagation, which avoids creating extra references to mounts in
other containers.

Affects the following resources:
* maas-ingress deployment

Change-Id: I8f8239dc868e30d0203cb994b0eb6a615f40d87b
2021-01-07 20:31:00 +00:00
KHIYANI, RAHUL (rk0850) 2dd543c841 override security context capabilities to values.yaml
Change-Id: I1120a4f5325172a8ece7d2ce8bb24706e28b319f
2020-08-06 12:20:30 -05:00
KHIYANI, RAHUL (rk0850) 20c6e525ea Implement helm-toolkit snippet to maas pods/containers
This updates the maas chart to include the pod
security context on the pod template.

This also adds the container security context to set
readOnlyRootFilesystem flag

Change-Id: I1eba6ab3a7c27ddcb3e8ddc8e743b91dc5e521c3
2020-07-20 14:43:41 +00:00
KAVVA, JAGAN MOHAN REDDY (jk330k) b2e100f6ce Enable Docker default AppArmor profile to maas
This adds default Apparmor profile to maas.

Change-Id: I9c68fdb2be074c855085032dfe9ff0dbbeadcf7c
2020-04-02 15:24:40 +00:00
Phil Sphicas 0a8b01bb72 Chart uplift: ingress-nginx-controller 0.26.1
Uplifts the ingress-nginx-controller image to 0.26.1, including the
required chart modifications for RBAC, new options for stream and
profiler ports, and a change in the default status port from 18080
to 10246.

Change-Id: Ia0b33a739ea180de45b7e3920968d12ea651a573
2020-01-01 14:30:10 -08:00
Kumar, Nishant (nk613n) f0ac0a62c2 [Ingress] Change apiVersion for Ingress and Deployment Resource
'apps/v1beta1' apiVersion for Deployment has been deprecated.
'extensions/v1beta1' apiVersion for Ingress resource has been deprecated.

This PS aligns towards the effort in moving to k8s 1.16.

Reference: https://v1-14.docs.kubernetes.io/docs/setup/release/notes/#deprecations

Change-Id: Ied31e4e136fb9bf0343d609cf75bd1b7028d6f66
2019-10-07 10:20:58 -04:00
BARTRA, RICK 5641cc1117 maas-ingress and maas-ingress-errors pods with non-root user
Run the maas-ingress and maas-ingress-vip containers with the
'www-data' (33) user

Run the maas-ingress-errors container with the error-page image [0],
from [1] which already runs as nobody user.

[0] Dockerfile.404-server-with-metrics
[1] https://github.com/kubernetes/ingress-gce

Change-Id: Idf3791a958017d512bb3f5015b59452e2831b1b3
2019-09-04 15:31:26 +00:00
Kumar, Nishant(nk613n) 0b95ba4d41 Add release uuid annotation to POD spec
Change-Id: I7480f15ba619388c7593d6b9e4a5eff93ee79105
2019-06-25 14:51:07 +00:00
Scott Hussey bb81a1cecd Support tuning of the ingress fallback error pages
- If the error pages service doesn't have endpoints, ingress
  will start up a default service. Allow the port for this
  service to be tunable.

Change-Id: I3f60a7cb47570459da99fcd854c453e81330b052
2018-12-14 14:11:02 -06:00
Scott Hussey 617607e426 (fix) Fix static ports in MAAS ingress
- Some residual static configuration was left in the MAAS ingress
  deployment template. Update it to render the ingress ports from
  endpoints and also to remove the TCP forwarder for the MAAS
  region API and instead use a standard Ingress resource.

Change-Id: I7764d48ea919147503e9bf2521c52cb6f0028538
2018-12-07 22:18:45 +00:00
Scott Hussey 1c0485e3e6 Support MAAS HA
- Create two replicas of rack and region pods
- Use required anti-affinity between rack pods
- Remove the MAAS ingress controller from the rack pod
  and into dedicated deployment
- Update rack registration script to harvest the systemid
  from the underlying host when available

Change-Id: I41e21b7bb5256d04b37a70fbd2088c617b5d239a
2018-11-05 21:08:15 +00:00