174 lines
4.9 KiB
YAML
174 lines
4.9 KiB
YAML
# infrastructure/core/ci-capacity/reservations.yaml
|
|
# Direct binding lets the reservation coexist with tenants already running here.
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ci-reservation-arm64
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ci-reservation-arm64
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ci-reservation-arm64
|
|
atlas.bstein.dev/ci-arm64-eligible: 'true'
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
nodeName: titan-07
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- namespaceSelector:
|
|
matchExpressions:
|
|
- key: kubernetes.io/metadata.name
|
|
operator: NotIn
|
|
values:
|
|
- jenkins
|
|
- kube-system
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: atlas.bstein.dev/ci-arm64-eligible
|
|
operator: NotIn
|
|
values:
|
|
- 'true'
|
|
topologyKey: kubernetes.io/hostname
|
|
- namespaces:
|
|
- jenkins
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: atlas.bstein.dev/ci-arm64-eligible
|
|
operator: NotIn
|
|
values:
|
|
- 'true'
|
|
- key: kubernetes.jenkins.io/controller
|
|
operator: NotIn
|
|
values:
|
|
- http___jenkins_jenkins_svc_cluster_local_8080x
|
|
topologyKey: kubernetes.io/hostname
|
|
- namespaces:
|
|
- kube-system
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: atlas.bstein.dev/ci-arm64-eligible
|
|
operator: NotIn
|
|
values:
|
|
- 'true'
|
|
- key: k8s-app
|
|
operator: NotIn
|
|
values:
|
|
- kube-dns
|
|
topologyKey: kubernetes.io/hostname
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 65532
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: reservation
|
|
image: registry.k8s.io/pause@sha256:ee6521f290b2168b6e0935a181d4cff9be1ac3f505666ef0e3c98fae8199917a
|
|
resources:
|
|
requests:
|
|
cpu: 1m
|
|
memory: 4Mi
|
|
limits:
|
|
cpu: 1m
|
|
memory: 4Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ci-reservation-amd64
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ci-reservation-amd64
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ci-reservation-amd64
|
|
atlas.bstein.dev/ci-amd64-eligible: 'true'
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
nodeName: titan-22
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- namespaceSelector:
|
|
matchExpressions:
|
|
- key: kubernetes.io/metadata.name
|
|
operator: NotIn
|
|
values:
|
|
- jenkins
|
|
- kube-system
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: atlas.bstein.dev/ci-amd64-eligible
|
|
operator: NotIn
|
|
values:
|
|
- 'true'
|
|
topologyKey: kubernetes.io/hostname
|
|
- namespaces:
|
|
- jenkins
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: atlas.bstein.dev/ci-amd64-eligible
|
|
operator: NotIn
|
|
values:
|
|
- 'true'
|
|
- key: kubernetes.jenkins.io/controller
|
|
operator: NotIn
|
|
values:
|
|
- http___jenkins_jenkins_svc_cluster_local_8080x
|
|
topologyKey: kubernetes.io/hostname
|
|
- namespaces:
|
|
- kube-system
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: atlas.bstein.dev/ci-amd64-eligible
|
|
operator: NotIn
|
|
values:
|
|
- 'true'
|
|
- key: k8s-app
|
|
operator: NotIn
|
|
values:
|
|
- kube-dns
|
|
topologyKey: kubernetes.io/hostname
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 65532
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: reservation
|
|
image: registry.k8s.io/pause@sha256:ee6521f290b2168b6e0935a181d4cff9be1ac3f505666ef0e3c98fae8199917a
|
|
resources:
|
|
requests:
|
|
cpu: 1m
|
|
memory: 24Mi
|
|
limits:
|
|
cpu: 1m
|
|
memory: 24Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop:
|
|
- ALL
|