37 Commits

Author SHA1 Message Date
Wouter Verlaek
5b46397af6 Add mk2 to image builder network policy 2023-01-24 12:54:31 +01:00
Manuel Alejandro de Brito Fontes
a8e18d3724 Fix AffinityLabelServices 2023-01-18 18:45:26 +01:00
Victor Nogueira
119badcf19 Fix License filename in headers (License-AGPL.txt -> License.AGPL.txt) 2022-12-22 10:02:31 -03:00
JenTing Hsiao
2698a7a657 Apply suggestions from code review 2022-12-20 02:45:29 -03:00
Wouter Verlaek
72d9152a71 [image-builder] Enable TLS in workspace clusters
Fix cyclic import cycle

Update altnames

Update golden testdata, todo

Update grpc opts

Testing

Remove blocking dial

Only add TLS in ws cluster

Conditional TLS

Add comments
2022-12-20 02:45:29 -03:00
JenTing Hsiao
c942486f47 installer: update volume mount when Secret updates
According to Kubernetes doc, a container using a Secret as a
subPath volume mount will not receive Secret updates.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-12-15 05:48:24 -03:00
Wouter Verlaek
40e78a254d [image-builder] Change affinity in ws clusters 2022-12-14 14:17:24 -03:00
Wouter Verlaek
b1d53399e7 Experimental app cluster without ws components
Workspace image builds

Update golden output

Deploy ws-manager tls secret in webapp

Remove ws-manager secrets

Update golden outputs

Enable movedImageBuilder by default

Add wsmanager tls to server if not meta install

Update output.golden

Install ws-proxy in meta

Update golden

Move wsproxy to IDE objs

Create experimental flag

Move ws-proxy to idecomponents

Remove ws-manager TLS cert from ws-proxy

skipSelf if WithoutWorkspaceComponents enabled

Fix ws-proxy config
2022-12-13 16:12:23 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Andrew Farries
a1d6699761 Update image-builder-mk3 networkpolicy
Allow ingress to `image-builder-mk3` from `slow-server`.
2022-12-05 13:23:15 -03:00
Tarun Pothulapati
c2eb0c15d1 [installer] manually set allowPrivilegeEscalation to false
This PR manually sets the `allowPrivilegeEscalation` container
config to false where we don't need extra capabilities. This
is needed as not setting this explicitely could mean that
it could still be `true` based on other settings.

This also helps us future proof on any behaviour changes around
this.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-12-05 06:28:15 -03:00
Manuel Alejandro de Brito Fontes
def55ee7ba Add option to add authentication to Jaeger and custom tags 2022-10-11 13:51:26 +02:00
Milan Pavlik
4ed6a9b195 [image-builder-mk3] Use baseserver 2022-10-03 11:10:19 +02:00
Simon Emms
2f03c004a7 [installer]: explicitly set all host addresses to 0.0.0.0 2022-09-13 12:38:14 +02:00
Simon Emms
7cee528fb8 [installer]: conditionally remove podsecuritypolicies 2022-08-24 13:32:40 +02:00
Simon Emms
36adc7d118 Revert "[installer]: remove all podsecuritypolicies"
This reverts commit 1c6693b8481141364d41c3428a99c0bc655556a7.
2022-08-23 20:42:39 +02:00
Simon Emms
e6849ab09f Revert "[installer]: remove all references to pod security policies"
This reverts commit 8063b1052a1fb8519869f4089abe4c7e0f8f1b5a.
2022-08-23 20:42:39 +02:00
Simon Emms
8063b1052a [installer]: remove all references to pod security policies 2022-08-22 15:00:39 +02:00
Simon Emms
1c6693b848 [installer]: remove all podsecuritypolicies
This is deprecated in kubernetes 1.21 and removed in 1.25 and it's not
really used in this setup
2022-08-22 15:00:39 +02:00
Simon Emms
2fd3dd3586 [installer]: remove the custom labels from the selector labels 2022-08-09 04:16:53 -03:00
Nandaja Varma
20e91af4fa [installer] updating the refCache image in image-builder-mk3 2022-07-28 20:11:23 -03:00
Manuel Alejandro de Brito Fontes
14095f470b Refactor configuration of localhost address, metric and debug ports 2022-07-23 11:19:18 -03:00
Simon Emms
8fad588e6b [installer]: add customization functions to components 2022-06-24 17:02:33 +05:30
Mads Hartmann
7b68fb4a27 Use slices instead of maps for service ports to control ordering 2022-05-30 20:14:48 +05:30
Andrew Farries
7363937d54 Rename TracingEnv to WorkspaceTracingEnv 2022-05-11 13:25:26 +05:30
Andrew Farries
674db36fbb Make resources configurable for all components
Use the common.ResourceRequirements function from the parent commits,
passing in the existing defaults.
2022-04-28 20:04:14 +05:30
Andrew Farries
0ae3201a7e Set Replicas for multiple components
So that they respect the new
`experimental.common.podConfig.<component>.replicas` setting.
2022-04-26 13:14:38 +05:30
Tarun Pothulapati
f5778fa987 Fix multiple issues with self-signed certificates
This PR includes temporary fixes to get `Certificate` option working with `self-signed` certificates.

Currently, Whenever the `Certificate` config option is set to a
specific secret, we seem to assume **by default** that they are
publicly signed. This currently has the following issues when they
are `self-signed` :
- Due to the usage of `Certificate` in internal facing services like
  `registry-facade`, Internal clients fail to communicate as the
  self-signed CA is not in their trust store.
  (Fix: Update `registry-facade` to use `builtin-registry-facade-cert`,
  generated by `cert-manager`)
- Due to the fact that internal `registry` communication also flows
  through the `proxy`, This communication fails as the `proxy` cert is
  self-signed as its not available in the trust store.
  (Fix: Update the `registry-facade` daemonset to also include `crt` of
   `Certificate` in its trust store).

This PR also fixes an issue with `image-builder-mk3` when the
`customCACert` option is set, by removing `InternalVolumeCAMount` as
it makes the `etc/ssl/certs` empty and readOnly (which prevents
from mounting the customCACert cert into `etc/ssl/certs`

This is not needed as the directory probably exists, or we don't need
to mount it specifically. Individually cert files can be attached
directly into the folder while keeping the existing files the
same.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-04-25 17:48:37 +05:30
Simon Emms
948ae5192b [installer]: add DropImageRepo functionality to RepoName
This moves the ImageName and RepoName functions to the RenderContext
struct.
2022-04-21 18:26:33 +05:30
Andrew Farries
3fdd2d9754 Rename common.Affinity to NodeAffinity 2022-04-20 02:48:32 +05:30
Christian Weichel
5dff569f70 [image-builder] Allow ws-manager ingress 2022-04-19 21:47:32 +05:30
Christian Weichel
4b48505356 [ws-manager] Proxy to image-builder 2022-04-19 21:47:32 +05:30
Christian Weichel
f2738568e3 [installer] Add custom CA secret support 2022-04-11 22:39:24 +05:30
Manuel Alejandro de Brito Fontes
6d595267cc Enable access to kube-dns 2022-03-04 20:40:11 +05:30
Manuel Alejandro de Brito Fontes
2e44194d70 Add ws-manager egress rule 2022-03-04 20:40:11 +05:30
Manuel Alejandro de Brito Fontes
626a6f4958 Add egress rule to allow access to kube-dns 2022-03-04 20:40:11 +05:30
Simon Emms
4820e804bb [installer]: move to /install 2022-02-22 17:03:02 +05:30