cluster.fun/manifests/qr/qr.yaml
Marcus Noble 0accc05333
Upgraded ingress resources
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-10-16 07:39:46 +01:00

70 lines
1.3 KiB
YAML

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:
replicas: 1
selector:
matchLabels:
app: qr
template:
metadata:
labels:
app: qr
spec:
containers:
- name: web
image: docker.cluster.fun/averagemarcus/qr:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: web
resources:
limits:
memory: 20Mi
requests:
memory: 20Mi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: qr
namespace: qr
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
traefik.ingress.kubernetes.io/redirect-entry-point: https
traefik.ingress.kubernetes.io/redirect-permanent: "true"
spec:
tls:
- hosts:
- qr.cluster.fun
secretName: qr-ingress
rules:
- host: qr.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: qr
port:
number: 80