44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: garrettmills-dev
|
|
namespace: default
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: garrettmills-dev
|
|
template:
|
|
metadata:
|
|
name: garrettmills-dev-www
|
|
namespace: default
|
|
labels:
|
|
app: garrettmills-dev
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values: ['garrettmills-dev']
|
|
topologyKey: 'kubernetes.io/hostname'
|
|
containers:
|
|
- name: garrettmills-www
|
|
image: registry.millslan.net/garrettmills/www-ssg
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 30
|