deploy: add node5 instance box3.trinitysan.by
Same shape as box2 (no proxy env — NL egress is clean) with node5 sizing: ssh req 2/16Gi lim 12/48Gi, dind req 2/2Gi lim 12/48Gi, PVC local-storage 150Gi (hostpath, non-expandable). authorized_keys = node1 devbox keys + developer@cursor-devbox-0. First TrinityIngress on node5.
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: cursor-devbox
|
||||
namespace: cursor-devbox
|
||||
spec:
|
||||
serviceName: cursor-devbox
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cursor-devbox
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: cursor-devbox
|
||||
annotations:
|
||||
linkerd.io/inject: disabled
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 30
|
||||
imagePullSecrets:
|
||||
- name: dcr-registry-auth-ro
|
||||
containers:
|
||||
- name: ssh
|
||||
image: dcr.trinitysan.by/infra/cursor-devbox:10-90c6b6c4250a68f4cb654bc18e52f2a47f9dc3a4 # {"$imagepolicy": "flux-system:cursor-devbox"}
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: ssh
|
||||
containerPort: 22
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
env:
|
||||
- name: DOCKER_HOST
|
||||
value: tcp://127.0.0.1:2375
|
||||
- name: HOME
|
||||
value: /home/developer
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: true
|
||||
capabilities:
|
||||
add:
|
||||
- SYS_PTRACE
|
||||
# node5 (12 CPU / 60Gi): main box gets generous bursts; node also
|
||||
# hosts the CI runner and core services, so requests stay modest.
|
||||
resources:
|
||||
requests:
|
||||
cpu: "2"
|
||||
memory: 16Gi
|
||||
limits:
|
||||
cpu: "12"
|
||||
memory: 48Gi
|
||||
# startupProbe covers slow first boot (sshd after host-key/auth setup).
|
||||
startupProbe:
|
||||
tcpSocket:
|
||||
port: ssh
|
||||
failureThreshold: 60
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: ssh
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: ssh
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- name: home
|
||||
mountPath: /home/developer
|
||||
subPath: home
|
||||
- name: authorized-keys
|
||||
mountPath: /etc/ssh-authorized-keys
|
||||
readOnly: true
|
||||
- name: dind
|
||||
image: docker:27-dind
|
||||
imagePullPolicy: IfNotPresent
|
||||
args:
|
||||
- --host=tcp://0.0.0.0:2375
|
||||
- --tls=false
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
securityContext:
|
||||
privileged: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
limits:
|
||||
cpu: "12"
|
||||
memory: 48Gi
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 2375
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
volumeMounts:
|
||||
- name: home
|
||||
mountPath: /var/lib/docker
|
||||
subPath: docker
|
||||
- name: dind-run
|
||||
mountPath: /var/run
|
||||
volumes:
|
||||
- name: authorized-keys
|
||||
configMap:
|
||||
name: cursor-devbox-authorized-keys
|
||||
- name: dind-run
|
||||
emptyDir: {}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: home
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
# node5 has only hostpath local-storage (no expansion) — sized generously.
|
||||
storageClassName: local-storage
|
||||
resources:
|
||||
requests:
|
||||
storage: 150Gi
|
||||
Reference in New Issue
Block a user