Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ecc verifier service in web sdlc #4

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions manifests/web-cluster/sdlc/helium/ecc-verifier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ecc-verifier
name: ecc-verifier
namespace: helium
spec:
selector:
matchLabels:
app: ecc-verifier
template:
metadata:
labels:
app: ecc-verifier
spec:
containers:
- name: ecc-verifier
image: public.ecr.aws/v0j6k5v6/ecc-verifier-service:0.0.4
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8000
name: http
protocol: TCP
env:
- name: ANCHOR_WALLET
value: /usr/src/app/keys/keypair.json

volumeMounts:
- name: ecc-verifier-keypair
mountPath: /usr/src/app/keys
readOnly: true
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 2
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8000
timeoutSeconds: 1
resources:
requests:
cpu: 250m
memory: 500Mi
limits:
cpu: 500m
memory: 750Mi
volumes:
- name: ecc-verifier-keypair
secret:
secretName: ecc-verifier-keypair
items:
- key: keypair.json
path: keypair.json
---
apiVersion: v1
kind: Service
metadata:
name: ecc-verifier
namespace: helium
spec:
ports:
- port: 8000
protocol: TCP
targetPort: http
selector:
app: ecc-verifier
sessionAffinity: None
type: LoadBalancer
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ecc-verifier
namespace: helium
spec:
ingressClassName: nginx
rules:
- host: ecc-verifier.web.test-helium.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ecc-verifier
port:
number: 8000
15 changes: 15 additions & 0 deletions manifests/web-cluster/sdlc/helium/sealed-ecc-verifier-keypair.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: ecc-verifier-keypair
namespace: helium
spec:
encryptedData:
keypair.json: AgAujTxdlZ6WZiUGCUx4Nsxw0zQzi/lD/pOwp4sDhuboQWBXT2gPNla9VJogShoShqlviGzEeifKH6ZXz9rVHf6lmgCaaACTa/FRHEXDbhZtvLHS4oOOoahk5525KrWcAxuKERkl1WcLMXsDrKcXtwHcOZirdXB2q6LiRU9i9n98Al7SjMFYWGZasf/exkqkpdGMMSurkjOhU4/ONzGg9tLflbz0TNmhAd5SImiye8zkJLvgjTx1e22Zi05dXC0lSHq6NKAK3VQRxOpgfba4uNzneOb/BCtWhEaYHhjWKCPWbyY9roZhq9F9yflw4vOCSasddtugajdIjh7tRD4Q3x7zr/NaHTO03C6TWzXjULcb7UHIjYaosu2eb7BKxV23L7zSDbDlQwcGSaZjqGrck/qzdyodCW1CIphdkwOtTCbgcMLG8C+SHf68WQXV60hQtvDOHOHg23Q6UyBCvn7Rf8l0SzV9TDm6tYspAnz7+FFS/7P9MNpm4f14hN0/4BGg6hDCVdg+eyT/qbvraUga2/gBWg/7s7fH69WCt4lgr7lqgN8bcvlMd8VjkJQaoZgqGBQa12BOzmjLqOXaoAP2hrdK75PXXcQQYonZU483J5hEvk2P6Z6pWOsUg9k6DTug+0F7wUhla/O6eTW7p7zBKCmkRXPjKqH2irqzJTmNkCcuQy3PpCmeDom/6NzvWi+QXll94sTEg68WgUTeRm/GB0KB2u3xh4kQVPqINMZmfwG31cO9B9DpiqSIXIuJxO74W77z/AWC2etowiwFGp7yOkCCmUk5e+6uR2J5UvWCtUukULwmKgCzrr09l9hSzXcSs9ZWRG2dco0MhOUL2D/wEmAz0GPNsZ2zWF1ov9RLBe44Snv3vuuj6CzrckJZ/6G2CRiQ9A6gmrDj//ebkCTZYusxML38Sk2FBwX0RyY0/zzMDDawaAmiX+ENN+V1O2oZkkUyJ1BxTAAUAxhng2w6lKJK7MAShr4eswTmlnL3UlyhFjtBiA==
template:
metadata:
creationTimestamp: null
name: ecc-verifier-keypair
namespace: helium