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: docker.cluster.fun/averagemarcus/qr:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: web
|
2020-06-05 21:17:50 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2021-05-21 10:56:07 +00:00
|
|
|
memory: 20Mi
|
2020-06-05 21:17:50 +00:00
|
|
|
requests:
|
2021-05-21 10:56:07 +00:00
|
|
|
memory: 20Mi
|
2020-05-08 14:06:07 +00:00
|
|
|
---
|
2021-10-16 06:31:19 +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
|
|
|
|
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: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-08 14:06:07 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: qr
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-05-08 14:06:07 +00:00
|
|
|
|