The rest of the owl
This commit is contained in:
43
deploy/deployment.yaml
Normal file
43
deploy/deployment.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user