Add https to api in test (#155)

This commit is contained in:
ftocal 2023-02-13 10:17:19 -03:00 committed by GitHub
parent 4ca0bf1c0e
commit a926f3c409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -26,6 +26,11 @@ metadata:
namespace: {{ .NAMESPACE }} namespace: {{ .NAMESPACE }}
annotations: annotations:
external-dns.alpha.kubernetes.io/hostname: {{ .HOSTNAME }} external-dns.alpha.kubernetes.io/hostname: {{ .HOSTNAME }}
{{ if eq .ENVIRONMENT "test" }}
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .SSL_CERT }}
{{ end }}
labels: labels:
app: {{ .NAME }} app: {{ .NAME }}
spec: spec:
@ -33,9 +38,13 @@ spec:
selector: selector:
app: {{ .NAME }} app: {{ .NAME }}
ports: ports:
- port: 80 - name: http
port: 80
targetPort: {{ .PORT }}
protocol: TCP
- name: https
port: 443
targetPort: {{ .PORT }} targetPort: {{ .PORT }}
name: {{ .NAME }}
protocol: TCP protocol: TCP
{{ end }} {{ end }}
--- ---
@ -101,8 +110,8 @@ spec:
key: redis-uri key: redis-uri
- name: WORMSCAN_CACHE_ENABLED - name: WORMSCAN_CACHE_ENABLED
value: "true" value: "true"
- name: PPROF_ENABLED - name: WORMSCAN_PPROF_ENABLED
value: {{ .PPROF_ENABLED }} value: {{ .WORMSCAN_PPROF_ENABLED }}
resources: resources:
limits: limits:
memory: {{ .RESOURCES_LIMITS_MEMORY }} memory: {{ .RESOURCES_LIMITS_MEMORY }}

View File

@ -12,4 +12,5 @@ WORMSCAN_RUNMODE=DEVELOPMENT
WORMSCAN_LOGLEVEL=INFO WORMSCAN_LOGLEVEL=INFO
WORMSCAN_P2PNETWORK=testnet WORMSCAN_P2PNETWORK=testnet
WORMSCAN_PPROF_ENABLED=false WORMSCAN_PPROF_ENABLED=false
HOSTNAME=api.testnet.wormscan.io HOSTNAME=api.testnet.wormscan.io
SSL_CERT=