namesny-com: Add website

This commit is contained in:
Mathis 2023-11-28 21:19:46 +00:00
parent 246da87bda
commit d04aa12c4a
5 changed files with 64 additions and 0 deletions

24
namesny-com/deployment.yaml Executable file
View File

@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: namesny-com
namespace: namesny-com
labels:
app: namesny-com
spec:
replicas: 1
selector:
matchLabels:
app: namesny-com
template:
metadata:
labels:
app: namesny-com
spec:
imagePullSecrets:
- name: gitea-regcred
containers:
- name: namesny-com
image: git.namesny.com/mathis/namesny-com:2023-11-22
ports:
- containerPort: 80

14
namesny-com/ingress.yaml Executable file
View File

@ -0,0 +1,14 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: namesny-com-ingress
namespace: namesny-com
spec:
entryPoints:
- websecure
routes:
- match: Host(`namesny.com`, `www.namesny.com`)
kind: Rule
services:
- name: namesny-com-svc
port: 80

9
namesny-com/kustomization.yaml Executable file
View File

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: namesny-com
resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- ingress.yaml

4
namesny-com/namespace.yaml Executable file
View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: namesny-com

13
namesny-com/service.yaml Executable file
View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: namesny-com-svc
namespace: namesny-com
spec:
selector:
app: namesny-com
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: 80