2020-09-14 17:49:45 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: til
|
|
|
|
namespace: til
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: til
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: til
|
|
|
|
namespace: til
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: til
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: til
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
2021-12-24 09:58:30 +00:00
|
|
|
image: docker.cluster.fun/averagemarcus/til:latest
|
2020-09-14 17:49:45 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: web
|
|
|
|
resources:
|
|
|
|
limits:
|
2021-05-21 10:56:07 +00:00
|
|
|
memory: 20Mi
|
2020-09-14 17:49:45 +00:00
|
|
|
requests:
|
2021-05-21 10:56:07 +00:00
|
|
|
memory: 20Mi
|
2020-09-14 17:49:45 +00:00
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-09-14 17:49:45 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: til
|
|
|
|
namespace: til
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2020-09-14 17:49:45 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-09-14 17:49:45 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- til.marcusnoble.co.uk
|
|
|
|
secretName: til-ingress
|
|
|
|
rules:
|
|
|
|
- host: til.marcusnoble.co.uk
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-09-14 17:49:45 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: til
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-09-14 17:49:45 +00:00
|
|
|
|