generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding support to the interceptor proxy for TLS on the wire (#928)
* feat: Adding support to the interceptor proxy for TLS on the wire Signed-off-by: Joe Wogan <[email protected]> * chore: adding e2e tests and tidying up changes Signed-off-by: Joe Wogan <[email protected]> * chore: changing interceptor tls port for e2e tests Signed-off-by: Joe Wogan <[email protected]> --------- Signed-off-by: Joe Wogan <[email protected]>
- Loading branch information
Showing
20 changed files
with
905 additions
and
15 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 |
---|---|---|
|
@@ -355,3 +355,10 @@ admin/Cargo.lock | |
|
||
/target | ||
.envrc | ||
|
||
# locally generated certs for testing TLS | ||
*.crt | ||
*.pem | ||
*.csr | ||
*.srl | ||
*.ext |
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,30 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: interceptor | ||
spec: | ||
replicas: 1 | ||
template: | ||
spec: | ||
containers: | ||
- name: interceptor | ||
ports: | ||
- name: proxy-tls | ||
containerPort: 8443 | ||
env: | ||
- name: KEDA_HTTP_PROXY_TLS_ENABLED | ||
value: "true" | ||
- name: KEDA_HTTP_PROXY_TLS_CERT_PATH | ||
value: "/certs/tls.crt" | ||
- name: KEDA_HTTP_PROXY_TLS_KEY_PATH | ||
value: "/certs/tls.key" | ||
- name: KEDA_HTTP_PROXY_TLS_PORT | ||
value: "8443" | ||
volumeMounts: | ||
- readOnly: true | ||
mountPath: "/certs" | ||
name: certs | ||
volumes: | ||
- name: certs | ||
secret: | ||
secretName: keda-tls |
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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- deployment.yaml | ||
- proxy.service.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,11 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: interceptor-proxy | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: proxy-tls | ||
protocol: TCP | ||
port: 8443 | ||
targetPort: proxy-tls |
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
Oops, something went wrong.