Setup linting

This commit is contained in:
2026-01-07 23:41:08 +01:00
commit 87ea6d4ba1
39 changed files with 626 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami
namespace: whoami
spec:
selector:
matchLabels:
app: whoami
replicas: 1
template:
metadata:
labels:
app: whoami
spec:
containers:
- name: whoami
image: traefik/whoami:v1.9.0
ports:
- containerPort: 80

View File

@@ -0,0 +1,29 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: whoami-tls
namespace: whoami
spec:
secretName: whoami-tls
issuerRef:
name: letsencrypt-staging
kind: ClusterIssuer
dnsNames:
- whoami.frankoslaw.top
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: whoami-tls-ingress
namespace: whoami
spec:
entryPoints:
- websecure
routes:
- match: Host(`whoami.frankoslaw.top`)
kind: Rule
services:
- name: whoami
port: 5678
tls:
secretName: whoami-tls

View File

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

View File

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

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: whoami
namespace: whoami
spec:
type: ClusterIP
ports:
- port: 5678
targetPort: 80
selector:
app: whoami