Skip to content

Commit

Permalink
add grpc ingress setup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Sep 12, 2023
1 parent 8dfa420 commit b54ac72
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion temporal/helm/temporal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: temporal
description: helm chart for temporal
type: application
version: 0.1.1
version: 0.1.2
appVersion: "1.21.5"
dependencies:
- name: postgres
Expand Down
27 changes: 27 additions & 0 deletions temporal/helm/temporal/templates/grpc-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ if .Values.grpc.hostname }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
{{ toYaml .Values.grpc.annotations | nindent 4 }}
name: grpc-ingress
labels:
{{ include "temporal-plural.labels" . | nindent 4 }}
spec:
ingressClassName: {{ .Values.grpc.ingressClass }}
rules:
- host: {{ .Values.grpc.hostname }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Values.grpc.service }}
port:
name: {{ .Values.grpc.port }}
tls:
- secretName: temporal-grpc-tls
hosts:
- {{ .Values.grpc.hostname }}
{{ end }}
11 changes: 11 additions & 0 deletions temporal/helm/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ oidc:
clientId: bogus
clientSecret: bogus

grpc:
hostname: ~
ingressClass: internal-nginx
service: temporal-frontend
port: grpc-rpc
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod

temporal:
web:
config:
Expand Down
9 changes: 9 additions & 0 deletions temporal/helm/temporal/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ global:
links:
- description: temporal web ui
url: {{ .Values.hostname }}
{{ if .Values.grpcHostname }}
- description: grpc endpoint
url: {{ .Values.grpcHostname }}
{{ end }}

{{ if .Values.grpcHostname }}
grpc:
hostname: {{ .Values.grpcHostname }}
{{ end }}

{{ if .OIDC }}
oidc:
Expand Down
3 changes: 3 additions & 0 deletions temporal/plural/recipes/temporal-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ sections:
- name: hostname
documentation: the fqdn for the temporal admin console
type: DOMAIN
- name: grpcHostname
documentation: fqdn for temporals grpc service (this will be used for temporal clients)
type: DOMAIN
items:
- type: TERRAFORM
name: aws
Expand Down
3 changes: 3 additions & 0 deletions temporal/plural/recipes/temporal-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ sections:
- name: hostname
documentation: the fqdn for the temporal admin console
type: DOMAIN
- name: grpcHostname
documentation: fqdn for temporals grpc service (this will be used for temporal clients)
type: DOMAIN
items:
- type: TERRAFORM
name: azure
Expand Down
3 changes: 3 additions & 0 deletions temporal/plural/recipes/temporal-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ sections:
- name: hostname
documentation: the fqdn for the temporal admin console
type: DOMAIN
- name: grpcHostname
documentation: fqdn for temporals grpc service (this will be used for temporal clients)
type: DOMAIN
items:
- type: TERRAFORM
name: gcp
Expand Down

0 comments on commit b54ac72

Please sign in to comment.