fix spy and fly deploment (#140)
This commit is contained in:
parent
a155e6c99f
commit
b033c04a13
|
@ -3,9 +3,9 @@ NAMESPACE=wormscan
|
|||
NAME=wormscan-fly
|
||||
REPLICAS=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_MEMORY=512Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_MEMORY=384Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
SQS_URL=
|
||||
SQS_AWS_REGION=
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
|
||||
{{ if eq .ENVIRONMENT "production" }}
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .NAME }}
|
||||
namespace: {{ .NAMESPACE }}
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: alb
|
||||
alb.ingress.kubernetes.io/healthcheck-interval-seconds: '15'
|
||||
alb.ingress.kubernetes.io/healthcheck-path: /spy.v1.SpyRPCService/SubscribeSignedVAA
|
||||
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP
|
||||
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: '5'
|
||||
alb.ingress.kubernetes.io/healthy-threshold-count: '2'
|
||||
alb.ingress.kubernetes.io/unhealthy-threshold-count: '2'
|
||||
alb.ingress.kubernetes.io/success-codes: "0"
|
||||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
|
||||
alb.ingress.kubernetes.io/backend-protocol: HTTPS
|
||||
alb.ingress.kubernetes.io/backend-protocol-version: GRPC
|
||||
alb.ingress.kubernetes.io/scheme: internet-facing
|
||||
alb.ingress.kubernetes.io/tags: createdBy=aws-controller
|
||||
alb.ingress.kubernetes.io/target-type: ip
|
||||
alb.ingress.kubernetes.io/group.name: wormscan-grpc-group
|
||||
alb.ingress.kubernetes.io/certificate-arn:
|
||||
external-dns.alpha.kubernetes.io/hostname: {{ .HOSTNAME }}
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .HOSTNAME }}
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: {{ .NAME }}
|
||||
port:
|
||||
number: 8001
|
||||
{{ end }}
|
|
@ -1,22 +1,3 @@
|
|||
{{ if eq .ENVIRONMENT "production" }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .NAME }}
|
||||
namespace: {{ .NAMESPACE }}
|
||||
labels:
|
||||
app: {{ .NAME }}
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: {{ .NAME }}
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: {{ .PORT }}
|
||||
name: {{ .NAME }}
|
||||
protocol: TCP
|
||||
{{ else }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -36,7 +17,6 @@ spec:
|
|||
targetPort: {{ .PORT }}
|
||||
name: {{ .NAME }}
|
||||
protocol: TCP
|
||||
{{ end }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
|
|
Loading…
Reference in New Issue