Initial commit

This commit is contained in:
2023-09-07 08:20:38 +00:00
commit 2765d91861
15 changed files with 675 additions and 0 deletions

72
deploy/deployment.yaml Normal file
View File

@@ -0,0 +1,72 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: template
namespace: development
labels:
app: template
spec:
replicas: 1
selector:
matchLabels:
app: template
strategy:
type: Recreate
template:
metadata:
labels:
app: template
spec:
nodeSelector:
kubernetes.io/arch: amd64
imagePullSecrets:
- name: regcred
restartPolicy: Always
containers:
- name: template
image: docker.sciocatti.com/template:0.0.1
imagePullPolicy: Always
ports:
- containerPort: 50001
name: template-port
---
apiVersion: v1
kind: Service
metadata:
name: template-service
namespace: development
spec:
selector:
app: template
ports:
- name: template-port
port: 3000
targetPort: 50001
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: template-ingress
namespace: development
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
spec:
rules:
- host: template.sciocatti.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: template-service
port:
number: 3000
tls:
- hosts:
- template.sciocatti.com
secretName: template-sciocatti-com-tls