Deploy it-tools

This commit is contained in:
Gabriel Simmer 2023-09-20 00:00:49 +01:00
parent dd3a96e222
commit a08c8e79c2
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

59
homelab/tools.yml Normal file
View file

@ -0,0 +1,59 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: it-tools
spec:
selector:
matchLabels:
app: it-tools
template:
metadata:
labels:
app: it-tools
spec:
containers:
- name: it-tools
image: corentinth/it-tools
resources:
limits:
memory: "64Mi"
cpu: "250m"
ports:
- containerPort: 80
name: http
---
apiVersion: v1
kind: Service
metadata:
name: it-tools
spec:
selector:
app: it-tools
ports:
- port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: it-tools
annotations:
cert-manager.io/issuer: "le-issuer"
nginx.ingress.kubernetes.io/proxy-body-size: 100m
namespace: default
spec:
tls:
- hosts:
- tools.gmem.ca
secretName: gmem-ca-wildcard
rules:
- host: tools.gmem.ca
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: it-tools
port:
number: 80