Skip to content

Commit

Permalink
infra
Browse files Browse the repository at this point in the history
  • Loading branch information
alexinthesky committed Jan 7, 2025
1 parent eaebd8a commit 158cd66
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
17 changes: 16 additions & 1 deletion deployment/app/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,19 @@ spec:
- name: REDIS_HOST
value: app-craig-bot-redis-master
- name: REDIS_PORT
value: "6379"
value: "6379"
- name: API_HOMEPAGE
value: "https://craig-api.cs.web3factory.consensys.net"
- name: API_HOST
value: "0.0.0.0"
- name: ENNUIZEL_BASE
value: "https://ez.craig.horse/"
- name: NODE_ENV
value: 'production'
ports:
- name: app
containerPort: 3000
protocol: TCP
- name: api
containerPort: 5029
protocol: TCP
45 changes: 45 additions & 0 deletions deployment/app/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: craig-app
labels:
app.kubernetes.io/name: craig-app
spec:
ingressClassName: nginx
tls:
- hosts:
- craig-app.cs.web3factory.consensys.net
rules:
- host: craig-app.cs.web3factory.consensys.net
http:
paths:
- backend:
service:
name: craig
port:
number: 3000
path: /
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: craig-api
labels:
app.kubernetes.io/name: craig-api
spec:
ingressClassName: nginx
tls:
- hosts:
- craig-api.cs.web3factory.consensys.net
rules:
- host: craig-api.cs.web3factory.consensys.net
http:
paths:
- backend:
service:
name: craig
port:
number: 5029
path: /
pathType: Prefix
18 changes: 18 additions & 0 deletions deployment/app/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: craig
labels:
app: craig
spec:
ports:
- name: app
port: 3000
protocol: TCP
targetPort: 3000
- name: api
port: 5029
protocol: TCP
targetPort: 5029
selector:
app: craig

0 comments on commit 158cd66

Please sign in to comment.