cluster.fun/manifests/talks/talks.yaml

69 lines
1.2 KiB
YAML
Raw Normal View History

2021-02-10 10:26:47 +00:00
apiVersion: v1
kind: Service
metadata:
name: talks
namespace: talks
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app: talks
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: talks
namespace: talks
spec:
replicas: 2
selector:
matchLabels:
app: talks
template:
metadata:
labels:
app: talks
spec:
containers:
- name: web
image: docker.cluster.fun/averagemarcus/talks:latest
2021-02-10 10:26:47 +00:00
imagePullPolicy: Always
ports:
- containerPort: 80
name: web
resources:
limits:
2021-05-21 10:56:07 +00:00
memory: 50Mi
2021-02-10 10:26:47 +00:00
requests:
2021-05-21 10:56:07 +00:00
memory: 50Mi
2021-02-10 10:26:47 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: talks
namespace: talks
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
2021-02-10 10:26:47 +00:00
spec:
ingressClassName: nginx
2021-02-10 10:26:47 +00:00
tls:
- hosts:
- talks.marcusnoble.co.uk
secretName: talks-ingress
rules:
- host: talks.marcusnoble.co.uk
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: talks
port:
number: 80