cluster.fun/manifests/qr/qr.yaml

71 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2020-05-08 14:06:07 +00:00
apiVersion: v1
kind: Service
metadata:
name: qr
namespace: qr
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
name: web
selector:
app: qr
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qr
namespace: qr
spec:
2020-06-05 21:51:40 +00:00
replicas: 1
2020-05-08 14:06:07 +00:00
selector:
matchLabels:
app: qr
template:
metadata:
labels:
app: qr
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/qr:latest
2020-05-08 14:06:07 +00:00
imagePullPolicy: Always
ports:
- containerPort: 8080
name: web
resources:
limits:
2022-05-27 20:06:54 +00:00
memory: 10Mi
requests:
2022-05-27 20:06:54 +00:00
memory: 10Mi
2020-05-08 14:06:07 +00:00
---
apiVersion: networking.k8s.io/v1
2020-05-08 14:06:07 +00:00
kind: Ingress
metadata:
name: qr
namespace: qr
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
2020-05-08 14:06:07 +00:00
spec:
tls:
- hosts:
- qr.cluster.fun
secretName: qr-ingress
rules:
- host: qr.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
2020-05-08 14:06:07 +00:00
backend:
service:
name: qr
port:
number: 80
2020-05-08 14:06:07 +00:00