cluster.fun/manifests/text-to-dxf/text-to-dxf.yaml

68 lines
1.4 KiB
YAML
Raw Permalink Normal View History

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