core-deployments/tests/test-ingress.yaml

67 lines
1.1 KiB
YAML
Raw Normal View History

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:
- name: test1
image: testcontainers/helloworld
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: test1-service
namespace: aaron-test
spec:
selector:
app: test1
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
2022-09-30 22:13:58 +02:00
name: test1-ingress
namespace: aaron-test
spec:
rules:
2023-06-19 07:01:14 +02:00
- host: "test.apps.yolokube.de"
2022-09-30 22:13:58 +02:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: test1-service
port:
number: 80
tls:
- hosts:
- test.apps.yolokube.de
secretName: test1-tls-key