The rest of the owl
This commit is contained in:
15
deploy/certificate.yaml
Normal file
15
deploy/certificate.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: garrettmills-dev-tls
|
||||
namespace: default
|
||||
spec:
|
||||
secretName: garrettmills-dev-tls-secret
|
||||
dnsNames:
|
||||
- 'garrettmills.dev'
|
||||
- 'www.garrettmills.dev'
|
||||
- 'k8s.garrettmills.dev'
|
||||
issuerRef:
|
||||
name: letsencrypt-ca
|
||||
kind: ClusterIssuer
|
||||
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
|
||||
47
deploy/ingress.yaml
Normal file
47
deploy/ingress.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: garrettmills-dev-ingress
|
||||
namespace: default
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- garrettmills.dev
|
||||
- www.garrettmills.dev
|
||||
- k8s.garrettmills.dev
|
||||
secretName: garrettmills-dev-tls-secret
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: garrettmills.dev
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: '/'
|
||||
backend:
|
||||
service:
|
||||
name: garrettmills-dev-service
|
||||
port:
|
||||
number: 80
|
||||
- host: www.garrettmills.dev
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: '/'
|
||||
backend:
|
||||
service:
|
||||
name: garrettmills-dev-service
|
||||
port:
|
||||
number: 80
|
||||
- host: k8s.garrettmills.dev
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: '/'
|
||||
backend:
|
||||
service:
|
||||
name: garrettmills-dev-service
|
||||
port:
|
||||
number: 80
|
||||
12
deploy/service.yaml
Normal file
12
deploy/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: garrettmills-dev-service
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
app: garrettmills-dev
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user