core-deployments/tests/test-ingress.yaml
Tom Neuber e00cc2d4dd
Some checks failed
ci/woodpecker/push/yamllint Pipeline failed
fix typos and file layout for yamllint
2024-10-07 09:19:54 +02:00

67 lines
1.2 KiB
YAML

############### Test
---
apiVersion: v1
kind: Namespace
metadata:
name: aaron-test
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test1-deployment
namespace: aaron-test
labels:
app: test1
spec:
replicas: 3
selector:
matchLabels:
app: test1
template:
metadata:
labels:
app: test1
spec:
containers:
- name: test1
image: containous/whoami
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: test1-service
namespace: aaron-test
spec:
selector:
app: test1
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
traefik.ingress.kubernetes.io/router.middlewares: authentik-authentik@kubernetescrd
name: test1-ingress
namespace: aaron-test
spec:
rules:
- host: "test.services.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: test1-service
port:
number: 80
tls:
- hosts:
- test.services.yolokube.de
secretName: test2-tls-key