Skip to content

Commit

Permalink
deploy values for upgrade server in all stage accts (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlomazzaferro authored Sep 3, 2024
1 parent 9822928 commit 19b1c80
Show file tree
Hide file tree
Showing 14 changed files with 254 additions and 0 deletions.
73 changes: 73 additions & 0 deletions deploy/stage/common-values-upgrade-server-left.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
image: "ghcr.io/worldcoin/iris-mpc:v0.4.3"

environment: stage
replicaCount: 1

strategy:
type: Recreate

datadog:
enabled: true

ports:
- containerPort: 8000
name: http
protocol: TCP
port: 8000

livenessProbe:
initialDelaySeconds: 300
httpGet:
path: /health
port: health

readinessProbe:
initialDelaySeconds: 300
periodSeconds: 30
failureThreshold: 10
httpGet:
path: /health
port: health

resources:
limits:
cpu: 4
memory: 1Gi
requests:
cpu: 4
memory: 1Gi

imagePullSecrets:
- name: github-secret

nodeSelector:
kubernetes.io/arch: amd64

hostNetwork: true

podSecurityContext:
runAsUser: 65534
runAsGroup: 65534

tolerations:
- key: "dedicated"
operator: "Equal"
value: "gpuGroup"
effect: "NoSchedule"

serviceAccount:
create: true

command: ["/bin/upgrade-server"]

env:
- name: SMPC__DATABASE__URL
valueFrom:
secretKeyRef:
key: DATABASE_URL
name: application


keelPolling:
# -- Specifies whether keel should poll for container updates
enabled: true
73 changes: 73 additions & 0 deletions deploy/stage/common-values-upgrade-server-right.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
image: "ghcr.io/worldcoin/iris-mpc:v0.4.3"

environment: stage
replicaCount: 1

strategy:
type: Recreate

datadog:
enabled: true

ports:
- containerPort: 8000
name: http
protocol: TCP
port: 8000

livenessProbe:
initialDelaySeconds: 300
httpGet:
path: /health
port: health

readinessProbe:
initialDelaySeconds: 300
periodSeconds: 30
failureThreshold: 10
httpGet:
path: /health
port: health

resources:
limits:
cpu: 4
memory: 1Gi
requests:
cpu: 4
memory: 1Gi

imagePullSecrets:
- name: github-secret

nodeSelector:
kubernetes.io/arch: amd64

hostNetwork: true

podSecurityContext:
runAsUser: 65534
runAsGroup: 65534

tolerations:
- key: "dedicated"
operator: "Equal"
value: "gpuGroup"
effect: "NoSchedule"

serviceAccount:
create: true

command: ["/bin/upgrade-server"]

env:
- name: SMPC__DATABASE__URL
valueFrom:
secretKeyRef:
key: DATABASE_URL
name: application


keelPolling:
# -- Specifies whether keel should poll for container updates
enabled: true
9 changes: 9 additions & 0 deletions deploy/stage/mpc1-stage/values-upgrade-server-left.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "0"
- "--eye"
- "left"
9 changes: 9 additions & 0 deletions deploy/stage/mpc1-stage/values-upgrade-server-right.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "0"
- "--eye"
- "right"
9 changes: 9 additions & 0 deletions deploy/stage/mpc2-stage/values-upgrade-server-left.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "1"
- "--eye"
- "left"
9 changes: 9 additions & 0 deletions deploy/stage/mpc2-stage/values-upgrade-server-right.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "1"
- "--eye"
- "right"
9 changes: 9 additions & 0 deletions deploy/stage/mpc3-stage/values-upgrade-server-left.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "2"
- "--eye"
- "left"
9 changes: 9 additions & 0 deletions deploy/stage/mpc3-stage/values-upgrade-server-right.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "2"
- "--eye"
- "right"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "0"
- "--eye"
- "left"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "0"
- "--eye"
- "right"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "1"
- "--eye"
- "left"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "1"
- "--eye"
- "right"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "2"
- "--eye"
- "left"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- "--bind-addr"
- "127.0.0.1:8000"
- "--db-url"
- "$(SMPC__DATABASE__URL)"
- "--party-id"
- "2"
- "--eye"
- "right"

0 comments on commit 19b1c80

Please sign in to comment.