Skip to content

Commit

Permalink
add nodeSelector for DA pool
Browse files Browse the repository at this point in the history
  • Loading branch information
aWN4Y25pa2EK committed Jun 28, 2024
1 parent bb3cc7d commit 179ef76
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 8 additions & 5 deletions examples/celestia-node/arabica-bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ commonLabels: &commonLabels
network: da
type: &nodeType bridge # check
secretName: &secretName keys-da-bridge-1 # check
pool: &pool pool-da-0 # check pool instance type to validate requests & limits
service:
external:
annotations:
external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP"
external-dns.alpha.kubernetes.io/hostname: "hc-da-bridge-1.celestia-arabica-11.com"
external-dns.alpha.kubernetes.io/hostname: "hct-da-bridge-1.celestia-arabica-11.com"
external-dns.alpha.kubernetes.io/ttl: "60"
persistence:
size: 1000Gi
Expand All @@ -17,6 +18,8 @@ persistence:
kind: VolumeSnapshot
name: da-latest
node:
nodeSelector:
k8s.scaleway.com/pool-name: *pool
persistentVolumeClaimRetentionPolicy:
whenDeleted: Delete
whenScaled: Retain
Expand All @@ -26,11 +29,11 @@ node:
name: grafana-otel-token
resources:
requests:
cpu: 3
memory: 15Gi
cpu: 2
memory: 4Gi
limits:
cpu: 6
memory: 24Gi
#cpu: 4 # not required since this pod should run on it's own dedicated node
memory: 10Gi
livenessProbe:
enabled: true
periodSeconds: 10
Expand Down
5 changes: 4 additions & 1 deletion examples/celestia-node/arabica-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ commonLabels:
environment: arabica
network: da
type: &nodeType full # check
pool: &pool pool-da-0 # check
service:
external:
annotations:
Expand All @@ -16,6 +17,8 @@ persistence:
kind: VolumeSnapshot
name: da-latest
node:
nodeSelector:
k8s.scaleway.com/pool-name: *pool
persistentVolumeClaimRetentionPolicy:
whenDeleted: Delete
whenScaled: Retain
Expand Down Expand Up @@ -43,7 +46,7 @@ node:
periodSeconds: 10
failureThreshold: 60
args:
- full # check
- *nodeType # check
- start
- --p2p.network=arabica-11
- --node.store=$(CELESTIA_HOME)
Expand Down
3 changes: 3 additions & 0 deletions examples/celestia-node/arabica-light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ commonLabels: &commonLabels
network: da
type: &nodeType light # check
secretName: &secretName keys-da-bridge-1 # check
pool: &pool pool-da-0 # check
service:
external:
annotations:
Expand All @@ -13,6 +14,8 @@ service:
persistence:
size: 10Gi
node:
nodeSelector:
k8s.scaleway.com/pool-name: *pool
persistentVolumeClaimRetentionPolicy:
whenDeleted: Delete
whenScaled: Retain
Expand Down

0 comments on commit 179ef76

Please sign in to comment.