cluster.fun/manifests/blog/blog.yaml

133 lines
2.5 KiB
YAML
Raw Normal View History

2020-05-08 11:45:00 +00:00
apiVersion: v1
kind: Service
metadata:
name: blog
namespace: blog
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8000
name: web
selector:
app: blog
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog
namespace: blog
spec:
2022-01-15 10:49:21 +00:00
replicas: 2
2020-05-08 11:45:00 +00:00
selector:
matchLabels:
app: blog
template:
metadata:
labels:
app: blog
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/blog:latest
2020-05-08 11:45:00 +00:00
imagePullPolicy: Always
ports:
- containerPort: 8000
name: web
resources:
limits:
2020-06-06 14:24:56 +00:00
memory: 200Mi
requests:
2020-06-06 14:24:56 +00:00
memory: 200Mi
2021-06-15 04:08:51 +00:00
livenessProbe:
httpGet:
path: /healthz
port: web
initialDelaySeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: web
initialDelaySeconds: 10
2020-05-08 11:45:00 +00:00
---
apiVersion: networking.k8s.io/v1
2020-05-08 11:45:00 +00:00
kind: Ingress
metadata:
name: blog
namespace: blog
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
2020-05-08 11:45:00 +00:00
spec:
ingressClassName: nginx
2020-05-08 11:45:00 +00:00
tls:
- hosts:
- marcusnoble.co.uk
secretName: blog-ingress
rules:
- host: marcusnoble.co.uk
http:
paths:
- path: /
pathType: ImplementationSpecific
2020-05-08 11:45:00 +00:00
backend:
service:
name: blog
port:
number: 80
2020-05-08 11:45:00 +00:00
---
apiVersion: networking.k8s.io/v1
2020-05-08 11:45:00 +00:00
kind: Ingress
metadata:
name: blog-www
namespace: blog
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
2020-05-08 11:45:00 +00:00
spec:
ingressClassName: nginx
2020-05-08 11:45:00 +00:00
tls:
- hosts:
- www.marcusnoble.co.uk
secretName: blog-www-ingress
rules:
- host: www.marcusnoble.co.uk
http:
paths:
- path: /
pathType: ImplementationSpecific
2020-05-08 11:45:00 +00:00
backend:
service:
name: blog
port:
number: 80
2020-05-08 11:45:00 +00:00
---
apiVersion: networking.k8s.io/v1
2020-05-08 11:45:00 +00:00
kind: Ingress
metadata:
name: blog-blog
namespace: blog
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
2020-05-08 11:45:00 +00:00
spec:
ingressClassName: nginx
2020-05-08 11:45:00 +00:00
tls:
- hosts:
- blog.marcusnoble.co.uk
secretName: blog-blog-ingress
rules:
- host: blog.marcusnoble.co.uk
http:
paths:
- path: /
pathType: ImplementationSpecific
2020-05-08 11:45:00 +00:00
backend:
service:
name: blog
port:
number: 80
2020-05-08 11:45:00 +00:00