ContainerImage.Pinniped/deploy/supervisor
Matt Moyer 58bbffded4
Switch to a slimmer distroless base image.
At a high level, it switches us to a distroless base container image, but that also includes several related bits:

- Add a writable /tmp but make the rest of our filesystems read-only at runtime.

- Condense our main server binaries into a single pinniped-server binary. This saves a bunch of space in
  the image due to duplicated library code. The correct behavior is dispatched based on `os.Args[0]`, and
  the `pinniped-server` binary is symlinked to `pinniped-concierge` and `pinniped-supervisor`.

- Strip debug symbols from our binaries. These aren't really useful in a distroless image anyway and all the
  normal stuff you'd expect to work, such as stack traces, still does.

- Add a separate `pinniped-concierge-kube-cert-agent` binary with "sleep" and "print" functionality instead of
  using builtin /bin/sleep and /bin/cat for the kube-cert-agent. This is split from the main server binary
  because the loading/init time of the main server binary was too large for the tiny resource footprint we
  established in our kube-cert-agent PodSpec. Using a separate binary eliminates this issue and the extra
  binary adds only around 1.5MiB of image size.

- Switch the kube-cert-agent code to use a JSON `{"tls.crt": "<b64 cert>", "tls.key": "<b64 key>"}` format.
  This is more robust to unexpected input formatting than the old code, which simply concatenated the files
  with some extra newlines and split on whitespace.

- Update integration tests that made now-invalid assumptions about the `pinniped-server` image.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-08-09 15:05:13 -04:00
..
README.md Restructure docs into new layout. 2021-02-23 11:11:07 -06:00
config.supervisor.pinniped.dev_federationdomains.yaml Generated 2021-02-10 21:52:09 -05:00
deployment.yaml Switch to a slimmer distroless base image. 2021-08-09 15:05:13 -04:00
helpers.lib.yaml deploy: wire API group suffix through YTT templates 2021-01-19 17:23:06 -05:00
idp.supervisor.pinniped.dev_ldapidentityproviders.yaml Default `groupSearch.attributes.groupName` to "dn" instead of "cn" 2021-05-28 13:27:11 -07:00
idp.supervisor.pinniped.dev_oidcidentityproviders.yaml Rename off of main 2020-12-16 14:27:09 -08:00
rbac.yaml RBAC rules for ldapidentityproviders to grant permissions to controller 2021-04-13 17:26:53 -07:00
service.yaml Run as non-root 2020-11-02 12:51:15 -05:00
values.yaml Add `https_proxy` and `no_proxy` settings for the Supervisor 2021-07-07 12:50:13 -07:00
z0_crd_overlay.yaml Add stub LDAP API type and integration test 2021-04-06 13:10:01 -04:00

README.md

Pinniped Supervisor Deployment

See the how-to guide for details.