2020-12-05 14:02:04 +01:00
|
|
|
apiVersion: apps/v1
|
2018-11-08 15:17:07 +01:00
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: unbound-site
|
|
|
|
|
labels:
|
2025-01-24 14:59:58 +01:00
|
|
|
app.kubernetes.io/name: unbound-site
|
2018-11-08 15:17:07 +01:00
|
|
|
annotations:
|
|
|
|
|
kubernetes.io/change-cause: "${TIMESTAMP} Deployed commit id: ${COMMIT}"
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 2
|
|
|
|
|
strategy:
|
|
|
|
|
type: RollingUpdate
|
|
|
|
|
rollingUpdate:
|
|
|
|
|
maxSurge: 1
|
|
|
|
|
maxUnavailable: 1
|
|
|
|
|
minReadySeconds: 30
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
2025-01-24 14:59:58 +01:00
|
|
|
app.kubernetes.io/name: unbound-site
|
2018-11-08 15:17:07 +01:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2025-01-24 14:59:58 +01:00
|
|
|
app.kubernetes.io/name: unbound-site
|
2018-11-08 15:17:07 +01:00
|
|
|
spec:
|
|
|
|
|
affinity:
|
|
|
|
|
podAntiAffinity:
|
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
- weight: 100
|
|
|
|
|
podAffinityTerm:
|
|
|
|
|
labelSelector:
|
|
|
|
|
matchExpressions:
|
2025-01-24 14:59:58 +01:00
|
|
|
- key: "app.kubernetes.io/name"
|
2018-11-08 15:17:07 +01:00
|
|
|
operator: In
|
|
|
|
|
values:
|
|
|
|
|
- unbound-site
|
|
|
|
|
topologyKey: kubernetes.io/hostname
|
|
|
|
|
containers:
|
|
|
|
|
- name: unbound-site
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /health
|
|
|
|
|
port: 80
|
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
|
periodSeconds: 5
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
imagePullPolicy: Always
|
2026-01-09 11:56:50 +01:00
|
|
|
image: oci.unbound.se/unboundsoftware/unbound-site:${COMMIT}
|
2018-11-08 15:17:07 +01:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 80
|
2021-10-04 14:58:55 +02:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2024-12-08 21:07:56 +01:00
|
|
|
cpu: 5m
|
|
|
|
|
memory: 5Mi
|
2021-10-04 14:58:55 +02:00
|
|
|
limits:
|
|
|
|
|
memory: 300Mi
|
2018-11-08 15:17:07 +01:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: unbound-site
|
|
|
|
|
labels:
|
2025-01-24 14:59:58 +01:00
|
|
|
app.kubernetes.io/name: unbound-site
|
2018-11-08 15:17:07 +01:00
|
|
|
spec:
|
|
|
|
|
type: NodePort
|
|
|
|
|
selector:
|
2025-01-24 14:59:58 +01:00
|
|
|
app.kubernetes.io/name: unbound-site
|
2018-11-08 15:17:07 +01:00
|
|
|
ports:
|
|
|
|
|
- port: 80
|
|
|
|
|
targetPort: 80
|