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

Deploy HeyFil API on dev and prod with persistent storage #2095

Merged
merged 1 commit into from
Jul 6, 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
2 changes: 2 additions & 0 deletions deploy/manifests/base/heyfil/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ spec:
ports:
- containerPort: 8080
name: metrics
- containerPort: 8081
name: api
1 change: 1 addition & 0 deletions deploy/manifests/base/heyfil/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization

resources:
- deployment.yaml
- service.yaml

commonLabels:
app: heyfil
14 changes: 14 additions & 0 deletions deploy/manifests/base/heyfil/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Service
apiVersion: v1
metadata:
name: heyfil
spec:
ports:
- name: metrics
port: 8080
targetPort: metrics
- name: api
port: 8081
targetPort: api
selector:
app: heyfil
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ spec:
- name: heyfil
args:
- '--httpIndexerEndpoint=https://dev.cid.contact'
- '--storePath=/store'
resources:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: "2"
memory: 2Gi

volumeMounts:
- name: store
mountPath: /store
volumes:
- name: store
persistentVolumeClaim:
claimName: heyfil
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: heyfil
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
tls:
- hosts:
- heyfil.dev.cid.contact
secretName: heyfil-ingress-tls
rules:
- host: heyfil.dev.cid.contact
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: heyfil
port:
name: api
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ namespace: storetheindex
resources:
- ../../../../../base/heyfil
- monitor.yaml
- pvc.yaml
- ingress.yaml

patchesStrategicMerge:
- deployment.yaml

images:
- name: heyfil
newName: 407967248065.dkr.ecr.us-east-2.amazonaws.com/ipni/heyfil
newTag: 20230614095932-b27edd5517dd460dda4ea456cd55c323046df5c4
newTag: 20230706124905-cf3b03385090e32fdf35fd6974dbc8e881f1cab1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: heyfil
name: heyfil
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Mi
storageClassName: gp3
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ spec:
spec:
containers:
- name: heyfil
args:
- '--httpIndexerEndpoint=https://cid.contact'
- '--storePath=/store'
resources:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: "2"
memory: 2Gi

volumeMounts:
- name: store
mountPath: /store
volumes:
- name: store
persistentVolumeClaim:
claimName: heyfil
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: heyfil
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
tls:
- hosts:
- heyfil.cid.contact
secretName: heyfil-ingress-tls
rules:
- host: heyfil.cid.contact
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: heyfil
port:
name: api
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ namespace: storetheindex
resources:
- ../../../../../base/heyfil
- monitor.yaml
- pvc.yaml
- ingress.yaml

patchesStrategicMerge:
- deployment.yaml

images:
- name: heyfil
newName: 407967248065.dkr.ecr.us-east-2.amazonaws.com/ipni/heyfil
newTag: 20230614095932-b27edd5517dd460dda4ea456cd55c323046df5c4
newTag: 20230706124905-cf3b03385090e32fdf35fd6974dbc8e881f1cab1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: heyfil
name: heyfil
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Mi
storageClassName: gp3