2022-09-30 22:13:58 +02:00
|
|
|
############### 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:
|
2024-10-07 09:19:39 +02:00
|
|
|
- name: test1
|
|
|
|
image: containous/whoami
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
2022-09-30 22:13:58 +02:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: test1-service
|
|
|
|
namespace: aaron-test
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: test1
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 80
|
2024-09-29 15:39:11 +02:00
|
|
|
targetPort: 80
|
2022-09-30 22:13:58 +02:00
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2024-05-28 17:42:47 +02:00
|
|
|
annotations:
|
|
|
|
kubernetes.io/tls-acme: "true"
|
2024-09-04 22:14:12 +02:00
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: authentik-authentik@kubernetescrd
|
2022-09-30 22:13:58 +02:00
|
|
|
name: test1-ingress
|
|
|
|
namespace: aaron-test
|
|
|
|
spec:
|
|
|
|
rules:
|
2024-10-07 09:19:39 +02:00
|
|
|
- host: "test.services.yolokube.de"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: "/"
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: test1-service
|
|
|
|
port:
|
|
|
|
number: 80
|
2024-05-28 17:42:47 +02:00
|
|
|
tls:
|
2024-10-07 09:19:39 +02:00
|
|
|
- hosts:
|
|
|
|
- test.services.yolokube.de
|
|
|
|
secretName: test2-tls-key
|