Add https to api in test (#155)
This commit is contained in:
parent
4ca0bf1c0e
commit
a926f3c409
|
@ -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 }}
|
||||||
|
|
|
@ -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=
|
Loading…
Reference in New Issue