cluster.fun/manifests/talks/talks.yaml

71 lines
1.3 KiB
YAML
Raw Permalink 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:
2022-01-15 10:49:21 +00:00
replicas: 1
2021-02-10 10:26:47 +00:00
selector:
matchLabels:
app: talks
template:
metadata:
labels:
app: talks
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/talks:latest
2021-02-10 10:26:47 +00:00
imagePullPolicy: Always
ports:
- containerPort: 80
name: web
resources:
limits:
2022-05-27 20:06:54 +00:00
memory: 20Mi
2021-02-10 10:26:47 +00:00
requests:
2022-05-27 20:06:54 +00:00
memory: 20Mi
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
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.tls: "true"
ingress.kubernetes.io/ssl-redirect: "true"
traefik.ingress.kubernetes.io/router.entrypoints: websecure
2021-02-10 10:26:47 +00:00
spec:
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