Skip to content

Commit

Permalink
use grpc probe for reencrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
aaperis committed Aug 20, 2024
1 parent c2e4468 commit 44b7f52
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions charts/sda-svc/templates/re-encrypt-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
algorithm: ECDSA
size: 256
usages:
- client auth
- server auth
# At least one of a DNS Name, URI, or IP address is required.
dnsNames:
Expand Down
10 changes: 7 additions & 3 deletions charts/sda-svc/templates/re-encrypt-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,14 @@ spec:
ports:
- name: grpc
containerPort: {{ ternary 50443 50051 ( .Values.global.tls.enabled ) }}
- name: grpchealth
containerPort: {{add ( ternary 50443 50051 ( .Values.global.tls.enabled ) ) 1 }}
readinessProbe:
initialDelaySeconds: 15
tcpSocket:
port: {{ ternary 50443 50051 ( .Values.global.tls.enabled ) }}
initialDelaySeconds: 5
timeoutSeconds: 2
grpc:
port: {{add ( ternary 50443 50051 ( .Values.global.tls.enabled ) ) 1 }}
service: "reencrypt.Reencrypt"
resources:
{{ toYaml .Values.reencrypt.resources | trim | indent 10 }}
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions charts/sda-svc/templates/re-encrypt-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ spec:
- name: reencrypt
port: {{ ternary 50443 50051 ( .Values.global.tls.enabled ) }}
targetPort: grpc
- name: healthcheck
port: {{add ( ternary 50443 50051 ( .Values.global.tls.enabled ) ) 1 }}
targetPort: grpchealth
selector:
app: {{ template "sda.name" . }}-reencrypt
{{- end }}

0 comments on commit 44b7f52

Please sign in to comment.