Skip to content

Commit d1f242c

Browse files
committed
refactor edge templates
1 parent 7223e08 commit d1f242c

File tree

2 files changed

+11
-34
lines changed

2 files changed

+11
-34
lines changed

sdx/chart/sdx-edge/Chart.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
apiVersion: v2
22
name: sdx-edge
3-
description: A Helm chart for Kubernetes
4-
5-
# A chart can be either an 'application' or a 'library' chart.
6-
#
7-
# Application charts are a collection of templates that can be packaged into versioned archives
8-
# to be deployed.
9-
#
10-
# Library charts provide useful utilities or functions for the chart developer. They're included as
11-
# a dependency of application charts to inject those utilities and functions into the rendering
12-
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
3+
description: A Helm chart for deploying an SDX Edge Server to a Kubernetes cluster
134
type: application
14-
15-
# This is the chart version. This version number should be incremented each time you make changes
16-
# to the chart and its templates, including the app version.
17-
# Versions are expected to follow Semantic Versioning (https://semver.org/)
185
version: 0.1.0
19-
20-
# This is the version number of the application being deployed. This version number should be
21-
# incremented each time you make changes to the application. Versions are not expected to
22-
# follow Semantic Versioning. They should reflect the version the application is using.
23-
# It is recommended to use it with quotes.
246
appVersion: "3.9.1"

sdx/chart/sdx-edge/README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# SDX Security Edge
1+
# SDX Edge server
22

3-
The SDX Security Edge chart deploys the following components:
3+
The SDX Edge chart deploys the following components:
44

55
- Kong Data Plane
66
- Fluentbit
77
- Prometheus
88
- Cert Renewal Job
9+
- Cert Bootstrap Job
910

1011
On Openshift environments, the Kong Data Plane is a passthrough from the Openshift HAProxy.
1112

@@ -24,23 +25,17 @@ helm push sdx-edge-0.1.0.tgz oci://ghcr.io/bcgov/aps-devops
2425

2526
## Deployment
2627

27-
> `TOKEN` is a one-time-use token for calling the CA to get a new client certificate for mTLS and signing
28-
29-
In your working directory, create the following structure:
30-
31-
- `tls.crt` : TLS certificate from a public CA
32-
- `tls.key` : TLS certificate key from a public CA
28+
> `TOKEN` is a one-time-use token for calling the CA to get a new certificate for mTLS and signing
3329
3430
```sh
35-
export DOMAIN="sdx.gov.bc.ca"
36-
export EDGE_ID="sdxgov"
31+
export IP="<INTERNET_FACING_IP]"
32+
export EDGE_ID="<EDGE NAME>"
33+
export DOMAIN="${EDGE_ID}.servers.sdx"
3734

3835
helm upgrade --install ${EDGE_ID} \
39-
--set-file tls.ca=sdx_ca.crt \
40-
--set-file tls.server.crt=tls.crt \
41-
--set-file tls.server.key=tls.key \
4236
--set tls.client.bootstrap.token=$TOKEN \
43-
--set tls.client.cn=${EDGE_ID}.edge.sdx \
37+
--set tls.client.cn=${DOMAIN} \
38+
--set tls.server.ip=${IP} \
4439
--set route.host=${DOMAIN} \
45-
oci://ghcr.io/bcgov/aps-devops/sdx-edge:0.1.0
40+
oci://ghcr.io/bcgov/aps-devops/sdx-edge:0.1.0
4641
```

0 commit comments

Comments
 (0)