-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass through all service spec values.
Support healthchecks for gateway configurations without http enabled. Add tests for https and NodePort service with both https and http exposed. Co-authored-by: Jan Waś <[email protected]>
- Loading branch information
1 parent
706f94c
commit 36b728f
Showing
11 changed files
with
189 additions
and
37 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.idea/* | ||
tests/trino/cert.key | ||
tests/trino/cert.crt | ||
*/*/cert.key | ||
*/*/cert.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
command: | ||
- "/bin/sh" | ||
- "-c" | ||
- | | ||
cat /etc/certificates/tls.crt /etc/certificates/tls.key > /etc/scratch/tls.pem && \ | ||
java -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar /etc/gateway/config.yaml | ||
config: | ||
serverConfig: | ||
http-server.http.enabled: false | ||
http-server.https.enabled: true | ||
http-server.https.port: 8443 | ||
http-server.https.keystore.path: /etc/scratch/tls.pem | ||
|
||
volumes: | ||
- name: certificates | ||
secret: | ||
secretName: certificates | ||
- name: scratch | ||
emptyDir: | ||
sizeLimit: 10Mi | ||
|
||
volumeMounts: | ||
- name: certificates | ||
mountPath: /etc/certificates | ||
readOnly: true | ||
- name: scratch | ||
mountPath: /etc/scratch | ||
|
||
ingress: | ||
enabled: true | ||
className: "" | ||
annotations: | ||
# kubernetes.io/ingress.class: nginx | ||
# kubernetes.io/tls-acme: "true" | ||
cert-manager.io/cluster-issuer: acme | ||
kubernetes.io/ingress.class: nginx | ||
hosts: | ||
- host: request.tg.starburst-customer-success.com | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
tls: | ||
- secretName: tls-secret-tg-green | ||
hosts: | ||
- request.tg.starburst-customer-success.com |
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,19 @@ | ||
config: | ||
serverConfig: | ||
http-server.http.enabled: true | ||
http-server.http.port: 8080 | ||
http-server.https.enabled: true | ||
http-server.https.port: 8443 | ||
http-server.https.keystore.path: /etc/scratch/tls.pem | ||
|
||
service: | ||
type: NodePort | ||
ports: | ||
- protocol: TCP | ||
name: request | ||
nodePort: 30443 | ||
- protocol: TCP | ||
name: gateway-http | ||
nodePort: 30080 | ||
port: 8080 | ||
targetPort: 8080 |
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