Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orchestratord TLS for balancerd and environmentd #30444

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions misc/helm-charts/operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ The following table lists the configurable parameters of the Materialize operato
| `storage.storageClass.provisioner` | | ``""`` |
| `storage.storageClass.reclaimPolicy` | | ``"Delete"`` |
| `storage.storageClass.volumeBindingMode` | | ``"WaitForFirstConsumer"`` |
| `tls.defaultCertificateSpecs` | | ``{}`` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:

Expand Down
11 changes: 11 additions & 0 deletions misc/helm-charts/operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,16 @@ rules:
verbs:
- get
- list
- apiGroups: ["cert-manager.io"]
resources:
- certificates
verbs:
- create
- update
- patch
- delete
- get
- list
- watch

{{- end }}
4 changes: 3 additions & 1 deletion misc/helm-charts/operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}

{{- if .Values.tls.defaultCertificateSpecs }}
- '--default-certificate-specs={{ toJson .Values.tls.defaultCertificateSpecs }}'
{{- end }}
{{/* Observability */}}
{{- if .Values.observability.enabled }}
{{- if .Values.observability.podMetrics.enabled }}
Expand Down
19 changes: 19 additions & 0 deletions misc/helm-charts/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,25 @@ networkPolicies:
cidrs:
- 0.0.0.0/0

tls:
defaultCertificateSpecs: {}
#balancerdExternal:
# dnsNames:
# - balancerd
# issuerRef:
# name: dns01
# kind: ClusterIssuer
#consoleExternal:
# dnsNames:
# - console
# issuerRef:
# name: dns01
# kind: ClusterIssuer
#internal:
# issuerRef:
# name: dns01
# kind: ClusterIssuer

# Namespace configuration
namespace:
# Whether to create a new namespace for the deployment
Expand Down
16 changes: 16 additions & 0 deletions misc/helm-charts/testing/environmentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ metadata:
spec:
environmentdImageRef: materialize/environmentd:v0.125.2
backendSecretName: materialize-backend
#balancerdExternalCertificateSpec:
# dnsNames:
# - balancerd
# issuerRef:
# name: dns01
# kind: ClusterIssuer
#consoleExternalCertificateSpec:
# dnsNames:
# - console
# issuerRef:
# name: dns01
# kind: ClusterIssuer
#internalCertificateSpec:
# issuerRef:
# name: intermediate-ca
# kind: Issuer
1 change: 1 addition & 0 deletions src/cloud-resources/src/crd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use tracing::{info, warn};

use mz_ore::retry::Retry;

pub mod gen;
pub mod materialize;
pub mod vpc_endpoint;

Expand Down
10 changes: 10 additions & 0 deletions src/cloud-resources/src/crd/gen.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright Materialize, Inc. and contributors. All rights reserved.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0.

pub mod cert_manager;
11 changes: 11 additions & 0 deletions src/cloud-resources/src/crd/gen/cert_manager.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Materialize, Inc. and contributors. All rights reserved.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0.

pub mod certificates;
pub mod issuers;
Loading