Skip to content

Commit

Permalink
feat: auth and event-cannon now uses same standard (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipHarald authored Jan 18, 2025
1 parent 25597ae commit 61514c4
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 37 deletions.
10 changes: 5 additions & 5 deletions k8s/local/auth/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: auth
name: auth
app: auth-label
name: auth-deployment
namespace: chicmoz
spec:
replicas: 1
selector:
matchLabels:
app: auth
app: auth-label
strategy: {}
template:
metadata:
labels:
app: auth
app: auth-label
spec:
containers:
- image: auth:latest
Expand All @@ -23,7 +23,7 @@ spec:
memory: 500Mi
cpu: 50m
ports:
- name: http-app
- name: http-app-port
containerPort: 80
protocol: TCP
name: auth
Expand Down
1 change: 0 additions & 1 deletion k8s/local/auth/postgres-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ metadata:
namespace: chicmoz
data:
POSTGRES_DB_NAME: "auth"
POSTGRES_PASSWORD: "secret-local-password"
6 changes: 3 additions & 3 deletions k8s/local/auth/service.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: auth
name: auth-service
namespace: chicmoz
spec:
selector:
app: auth
app: auth-label
ports:
- name: http-app
protocol: TCP
port: 80
targetPort: http-app
targetPort: http-app-port
9 changes: 9 additions & 0 deletions k8s/local/auth/image.yaml → k8s/local/auth/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ build:
requires:
- image: chicmoz-base
alias: BASE
deploy:
kubectl:
flags:
apply: ["--force"]
manifests:
rawYaml:
- ./postgres-config.yaml
- ./service.yaml
- ./deployment.yaml
10 changes: 4 additions & 6 deletions k8s/local/event-cannon/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: event-cannon
name: event-cannon
app: event-cannon-label
name: event-cannon-deployment
namespace: chicmoz
spec:
replicas: 1
selector:
matchLabels:
app: event-cannon
app: event-cannon-label
strategy: {}
template:
metadata:
labels:
app: event-cannon
app: event-cannon-label
spec:
containers:
- image: event-cannon:latest
Expand All @@ -24,8 +24,6 @@ spec:
cpu: 250m
name: event-cannon
env:
- name: NODE_ENV
value: "development"
- name: AZTEC_RPC_URL
value: "http://aztec-sandbox-node:8081"
- name: ETHEREUM_RPC_URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ build:
requires:
- image: chicmoz-base
alias: BASE
deploy:
kubectl:
flags:
apply: ["--force"]
manifests:
rawYaml:
- ./deployment.yaml
14 changes: 2 additions & 12 deletions k8s/local/skaffold.no_ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@ metadata:
requires:
- path: ./common/skaffold.manifests.yaml
- path: ./common/skaffold.aztec_sanbox_nodes.yaml
- path: ./auth/image.yaml
- path: ./event-cannon/image.yaml
- path: ./aztec-listener/skaffold.sandbox.yaml
- path: ./ethereum-listener/skaffold.sandbox.yaml
- path: ./explorer-api/skaffold.sandbox.yaml
- path: ./auth/skaffold.yaml
- path: ./event-cannon/skaffold.yaml
- path: ./websocket-event-publisher/skaffold.sandbox.yaml
deploy:
kubectl:
flags:
apply: ["--force"]
manifests:
rawYaml:
- ./auth/deployment.yaml
- ./auth/service.yaml
- ./auth/postgres-config.yaml
- ./event-cannon/deployment.yaml
11 changes: 1 addition & 10 deletions k8s/local/skaffold.sp_testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,9 @@ metadata:
requires:
- path: ./common/skaffold.manifests.yaml
- path: ./common/skaffold.aztec_sanbox_nodes.yaml
- path: ./auth/image.yaml
- path: ./aztec-listener/skaffold.sp_testnet.yaml
- path: ./explorer-ui/skaffold.sp_testnet.yaml
- path: ./ethereum-listener/skaffold.sp_testnet.yaml
- path: ./explorer-api/skaffold.sp_testnet.yaml
- path: ./auth/skaffold.yaml
- path: ./websocket-event-publisher/skaffold.sp_testnet.yaml
deploy:
kubectl:
flags:
apply: ["--force"]
manifests:
rawYaml:
- ./auth/deployment.yaml
- ./auth/service.yaml
- ./auth/postgres-config.yaml

0 comments on commit 61514c4

Please sign in to comment.