-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TLS via OpenShift service annotation when gateway/multitenancy is… (
#962) * Use TLS via OpenShift service annotation when gateway/multitenancy is disabled Signed-off-by: Ruben Vargas <[email protected]> * Use TLS via OpenShift service annotation when gateway/multitenancy is disabled Signed-off-by: Ruben Vargas <[email protected]> * Use TLS via OpenShift service annotation when gateway/multitenancy is disabled Signed-off-by: Ruben Vargas <[email protected]> * Add comments on the feature gate Signed-off-by: Ruben Vargas <[email protected]> * Add E2E tests with openshift TLS enabled Signed-off-by: Ruben Vargas <[email protected]> * Improve changelog Signed-off-by: Ruben Vargas <[email protected]> * fix ci Signed-off-by: Ruben Vargas <[email protected]> * Improve changelog entry Signed-off-by: Ruben Vargas <[email protected]> * Use manifestutils and naming functions Signed-off-by: Ruben Vargas <[email protected]> * Use same servingCertsService flag Signed-off-by: Ruben Vargas <[email protected]> * Fix e2e tests Signed-off-by: Ruben Vargas <[email protected]> * Add more description to the changelog Signed-off-by: Ruben Vargas <[email protected]> * Add documemntatioon direct into the CRD Signed-off-by: Ruben Vargas <[email protected]> --------- Signed-off-by: Ruben Vargas <[email protected]>
- Loading branch information
1 parent
e122de4
commit 75de22c
Showing
25 changed files
with
490 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. tempostack, tempomonolithic, github action) | ||
component: tempostack | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Use TLS via OpenShift service annotation when gateway/multitenancy is disabled | ||
|
||
# One or more tracking issues related to the change | ||
issues: [963] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | | ||
On OpenShift when operator config `servingCertsService` is enabled and the following TempoStack CR is used. | ||
The operator provisions OpenShift serving certificates for the distributor ingest APIs | ||
``` | ||
apiVersion: tempo.grafana.com/v1alpha1 | ||
kind: TempoStack | ||
spec: | ||
template: | ||
distributor: | ||
tls: | ||
enabled: true | ||
``` | ||
No `certName` and `caName` should be provided, If you specify it, those will be used instead. | ||
In order to use this on the client side, the openshift CA certificate should be used, there are two ways of get | ||
access to it. You can mount the configmap generated by the operator, which will have the name `<tempostack-name>-serving-cabundle` | ||
Or you can access to it on `var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt`. | ||
An example of OTel configuration used: | ||
``` | ||
exporters: | ||
otlp: | ||
endpoint: tempo-simplest-distributor.chainsaw-tls-singletenant.svc.cluster.local:4317 | ||
tls: | ||
insecure: false | ||
ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: minio | ||
namespace: chainsaw-tls-singletenant | ||
status: | ||
readyReplicas: 1 |
85 changes: 85 additions & 0 deletions
85
tests/e2e-openshift/tls-singletenant/00-install-storage.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# The namespace is auto-deleted by chainsaw after the test run. | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: chainsaw-tls-singletenant | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: minio | ||
name: minio | ||
namespace: chainsaw-tls-singletenant | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: minio | ||
namespace: chainsaw-tls-singletenant | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: minio | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: minio | ||
spec: | ||
containers: | ||
- command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
mkdir -p /storage/tempo && \ | ||
minio server /storage | ||
env: | ||
- name: MINIO_ACCESS_KEY | ||
value: tempo | ||
- name: MINIO_SECRET_KEY | ||
value: supersecret | ||
image: minio/minio | ||
name: minio | ||
ports: | ||
- containerPort: 9000 | ||
volumeMounts: | ||
- mountPath: /storage | ||
name: storage | ||
volumes: | ||
- name: storage | ||
persistentVolumeClaim: | ||
claimName: minio | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: minio | ||
namespace: chainsaw-tls-singletenant | ||
spec: | ||
ports: | ||
- port: 9000 | ||
protocol: TCP | ||
targetPort: 9000 | ||
selector: | ||
app.kubernetes.io/name: minio | ||
type: ClusterIP | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: minio | ||
namespace: chainsaw-tls-singletenant | ||
stringData: | ||
endpoint: http://minio:9000 | ||
bucket: tempo | ||
access_key_id: tempo | ||
access_key_secret: supersecret | ||
type: Opaque |
Oops, something went wrong.